Skip to content

Instantly share code, notes, and snippets.

View baylisscg's full-sized avatar

Christopher Bayliss baylisscg

  • The University of Melbourne
  • Melbourne, Victoria, Australia
View GitHub Profile
@baylisscg
baylisscg / keybase.md
Last active May 9, 2018 01:25
Keybase Proof

Keybase proof

I hereby claim:

  • I am baylisscg on github.
  • I am baylisscg (https://keybase.io/baylisscg) on keybase.
  • I have a public key ASC21F5xSI-OCEKJuBea3GaQiV56Ga6nl0Ero8PBB2csYAo

To claim this, I am signing this object:

@baylisscg
baylisscg / setup.sh
Created September 8, 2011 08:36
Setup script for NECTAR research cloud VM.
#!/bin/bash
# Fix up config files
cat <<EOF > /etc/resolv.conf
search rc.melbourne.nectar.org.au
nameserver 115.146.82.4
nameserver 115.146.80.4
EOF
@baylisscg
baylisscg / tomcat7
Created April 26, 2011 12:09
Tomcat7 init.d script based on Ubuntu's tomcat6 script.
#!/bin/sh
#
# /etc/init.d/tomcat7 -- startup script for the Tomcat 7 servlet engine
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>.
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>.
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>.
#
@baylisscg
baylisscg / gist:882197
Created March 22, 2011 22:10
Nginx config snippet.
# Take the $scheme variable and set $is_ssl to either "on" or "off"
# depending on whether HTTPS is in use. ( Defaults to OFF )
map $scheme $is_ssl {
default off;
http off;
https on;
}
@baylisscg
baylisscg / gist:882190
Created March 22, 2011 22:08
FastCGI config snippet.
# Properly inform PHP code if HTTPS is in use.
fastcgi_param HTTPS on; # on if using HTTPS off otherwise
fastcgi_param SSL_PROTOCOL $ssl_protocol; # the SSL version in use e.g. TLSv1, SSLv3 ...
@baylisscg
baylisscg / Munin_avg_trend_example.conf
Created February 8, 2011 12:21
A synthetic example showing how to create a Munin graph of the average and trend of data taken from other graphs.
[your.domain;Totals]
# Comments are hashed
update no # This is not a real machine so turn of fetching
temp.graph_title My Graph # Name the graph
# Indicate the data we want to use in this graph (average and trend are dummy values)
temp.graph_order host1=host1.your.domain:plugin_name.value \
host2=host2.your.domain:plugin_name.value \