This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for ((;;)); do date "+%Y-%m-%d - %H:%M:%S:%N" ; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| net.ipv4.neigh.default.base_reachable_time_ms = 600000 | |
| net.ipv4.neigh.eth1.delay_first_probe_time = 1 | |
| net.ipv4.neigh.default.mcast_solicit = 20 | |
| net.ipv4.neigh.default.retrans_time_ms = 250 | |
| net.ipv4.conf.all.rp_filter=0 | |
| net.ipv4.conf.eth0.rp_filter=0 | |
| net.ipv4.conf.eth1.rp_filter=0 | |
| net.core.default_qdisc=cake | |
| net.ipv4.tcp_congestion_control=bbr2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/sbin/nft -f | |
| flush ruleset | |
| table inet filter { | |
| chain ports { | |
| tcp dport 33333 counter accept | |
| } | |
| chain input { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tc -s qdisc show dev eth0 | |
| tc qdisc replace dev eth0 root rtt 220ms cake ethernet besteffort | |
| tc qdisc replace dev eth0 root cake rtt 150ms ethernet diffserv4 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export GOROOT=/usr/local/go | |
| export PATH=$PATH:$GOROOT/bin:~/go/bin | |
| export GO111MODULE=on | |
| export GOPROXY=https://goproxy.io,direct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nginx:stable-alpine | |
| ENV TimeZone=Asia/Shanghai | |
| RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone && export TZ=$TimeZone | |
| ADD default.conf /etc/nginx/conf.d/ | |
| COPY --chown=nginx:nginx dist /usr/share/nginx/html | |
| CMD ["nginx","-g","daemon off;"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run --rm -v $PWD:/data -it archivebox/archivebox init --setup | |
| docker run -it \ | |
| --name archive_box \ | |
| -p 48000:8000 \ | |
| -v /data/ArchiveBox:/data \ | |
| --restart always \ | |
| -e HTTP_PROXY=http://192.168.1.10:10811 \ | |
| -e HTTPS_PROXY=http://192.168.1.10:10811 \ | |
| -e TIMEOUT=120 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| read -n1 -r -p "Press any key to continue..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in | |
| -V | --version ) | |
| echo $version | |
| exit | |
| ;; | |
| -s | --string ) | |
| shift; string=$1 | |
| ;; | |
| -f | --flag ) | |
| flag=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _printargs() { | |
| printf -- "%s" "$1" | |
| printf "\n" | |
| } | |
| _info() { | |
| _printargs "$@" | |
| } | |
NewerOlder