Skip to content

Instantly share code, notes, and snippets.

View caseyfw's full-sized avatar

Casey Fulton caseyfw

View GitHub Profile
@caseyfw
caseyfw / telstra-connect-test.sh
Created April 1, 2016 08:41
Adelaide Telstra TCP Connection Test Script
#!/bin/bash
while true; do
wget -O /dev/null --quiet --connect-timeout=2 www.adelaide.edu.au --tries=1
if [[ $? -eq 0 ]]; then
echo "$(date +%Y-%m-%d:%H:%M:%S) success"
else
echo "$(date +%Y-%m-%d:%H:%M:%S) fail"
fi
done
@caseyfw
caseyfw / draw-calculator.php
Created March 21, 2016 07:36
CSL Draw Calculator
<?php
$schedule = json_decode('{
"ballmark" : {
"2016-03-14": "unisay",
"2016-03-21": "discosaur"
},
"discosaur" : {
"2016-03-14": "phoenix",
"2016-03-21": "ballmark"
@caseyfw
caseyfw / ESPrinkler.ino
Created February 19, 2016 12:15
A simple Arduino/ESP8266 sketch to automate sprinklers.
#include <ESP8266WiFi.h>
const char ssid[] = "28 Fort Avenue";
const char password[] = "radelaide";
const unsigned long sleepTime = 60;
int controlA = 12;
int controlB = 14;
@caseyfw
caseyfw / uasm_db_structure_diff_prd_develop.diff
Created February 19, 2016 03:09
Diff of UASM DB Structure - current PRD to develop 20160219
--- uasm_prd_structure.sql 2016-02-19 13:28:09.151761615 +1030
+++ uasm_dev_structure.sql 2016-02-19 13:31:05.983826225 +1030
@@ -1,8 +1,8 @@
--- MySQL dump 10.14 Distrib 5.5.44-MariaDB, for debian-linux-gnu (x86_64)
+-- MySQL dump 10.13 Distrib 5.6.28, for debian-linux-gnu (x86_64)
--
--- Host: 172.17.42.1 Database: uasm5
+-- Host: mysql Database: site_manager
-- ------------------------------------------------------
--- Server version 5.5.37-MariaDB-wsrep-log
[color]
filemode = false
diff = auto
status = auto
branch = auto
pager = true
[alias]
b = branch
ci = commit
co = checkout
@caseyfw
caseyfw / robo
Last active March 15, 2018 23:43
Bash auto completion for Robo taskrunner (with options and caching)
#!/bin/sh
function __robo_list_cmds ()
{
if [ ! -e /tmp/robo_commands ]; then
robo list --raw | awk '{print $1}' | sort > /tmp/robo_commands
fi
cat /tmp/robo_commands
}
function __robo_list_opts ()
@caseyfw
caseyfw / RoboFile.php
Created May 29, 2015 00:43
RoboFile for Drupal project
<?php
/**
* Implementation of class for Robo - http://robo.li/
*
* To Install robo:
* wget -O bin/robo http://robo.li/robo.phar
* chmod +x bin/robo
*
*/
How to install Quake III on linux
1. Install the Quake 3 Arena package
> sudo apt-get install quake3
2. Download the data and installer packages:
> wget http://10.27.141.39/pak0.pk3
> wget http://10.27.141.39/linuxq3apoint-1.32b-3.x86.run