Skip to content

Instantly share code, notes, and snippets.

View mmcdaris's full-sized avatar

Morgan Mikel McDaris mmcdaris

View GitHub Profile
@mmcdaris
mmcdaris / airbrake_2_2.xsd
Created July 25, 2012 20:59
Airbrake .xsd schema
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="notice">
<xs:complexType>
<xs:all>
<xs:element name="api-key" type="xs:string"/>
<xs:element name="notifier" type="notifier"/>
<xs:element name="error" type="error"/>
<xs:element name="request" type="request" minOccurs="0"/>
@mmcdaris
mmcdaris / a) oldappendonly.aof
Created August 6, 2012 23:03
appendonly concat
*2
$6
SELECT
$1
0
*3
$3
SET
$5
three
@mmcdaris
mmcdaris / exceptional.yml
Created August 29, 2012 17:58
exceptional.yml to separate environments into different exceptional.io apps
staging:
enabled: true
api-key: (api key for project-staging)
production:
enabled: true
api-key: (api key for project-production)
@mmcdaris
mmcdaris / XSD.xml
Created August 31, 2012 20:17
Airbrake XSD schema
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="notice">
<xs:complexType>
<xs:all>
<xs:element name="api-key" type="xs:string"/>
<xs:element name="notifier" type="notifier"/>
<xs:element name="error" type="error"/>
<xs:element name="request" type="request" minOccurs="0"/>
@mmcdaris
mmcdaris / api_env_errors.rb
Created October 3, 2012 21:50
airbrake - gather data from a project for a specified environment
require 'rest-client'
require 'json'
# ---- set up some variables ----
ab_auth_token = "asdf1234sdfg2345dfgh3456fghj4567ghjk5678hjkl6789"
# your auth token located in the settings page (NOT API KEY)
ab_subdomain = "subdomain"
# like http://subdomain.airbrake.io
@mmcdaris
mmcdaris / colors.rb
Created November 13, 2012 00:41
"string".style
class String
# extend String with Style!
STYLE = {'none' => 0,
'bold' => 1,
'underline' => 4,
'blink' => 5, # does not work if blinking text has been disabled
'hide' => 8,
'black' => 30,
'red' => 31,
'green' => 32,
@mmcdaris
mmcdaris / build_image_error.sh
Last active December 16, 2015 13:09
There is nothing in /home/images/precise_mysql_image
ubuntu@ubuntu:~/reddwarf-integration/scripts$ ./redstack build-image mysql
*******************************************************************************
Building an image for use with development and integration tests.
*******************************************************************************
*******************************************************************************
Found image in /home/ubuntu/images/precise_mysql_image using the qcow2 image found here...
*******************************************************************************
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7178 100 7068 100 110 770 11 0:00:10 0:00:09 0:00:01 1722
@mmcdaris
mmcdaris / redis.conf
Created June 10, 2013 17:55
sample redis conf for RDB only
#== process config =======================
daemonize yes
pidfile /var/run/redis6378.pid
#== logs =================================
loglevel verbose
logfile stdout
#== network ==============================
port 6378
@mmcdaris
mmcdaris / whiskey_ginger_jar.md
Last active December 19, 2015 20:08
whiskey ginger jar

Morgan's Whiskey Ginger

  1. Get a large 1/2 gallon mason jar
  • Peel three lemons and put the peels in.
  • Juice said lemons and add to Jar
  • cut up a lot of ginger into strips and fun cross-sections and put in!
  • add about 800ml of a very spicey ginger beer (Bundaburg is awesome)
  • Pour in about 500ml bullit bourbon or another bourbon you like
  • serve over ICE!
@mmcdaris
mmcdaris / walker.pde
Created October 23, 2013 18:57
random grey walker in processing
class Walker {
int x, y, range;
String tag;
Walker(int x1, int y1, int rng) {
x = x1;
y = y1;
range = rng;
// start at center
}
int rndclr () {