#bashtips #bashrc
function setproxy() {
export {http,https,ftp}_proxy='<http://greatfirewall.bullshit.tld>:<PORT>'
}
function unsetproxy() {
unset {http,https,ftp}_proxy
}
function httpretcode {
curl -sIL $1 | grep HTTP | tail -n1 | cut -d " " -f 2
}