Skip to content

Instantly share code, notes, and snippets.

View qwertycody's full-sized avatar

Cody Garrett qwertycody

View GitHub Profile
@qwertycody
qwertycody / split_tunneling.md
Created April 3, 2019 22:32 — forked from jagtesh/split_tunneling.md
Split Tunneling tutorial - with openconnect (tested, works with Cisco AnyConnect VPN) Source: http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/2009-February/002990.html

Table of Contents

  1. DISCLAIMER 2. Status 3. Introduction 4. Security issues 5. DNS
@qwertycody
qwertycody / json_parse.py
Created February 10, 2020 15:22
Example Python Parse of JSON String
#This example does NOT account for random colon, comma, or apostrophe values that may be inside of a JSON String Key/Value
#This is a starting point for functions that may end up needing to be more complicated
#Under no circumstances should you use this outside of an academic forum, highly suggest using the built in JSON library in Python
def parse(inputVar):
dictionaryToReturn = {}
currentValue = ''
@qwertycody
qwertycody / build.sh
Created June 3, 2020 13:17
Small wrapper script meant for one line execution of the switchroot build by PabloZaiden. Supports foreground/background execution so you can log off and go get a coffee while waiting for the build to complete.
#!/bin/bash
#Ensure nothing happens outside the directory this script is ran from
cd "$(dirname "$0")"
SCRIPT_DIRECTORY=$(pwd)
#Log File Variable
SCREEN_LOG="build.log"
SCREEN_NAME="switchroot_build"