Skip to content

Instantly share code, notes, and snippets.

@rsanden
rsanden / tun2socks_proxy_foo.bash
Last active November 21, 2023 00:10
tun2socks TCP+UDP user-wide proxy through shadowsocks and udpgw
#--- Build tun2socks and udpgw (as the user who will use the proxy) ---
mkdir -p $HOME/src
cd $HOME/src
git clone "https://github.com/ambrop72/badvpn"
cd badvpn
mkdir -p build
cd build
export OUTDIR=$PWD
export SRCDIR=$(dirname $PWD)
@rsanden
rsanden / install-wine-sc.bash
Last active November 16, 2018 07:41
wine-starcraft WoW64 binary install and setup
#!bash # For syntax highlighting. This is not a script...
#########################################
# Part I -- Installing wine-starcraft #
#########################################
sudo su - # become root
apt install winbind
@rsanden
rsanden / build-wine-sc.bash
Last active March 19, 2021 12:00
wine-starcraft WoW64 build
#!bash # For syntax highlighting. This is not a script...
###########################################################
# Part I -- Setting up the 64-bit and 32-bit environments #
# Start this section as: root@Host #
###########################################################
# This is where we want wine-starcraft to live
INSTALLPREFIX=/opt/wine-starcraft
echo "$INSTALLPREFIX" > /tmp/INSTALLPREFIX.txt # recklessly presume this file doesn't already exist