# —————————— # 导入库 # —————————— %matplotlib inline import matplotlib.pyplot as plt import numpy as np from sklearn.linear_model import LinearRegression […]
Category: Env
Block direct IP visit
# Step 1: # create a new file under a certain path (e.g. /etc/conf.d/) as below: server { listen 80 […]
Quick stop wireguard
# 1. Check the ipv6 address ip -6 addr ip -6 route ping6 ipv6.google.com curl https://ifconfig.co –ipv6 # 2. How […]
Mac Keys & Symbol
No. Option + Symbol Option + Shift + Symbol 1 Option + 0 º Option + Shift + 0 ‚ […]
Sublime Auto Dark Mode
save this file as python file format, e.g.: auto_dark_mode.py you can change the color theme if you wish import sublime […]
Audit Linux With Lynis for Safety
sudo apt update sudo apt install lynis # if you want run it sudo lynis audit system # if you […]
Enhance Safety with Fail2ban
sudo apt udate sudo apt install fail2ban sudo systemctl start fail2ban sudo systemctl enable fail2ban
Setup Python Web Environment on LNMP
# Given the target directories tree as below, the website is ‘abc.com’, the virtual environment with name ‘env’, the project’s […]
How to Create Directory in Temporary Directory
# to create a ‘test’ directory in /run cd /run vim autocreatedir.conf # paste “d /run/test 0755 root root -” […]
Keep SSH Connection Alive
ssh user@ip-address -i ~/.ssh/RSA file -p port number -o ServerAliveInterval=60 -o ServerAliveCountMax=3