Skip to content

Instantly share code, notes, and snippets.

@Ancientwood
Last active May 24, 2021 07:17
Show Gist options
  • Save Ancientwood/e2cda45e20b7729fa97b27c7227f86ec to your computer and use it in GitHub Desktop.
Save Ancientwood/e2cda45e20b7729fa97b27c7227f86ec to your computer and use it in GitHub Desktop.
url='socks5://127.0.0.1:7890'
alias ssoff='unset http_proxy;unset https_proxy'
alias sson='export http_proxy=$url; export https_proxy=$url'
alias clipsend='_a(){ curl server:port/"$1"/"$1" -d "content=$2" }; _a'
alias clipget='_a(){ curl server:port/"$1"/"$1" }; _a'
alias copy='_a(){ echo "$1" > temp && clip.exe < temp && rm temp }; _a'
alias cht='_a(){ curl cheat.sh/"$1" }; _a'
alias qrcode='_a(){ curl qrenco.de/"$1" }; _a'
alias weather='curl "http://wttr.in/杭州?m&lang=zh"'
alias 菜单='cd'
alias cd..='cd ..'
#linux #cmd
#unzip
unzip -Z -1 /path/to/zip/file.zip | xargs -I{} rm -rf {}
#rss
./rssbot db.json key
#dark
GM_addStyle('html {filter: brightness(90%) invert(100%) hue-rotate(180deg);-webkit-font-smoothing: antialiased;}');
#calcifer
sed -i '' -e '1i <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=110 src="//music.163.com/outchain/player?type=3&id=2062324490&auto=0&height=90"></iframe>' vol21.md
#wol
/usr/bin/etherwake -D -i 'br-lan' ""
#proxy github
git config --global http.https://git.521000.best.proxy socks5://127.0.0.1:1080
#ssh #proxy
ssh -N -v -R 8080:127.0.0.1:80 root@...
#json
:%!python -m json.tool
#font
HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2019.522.0_x64__79rhkp1fndgsc_ubuntu1804.exe
#tar
tar -czvf - backup | openssl des3 -salt -k pheicloud -out backup.tar.gz
openssl des3 -d -k pheicloud -salt -in backup.tar.gz | tar xzf -
#uglify
uglifyjsPheiMap.js phm.js PheiMap3D.js location.js ShortestPath.js AnalyseLocate.js -m-c-oPheimap3D-2.0.0.min.js
compass.js TweenLite.js TimelineLite.min.js hidpi-canvas.min.js three.js Detector.js OrbitControls.js Projector.js pako.js DeviceOrientationControls.js
#apt #proxy
sudo apt-get -o Acquire::http::proxy="socks5h://127.0.0.1:1080/"
#curl #proxy
curl --socks5
#ssh #proxy
ssh -o ProxyCommand='nc -x 127.0.0.1:1080 %h %p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment