Skip to content

Instantly share code, notes, and snippets.

View barryo's full-sized avatar
🍻
Debugging life, one line at a time...

Barry O'Donovan barryo

🍻
Debugging life, one line at a time...
View GitHub Profile
@barryo
barryo / ixp-reconfigure-quarantine.sh
Created November 18, 2013 15:43
Script to start and / or reconfigure Bird daemons on INEX's quarantine VLANs
#! /bin/bash
KEY="hahahahayeahright"
URL="https://www.example.com/apiv1/router/collector-conf/key/${KEY}"
LAN1ID="1"
LAN2ID="2"
ETCPATH="/usr/local/etc/bird"
RUNPATH="/var/run/bird"
BIN="/usr/sbin/bird"
@barryo
barryo / ExampleTimer.php
Created June 8, 2012 06:40
The most simple timing tool for PHP
<?php
require_once( 'Timer.php' );
Timer::start();
// do something
echo "Time elapsed: " . Timer::end() . "\n";