All of the following information is based on go version go1.17.1 darwin/amd64
.
GOOS | Out of the Box |
---|---|
aix |
✅ |
android |
✅ |
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
#!/bin/sh | |
KERNEL=$1 | |
PATCHVER=$2 | |
[ -z "$1" -o -z "$2" ] && { | |
echo "usage: refresh_kernel.sh <version> <release>" | |
echo "example: refresh_kernel.sh 3.18 3.18.30" | |
exit 1 | |
} |
ssh-keygen | |
-t ed25519 - for greatest security (bits are a fixed size and -b flag will be ignored) | |
-t rsa - for greatest portability (key needs to be greater than 4096 bits) | |
-t ecdsa - faster than RSA or DSA (bits can only be 256, 284, or 521) | |
-t dsa - DEEMED INSECURE - DSA limted to 1024 bit key as specified by FIPS 186-2, No longer allowed by default in OpenSSH 7.0+ | |
-t rsa1 - DEEMED INSECURE - has weaknesses and shouldn't be used (used in protocol 1) | |
-b 4096 bit size | |
-a 500 rounds (should be no smaller than 64, result in slower passphrase verification and increased resistance to brute-force password cracking) | |
-C "[email protected]" comment.. |
#!/bin/sh | |
# cross & static compile shadowsocks-libev | |
PCRE_VER=8.41 | |
PCRE_FILE="http://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VER.tar.gz" | |
MBEDTLS_VER=2.6.0 | |
MBEDTLS_FILE="https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz" |
# https://fedoraproject.org/wiki/PackagingDrafts/Go | |
%global commit 63fe64c471e7d76be96a625350468dfc65c06c31 | |
%global shortcommit %(c=%{commit}; echo ${c:0:7}) | |
Name: example-app | |
Version: 1.0.0 | |
Release: 6%{?dist} | |
Summary: This application is an example for the golang binary RPM spec | |
License: ASL 2.0 | |
URL: http://www.example-app.io |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
ip rule add fwmark 0x233 lookup 100 | |
ip route add local 0.0.0.0/0 dev lo table 100 |
# clash | |
iptables -t nat -N clash | |
iptables -t nat -A clash -p tcp -m multiport --sports 21,22,80,443,445,3389,5201,5900,5901,5902 -j RETURN | |
iptables -t nat -A clash -d 0.0.0.0/8 -j RETURN | |
iptables -t nat -A clash -d 10.0.0.0/8 -j RETURN | |
iptables -t nat -A clash -d 127.0.0.0/8 -j RETURN | |
iptables -t nat -A clash -d 169.254.0.0/16 -j RETURN | |
iptables -t nat -A clash -d 172.16.0.0/12 -j RETURN | |
iptables -t nat -A clash -d 192.168.0.0/16 -j RETURN | |
iptables -t nat -A clash -d 224.0.0.0/4 -j RETURN |