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 / dovecot-10-auth.conf
Last active October 21, 2024 10:51
Configuration Files for ViMbAdmin on Ubuntu 13.10 with Dovecot and Postfix - referenced from https://github.com/opensolutions/ViMbAdmin3/wiki/Mail-System-Install-on-Ubuntu
auth_mechanisms = plain login
!include auth-sql.conf.ext
@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";