Skip to content

Instantly share code, notes, and snippets.

View solarce's full-sized avatar

Brandon Burton solarce

View GitHub Profile
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 / 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
@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."
alias cfnv="cfn-validate-template --template-file $1"
{
"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",
@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
@solarce
solarce / sad.sh
Last active August 29, 2015 14:01
i haz a ruby sad. I've got ruby-1.9.3-p545 installed rvm because that's what our chef-repo is pinned to right now, I've got chef and various things installed via bundler, if I installed a knife plugin, the binstub doesn't see it but the knife binary does
[~/code/lookout/chef-repo]$ ruby -v *[master][ruby-1.9.3-p545@global]
ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-darwin13.1.0]
[~/code/lookout/chef-repo]$ which ruby *[master][ruby-1.9.3-p545@global]
/Users/bburton/.rvm/rubies/ruby-1.9.3-p545/bin/ruby
[~/code/lookout/chef-repo]$ gem -v *[master][ruby-1.9.3-p545@global]
w2.2.2
h% [~/code/lookout/chef-repo]$ which gem *[master][ruby-1.9.3-p545@global]
"provisioners": [
{
"type": "shell",
"script": "{{user `path_to_script`}}"
}]
@solarce
solarce / kitchen.ec2.log
Created September 3, 2014 14:18
zk-wrapper converge failure
[7:02:58]  bburton@althalus  ~/code/lookout/cookbooks/zk-wrapper  kitchen converge
-----> Starting Kitchen (v1.2.1)
-----> Creating <default-ubuntu-1204>...
EC2 instance <i-bf0b2bb4> created.
.......................... (server ready)
Waiting for 10.32.1.143:22...
Waiting for 10.32.1.143:22...
(ssh ready)\n
Finished creating <default-ubuntu-1204> (0m48.38s).
-----> Converging <default-ubuntu-1204>...