Skip to content

Instantly share code, notes, and snippets.

@asharpe
asharpe / gist:768d963feed9a0409e11
Last active August 29, 2015 14:01
showterm client for ScientificLinux
#!/bin/bash
# A simple Linux-only pure-shell showterm client for those without Ruby.
#
# Mac users (and Linux users with Ruby installed) should use the ruby client:
# (sudo) gem install showterm
#
# Dependencies (please let me know if you don't have them all already)
# mktemp (coreutils)
# script (util-linux)
# tput (ncurses)
@asharpe
asharpe / gist:5282936
Last active December 15, 2015 15:38 — forked from anonymous/gist:5282921
#!/bin/bash
inside_interface='wlan0'
rules() {
while IFS= read -r line; do
eval set -- $line
echo "iptables ${@}"
echo "$# $@"
#iptables ${line[@]}
done << EOF