all repos — dotfiles @ 33e230d87f724557c945ec4fc69c4d379ad72233

my *nix dotfiles

pregame.sh (view raw)

 1#!/bin/bash
 2
 3# create a SOCKS proxy 
 4ssh -D 8008 boop
 5
 6# change nameservers
 7sudo echo nameserver 8.8.8.8 > /etc/resolv.conf
 8
 9# write-lock the file (even root can't edit it)
10sudo chattr +i /etc/resolv.conf
11
12# kill dhcpcd (messes with IP)
13sudo systemctl stop dhcpcd.sevice
14
15# start VPN
16sudo openvpn --config ~/icy.ovpn