Skip to content

Instantly share code, notes, and snippets.

View solarce's full-sized avatar

Brandon Burton solarce

View GitHub Profile
@solarce
solarce / debian_stable_docker.sh
Last active September 1, 2016 08:16
simple way to get docker 0.8 running on debian stable (with some helps from backports)
# assumes you've done a pretty basic 7.4 install, I used http://cdimage.debian.org/debian-cd/7.4.0/amd64/bt-cd/
# add wheezy-backports repo, http://backports.debian.org/Instructions/
sudo sh -c "echo deb http://ftp.us.debian.org/debian wheezy-backports main > /etc/apt/sources.list.d/wheezy-backports.list"
sudo apt-get update -y
sudo apt-get -t wheezy-backports install linux-image-amd64 -y
sudo reboot
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "make an instance, based on region, subnet, and security group. Uses AMI Mapping for Instance Store backed Amazon Linux 64bit in the region specified",
"Parameters" : {
"InstanceType" : {
"Description" : "Type of Instance to use, defaults to m1.medium",
"Type" : "String",
alias cfnv="cfn-validate-template --template-file $1"
@solarce
solarce / gist:4482143
Last active December 10, 2015 19:38 — forked from anonymous/gist:4482130
def shut_down(s):
if s.lower() == "yes":
return "Shutting down..."
elif s.lower() == "no":
return "Shutdown aborted!"
else:
return "Sorry, I didn't understand you."
@solarce
solarce / a.rb
Created December 18, 2012 22:33
Index: etc-socorro/common.conf
===================================================================
--- etc-socorro/common.conf (revision 54642)
+++ etc-socorro/common.conf (working copy)
@@ -49,3 +49,5 @@
# bug 790097
export statsdHost=graphite1.dmz.phx1.mozilla.com
export statsdPrefix=socorro-stage
+# bug 822828
+export brokenBoot2GeckoFixer=/data/bin/minidump_hack-b2g
I've seen things you people wouldn't believe. [laughs] Document queries on fire off the shoulder of Orion.
I watched elasticsearch-head glitter in the dark on my wall monitors near the Tannhäuser Gate.
All those documents will be lost in time, like [coughs] tears in rain. Time to index.
I've seen things you people wouldn't believe. [laughs] Document queries on fire off the shoulder of Orion. I watched elasticsearch-head glitter in the dark on my wall monitors near the Tannhäuser Gate. All those documents will be lost in time, like [coughs] tears in rain. Time to index.
@solarce
solarce / flaskr.py
Created December 13, 2012 00:07 — forked from Blue0ctober/flaskr.py
#all the imports
from __future__ import with_statement
from contextlib import closing
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, abort, render_template, flash
# configuration
DATABASE = "/tmp/flaskr.db"
DEBUG = True
SECRET_KEY = 'development key'
@solarce
solarce / a.rb
Created December 12, 2012 22:53
-> % s push
Would you like to deploy from the current directory ? [Yn]:
Pushing application 'standup-irc-solarce'...
Framework: buildpack
Runtime: <framework-specific default>
Application Deployed URL [standup-irc-solarce.paas.allizom.org]:
Application Url: standup-irc-solarce.paas.allizom.org
Creating Application [standup-irc-solarce]: OK
Bind existing services to 'standup-irc-solarce' ? [yN]:
Create services to bind to 'standup-irc-solarce' ? [yN]:
@solarce
solarce / a.rb
Created December 12, 2012 22:07
-> % s push
Would you like to deploy from the current directory ? [Yn]:
Pushing application 'hastebin'...
Framework: buildpack
Runtime: <framework-specific default>
Application Deployed URL [hastebin.paas.allizom.org]:
Application Url: hastebin.paas.allizom.org
Creating Application [hastebin]: OK
Creating redis service [file-backing]:
OK