PROJET AUTOBLOG


Shaarli - Librement Shaarli

Site original : Shaarli - Librement Shaarli

⇐ retour index

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