save this file as python file format, e.g.: auto_dark_mode.py you can change the color theme if you wish import sublime […]
+=, a++, ++a
public class CalExer{ public static void main(String[] args){ int j = 10; int k = 20; int m = j […]
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
Setup Local(macOS) Python Web Environment
Given the target path is “/root/home/python” # Step 1: install homebrew /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” # Step 2: install […]
Set Sublime Text3 for Python in MacOS
# Step 1: Check the interpreter file path in Terminal as below type -a python3 # it will outputs information […]
How to install Python3 on Mac
# Step 1: install brew /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)” # Step 2: install python by brew brew install python […]