Copy_N_Paste
免費憑證: 使用 Traefik proxy + Let’s Encrypt 幫網站加密 – Configure Traefik to use an ACME provider (Let’s Encrypt) for automatic certificate generation.
Configure Traefik to use an ACME provider (Let’s Encrypt) for automatic certificate generation.
use sshfs to mount remote filesystem , command sample
安裝 command :
apt-get install sshfs
sshfs [user@]host:[remote_directory] mountpoint [options]
sshfs -p 2200 [email protected]:/home/rimmon DEV
fusermount -u DEV
sshfs -p 2200 -o reconnect [email protected]:/mnt/tslog_bak ~/TSLOG_BAK
fusermount -u ~/TSLOG_BAK
速度測試
sshfs -p 2200 -o reconnect [email protected]:/mnt/tslog_bak ~/TSLOG_BAK
1.1G 費時 19秒 , 約 55MB/s
[memo] BBEditor color scheme / theme location
BBEditor 的配色樣板 設定
Path : /Users/username/Library/Application Support/BBEdit/Color Schemes
git:
Monster dark.bbColorScheme: Monster dark.bbColorScheme
[docker] 用 docker 建立 ipsec vpn server
—
URL: https://github.com/hwdsl2/docker-ipsec-vpn-server
# docker run \ --name ipsec-vpn-server \ --env-file ./vpn.env \ --restart=always \ -p 500:500/udp \ -p 4500:4500/udp \ -v /lib/modules:/lib/modules:ro \ -d --privileged \ hwdsl2/ipsec-vpn-server # # docker logs ipsec-vpn-server # docker exec -it ipsec-vpn-server ipsec status # docker exec -it ipsec-vpn-server ipsec whack --trafficstatus