Skip to content

Instantly share code, notes, and snippets.

View thumphries's full-sized avatar

Tim Humphries thumphries

View GitHub Profile
#!/bin/bash
baseu="http://www.handbook.unsw.edu.au/vbook2012/brCoursesByAtoZ.jsp?StudyLevel=Undergraduate&descr="
basep="http://www.handbook.unsw.edu.au/vbook2012/brCoursesByAtoZ.jsp?StudyLevel=Postgraduate&descr="
if [[ ! $1 =~ ^[A-Z]{4} ]] || [ $# -eq 0 ]; then
echo "Usage: ./$0 TYPE"
else
baseu+="${1:0:1}"
basep+="${1:0:1}"
wget -q -O- $baseu $basep | w3m -dump -cols 150 -T "text/html" | grep -e "^$1" | sort | uniq | \
sed -re "s/[ \t]+[0-9]+$//g;s/[ \t]{2,}/ /g"
@thumphries
thumphries / Client.config
Last active August 29, 2015 14:17
HaLVM IOM/scheduler bug
name = "Client"
kernel = "Client"
memory = 16
seclabel ='system_u:system_r:domU_t'
@thumphries
thumphries / Client.config
Last active August 29, 2015 14:17
HaLVM XenStore bug
name = "Client"
kernel = "Client"
memory = 16
seclabel ='system_u:system_r:domU_t'
@thumphries
thumphries / QR.hs
Last active August 29, 2015 14:06
{-# LANGUAGE OverloadedStrings #-}
import Data.QRCode
import Data.Text (Text, pack, unpack)
import qualified Data.Text as T
import qualified Data.Text.IO as T
import Data.Word8
import System.Environment
import System.IO