Common Tools
Website
Apple Laptop
Desktop
- clashX and Tide: Access to walled sites
- marktext: Markdown editor
- IINA: Video player
- Alfred: Quick launch and clipboard management
- vscode: program development editor
- Tencent Lemon Cleanup: Easy uninstallation of software
- ishot: Screenshot tool
- uPic: Clipboard image uploading to github repository
Command Line
- alacritty: graphics-accelerated cross-platform terminal (configuration )
Ctrl+N
Open new window - brew package management and domestic clearinghouse sources
- gist: upload files to gist.github. com from the command line
- rg: Quickly search file contents
- exa: better looking
ls
- tmux: terminal multiplexer
- neovim: modern version
vim
(configuration ) - direnv: Automatically load environment variables when entering directories
- xonsh: python and bash mixed doubles
- zsh: zsh terminal ( configuration)
- powerlevel10k:
zsh
themes - zinit:
zsh
plugin management
- powerlevel10k:
- asdf: toolchain versioning
- @antfu/ni: nodejs package management
- rclone: cloud storage management
System monitoring
Command Memo
iptables port mapping
Allow IP forwarding for the server
sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -j MASQUERADE
Port Forwarding
#!/bin/bash
pro='tcp'
NAT_Host='192.168.56.101'
NAT_Port=3480
Dst_Host='192.168.56.102'
Dst_Port=80
iptables -t nat -A PREROUTING -m $pro -p $pro --dport $NAT_Port -j DNAT --to-destination $Dst_Host:$Dst_Port
iptables -t nat -A POSTROUTING -m $pro -p $pro --dport $Dst_Port -d $Dst_Host -j SNAT --to-source $NAT_Host
Save
sudo /usr/libexec/iptables/iptables.init save