chocolatey
发表于
install
1 | Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) |
packages
1 | choco install chocolateygui -y |
debian
发表于
dd
1 | curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_ |
ovz/lxc
1 | wget -qO OsMutation.sh https://raw.githubusercontent.com/LloydAsp/OsMutation/main/OsMutation.sh && chmod u+x OsMutation.sh && ./OsMutation.sh |
1panel
1 | bash -c "$(curl -sSL https://resource.fit2cloud.com/1panel/package/v2/quick_start.sh)" |
github
1 | sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts |
nat64
1 | echo -e "nameserver 2a00:1098:2b::1\nnameserver 2a01:4f9:c010:3f02::1 \nnameserver 2a01:4f8:c2c:123f::1" > /etc/resolv.conf |
ssh
1 | sed -i 's/#\?PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config && systemctl restart sshd |
1 | ssh-keygen -t rsa |
/etc/ssh/sshd_config
1 | PubkeyAuthentication yes |
1 | systemctl restart sshd |
docker
发表于
dev
发表于
nvm
1 | nvm node_mirror https://npmmirror.com/mirrors/node/ |
npm
1 | npm config get registry |
yarn
1 | yarn config get registry |
pnpm
1 | pnpm config get registry |
git
1 | git config credential.helper store |
时间段重叠
1 | a_start <= b_end and a_end >= b_start |
关闭端口
1 | for /f "tokens=5" %a in ('netstat -ano ^| findstr :8080 ^| findstr LISTENING') do taskkill /pid %a /f |
js
发表于
货币
1 | 123456.789.toLocaleString('zh', { style: 'currency', currency: 'CNY' }) |
百分比
1 | 0.75.toLocaleString('zh', { style: 'percent' }) |
相对时间
1 | Vue.filter('relativeTime', (date) => { |