Tweet de 📷🐧Dave Null🐧📸 (@devnull), à 8 mars à 16:31
jeudi 8 mars 2018 à 17:03à tester
#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
}
— Permalink
#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
}
— Permalink