Skip to content

Instantly share code, notes, and snippets.

@holmeszyx
Last active December 6, 2017 10:30
Show Gist options
  • Save holmeszyx/48ba473091ade9570a62f9de44a399b5 to your computer and use it in GitHub Desktop.
Save holmeszyx/48ba473091ade9570a62f9de44a399b5 to your computer and use it in GitHub Desktop.
cow 配置
source /home/holmes/My/bash/http_proxy
#!/bin/bash
DIR=/home/holmes/My/cow
true > ${DIR}/log.log
nohup ${DIR}/cow -request -logFile ${DIR}/log.log >> ${DIR}/log.log 2>&1 &
ln -s $(pwd)/cow_launch.sh coo
rm ~/bin/cow
mv coo ~/bin/cow
set_http_proxy() {
export http_proxy=http://127.0.0.1:7777
export https_proxy=http://127.0.0.1:7777
export HTTP_PROXY=http://127.0.0.1:7777
export HTTPS_PROXY=http://127.0.0.1:7777
}
unset_http_proxy() {
unset http_proxy
unset https_proxy
unset HTTP_PROXY
unset HTTPS_PROXY
}
export -f set_http_proxy
export -f unset_http_proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment