Skip to content

Instantly share code, notes, and snippets.

@ktkr3d
Last active July 20, 2019 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ktkr3d/deb64a43aa13feb9cbcf to your computer and use it in GitHub Desktop.
Save ktkr3d/deb64a43aa13feb9cbcf to your computer and use it in GitHub Desktop.
# proxy authentication setting to 'proxy.example.com:8080'
alias proxy='read -p "user: " proxy_user && read -sp "pass: " proxy_pass && echo && export {http,https,ftp}_proxy="http://$proxy_user:$proxy_pass@proxy.example.com:8080"'
# Update installed packages
alias upd='sudo apt update -y && sudo apt dist-upgrade && sudo apt autoremove -y'
# Change locale
alias en='export LC_ALL=en_US.UTF8'
alias ja='export LC_ALL=ja_JP.UTF8'
# ssh to remote host in local network
function sshu() {
command ssh ubuntu@192.168.11.$1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment