Skip to content

Instantly share code, notes, and snippets.

@mribeirodantas
Created November 5, 2019 09:56
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 mribeirodantas/7611fbeb04c4fcfb8274af9620df6c49 to your computer and use it in GitHub Desktop.
Save mribeirodantas/7611fbeb04c4fcfb8274af9620df6c49 to your computer and use it in GitHub Desktop.
Script to set machine back to home mode
# In my machine, the content below is saved to /usr/local/bin/setup_home_env
# Run with sudo
#!/usr/bin/bash
# Turn off proxy config for package management in Ubuntu
rm -f /etc/apt/apt.conf.d/proxy.conf
# Turn off proxy for R
echo '' > /home/mribeirodantas/.Renviron
# Set wifi card on
nmcli radio wifi on
# Turn off proxy for system-wide apps
gsettings set org.gnome.system.proxy mode 'none'
# Turn off proxy for Git
git config --global --unset-all https.proxy
git config --global --unset-all http.proxy
# Turn off SOCKS Tunnel
killall ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment