Skip to content

Instantly share code, notes, and snippets.

View qnm's full-sized avatar

Rob qnm

  • Sydney, Australia
View GitHub Profile
@qnm
qnm / install.conf
Created August 13, 2016 23:19
Hetzner CoreOS Install Conf for VirtAPI
## ======================================================
## Hetzner Online GmbH - installimage - standard config
## ======================================================
## ====================
## HARD DISK DRIVE(S):
## ====================
@qnm
qnm / boxstarter.ps1
Last active December 29, 2017 06:20 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:

Andrew Smith: Celtic suffer seven-year glitch

It is a matter of fact that the appointment of Ronny Deila as Celtic manager was flawed. More pertinent now is to ask how flawed might be the strategy pursued by the club that has brought matters to this point.

The direction of travel at Celtic – despite the Barcelona win of 2011 and all that – was questionable long before the Norwegian pitched up from six years managing, effectively, the Motherwell of Norway.

Celtic’s hierarchy are fond of their number crunching and value getting the “financial fundamentals” correct. As is right and proper. Yet, they should perhaps chew on this set of figures.

In the past seven years they have appointed three managers, Tony Mowbray, Neil Lennon and Ronny Deila. You can ask serious questions of the thinking behind each one of these. Lennon may have prospered, but many of us would stand by the assertion that, if pitching at the level Celtic should be, the club should not offer any individual his start in senior management.

@qnm
qnm / gist:d66d3d634417978a9e6c
Created November 4, 2014 22:35
Restoring Heroku DB to AWS
Restoring an Heroku dump to RDS, using an intermediate EC2 box:
Using the guide at https://devcenter.heroku.com/articles/heroku-postgres-import-export
# curl -o latest.dump `heroku pgbackups:url`
# scp -i ~/.ssh/id_rsa latest.dump ec2-user@ec2-xx-xx-xx-xx.ap-southeast-2.compute.amazonaws.com:/tmp/
# ssh -i ~/.ssh/id_rsa latest.dump ec2-user@ec2-xx-xx-xx-xx.ap-southeast-2.compute.amazonaws.com
# cd /tmp
# pg_restore --verbose --clean --no-acl --no-owner -h $RDS_HOSTNAME -U $RDS_USERNAME -d $RDS_DB_NAME latest.dump
@qnm
qnm / index.html
Created January 12, 2016 10:27
jWmoqm
<div class="navbar-wrapper">
<div class="container">
<div class="navbar navbar-default navbar-fixed-top">
<div class="navbar-header">
<a class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="navbar-brand" href="/">MooCakes</a>
@qnm
qnm / keepassx.spec
Created October 13, 2013 04:11
keepassx-2.0-alpha
%define alpha alpha4
Name: keepassx
Version: 2.0
Release: 0.%{alpha}%{?dist}
Summary: Cross-platform password manager
Group: User Interface/Desktops
License: GPLv2+
URL: http://keepassx.sourceforge.net
Source0: https://github.com/keepassx/keepassx/archive/%{version}-%{alpha}.tar.gz
@qnm
qnm / gist:6422064
Last active December 22, 2015 05:09
{
"disclaimer": "See our important disclosures",
"disclaimer_url": "http://www.ratecity.com.au/disclaimer",
"title": "Low Interest Credit Cards",
"fields": {
"best_rate_percentage": "Rate %"
},
"results": [
{
@qnm
qnm / gist:5566280
Created May 13, 2013 05:08
Engine Routing Hack
Spork.each_run do
# This code will be run each time you run your specs.
RSpec.configure do |config|
config.before(:each, type: :controller) { @routes = RedBook::Engine.routes }
config.before(:each, type: :routing) { @routes = RedBook::Engine.routes }
end
end
@qnm
qnm / gist:5479610
Created April 29, 2013 03:49
Use system libv8 when using bundler, to work around fedora 19 compilation issues
bundle config build.libv8 --with-system-v8
<param value="FlashVars" name="utm_source=omg&utm_campign=homepage" />