#匹配括号中的内容,包含括号 #(http://www.google.com) cat name.txt | sed 's#(\([^\)]*\))##g'
Manjaro - rank,update,package
1 2 3 4 5 6 7 8 9 10
sudo pacman-mirrors -i -c China -m rank sudo pacman -Syyu sudo pacman -S yay yay -Syu --devel --combinedupgrade --save sed -i 's/archlinux.org/tuna.tsinghua.edu.cn/g' ~/.config/yay/config.json yay -Syu #Remove unneeded dependencies yay -Yc #Remove cache yay -Sc
uniq - report or omit repeated lines -u, --unique,only print unique lines -c, --count,prefix lines by the number of occurrences
sort - sort lines of text files -f:ignore lower/upper case; -b:ignore leading blanks; -M:month sort; -n:numeric sort; -r:reverse the result; -u:unique.with -c, check for strict ordering; without -c, output only the first of an equal run; -t:field separator; -k:sort via a key;KEYDEF gives location and type
bs(block size)=1024 bytes count(copies only this number of blocks)=192 tr is used to replace zeroes with 0xFF. tr expects arguments in octal. 0xFF in octal is \377.
vim /etc/ufw/before.rules -A ufw-before-input -p icmp --icmp-type echo-request -j DROP
ufw deny proto {tcp|udp} from {ip-address-here} to any port {port-number-here} ufw deny proto tcp from 2.1.1.0/24 to any port 22
#allow Cloudflare ipsets from https://www.cloudflare.com/ips/ #https://www.cloudflare.com/ips-v4/ #https://www.cloudflare.com/ips-v6/ ufw allow from 103.21.244.0/22 to any port 8443 ufw allow from 103.22.200.0/22 to any port 8443 ufw allow from 103.31.4.0/22 to any port 8443 ufw allow from 104.16.0.0/13 to any port 8443 ufw allow from 104.24.0.0/14 to any port 8443 ufw allow from 108.162.192.0/18 to any port 8443 ufw allow from 131.0.72.0/22 to any port 8443 ufw allow from 141.101.64.0/18 to any port 8443 ufw allow from 162.158.0.0/15 to any port 8443 ufw allow from 172.64.0.0/13 to any port 8443 ufw allow from 173.245.48.0/20 to any port 8443 ufw allow from 188.114.96.0/20 to any port 8443 ufw allow from 190.93.240.0/20 to any port 8443 ufw allow from 197.234.240.0/22 to any port 8443 ufw allow from 198.41.128.0/17 to any port 8443 ufw allow from 2400:cb00::/32 to any port 8443 ufw allow from 2606:4700::/32 to any port 8443 ufw allow from 2803:f800::/32 to any port 8443 ufw allow from 2405:b500::/32 to any port 8443 ufw allow from 2405:8100::/32 to any port 8443 ufw allow from 2a06:98c0::/29 to any port 8443 ufw allow from 2c0f:f248::/32 to any port 8443
nmap -sS -Pn -p 1-65535 ip_addr #-sS:TCP SYN scan,which is often referred to as half-open scanning #-Pn:no ping #-p:port
push declined due to email privacy restrictions
1 2 3 4 5
#Change the global user e-mail address setting to be your GitHub noreply address git config --global user.email "[email protected]" git config --global user.email #Reset the author information on your last commit git commit --amend --reset-author
Aliyun Ubuntu Mirrors
/etc/apt/sources.list Ubuntu 22.04:
1 2 3 4 5 6 7 8 9 10
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
Ubuntu 20.04:
1 2 3 4 5 6 7 8 9 10
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse