Skip to content

Instantly share code, notes, and snippets.

View qnm's full-sized avatar

Rob qnm

  • Sydney, Australia
View GitHub Profile
@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:
@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):
## ====================

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 / 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 / 11_sysinfo
Created May 2, 2015 12:10
openwrt on erlite3
#!/bin/sh
verify_sysinfo() {
if [ -f /tmp/sysinfo/board_name ]; then
name=$(cat /tmp/sysinfo/board_name)
case "$name" in
er|erlite|erpro)
continue
@qnm
qnm / index.html
Last active August 29, 2015 14:14 — forked from benjchristensen/index.html
<html>
<head>
<title>Mock</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.3/d3.min.js"></script>
<script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"></script>
<style>
/* tell the SVG path to be a thin blue line without any area fill */
path {
stroke-width: 1;
fill: none;
default: &default
hostname: 54.79.33.54
username: blackout
password: <%= ENV['BUNNY_PASSWORD'] %>
queue: test-firehose-dummy
development:
<<: *default
queue: prod-firehose
@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

Keybase proof

I hereby claim:

  • I am qnm on github.
  • I am qnm (https://keybase.io/qnm) on keybase.
  • I have a public key whose fingerprint is 0BEB A995 D088 13E8 426F 181F F5DA 5200 00DC 3E37

To claim this, I am signing this object:

gem install travis --no-ri --no-rdoc
echo "env:\n global:\n" >> .travis.yml
# encrypt SSH key - based on [squeezing private SSH key into .travis.yml file][4]
base64 --break=0 ~/.ssh/id_rsa_deploy > ~/.ssh/id_rsa_deploy_base64
# be sure to update the repository name to match the GitHub naming convention
ENCRYPTION_FILTER="echo \$(echo \" - secure: \")\$(travis encrypt -r <repo name> \"\$FILE='\`cat $FILE\`'\")"
split --bytes=100 --numeric-suffixes --suffix-length=2 --filter="$ENCRYPTION_FILTER" ~/.ssh/id_rsa_base64 id_rsa_ >> .travis.yml