Skip to content

Instantly share code, notes, and snippets.

View Caesim404's full-sized avatar

Cæsim Caesim404

View GitHub Profile
@Caesim404
Caesim404 / steamns
Created November 17, 2016 17:19
Helps run wine steam (or another program) in a network namespace.
#!/bin/bash
ns=${ns:-steamns}
veth0=${veth0:-veth0}
veth1=${veth1:-veth1}
addr0=${addr0:-10.1.1.1/24}
addr1=${addr1:-10.1.1.2/24}
sudo=${sudo:-sudo}
dev=${dev:-`ip route show | awk 'NR==1 { print $5 }'`}
@Caesim404
Caesim404 / Install_bshift_Support.sh
Created November 17, 2016 17:21
Sven Co-op's Install_bshift_Support.bat port to bash.
#!/usr/bin/env bash
HLDIR="/home/caesim/.local/share/Steam/steamapps/common/Half-Life"
SCDIR="/home/caesim/.local/share/Steam/steamapps/common/Sven Co-op Dedicated Server/svencoop"
szGame="Blue Shift"
szModDir="bshift"
scVersion="5.0"
if [ "$(uname -m)" == "x86_64" ]; then
@Caesim404
Caesim404 / Install_OpFor_Support.sh
Created November 17, 2016 17:22
Sven Co-op's Install_OpFor_Support.bat port to bash.
#!/usr/bin/env bash
HLDIR="/home/caesim/.local/share/Steam/steamapps/common/Half-Life"
SCDIR="/home/caesim/.local/share/Steam/steamapps/common/Sven Co-op Dedicated Server/svencoop"
szGame="Opposing Force"
szModDir="gearbox"
scVersion="5.0"
if [ "$(uname -m)" == "x86_64" ]; then
#!/bin/python2
sokf_invisible = 0x0000000000004000
file = open("scene_props.txt", "rb")
text = file.read()
file.close()
array = text.split()