This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Increment the version number every time the version changes. I can't figure out how to | |
// break this out into its own const, see https://github.com/rust-lang/rust/issues/52393. | |
#[derive(Debug, Serialize, Deserialize)] | |
#[serde(tag = "schema_version")] | |
enum VersionedCheckListList { | |
#[serde(rename = "1")] // increment here | |
Current(CheckListList), | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# `git merge-base HEAD master` will show you the common ancestor b/t you and master | |
alias hellyeah='git diff `git merge-base HEAD master`' | |
alias chillbro='git log --left-right --graph --cherry-pick --oneline `git merge-base HEAD master`..HEAD' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf-8 | |
""":o | |
A detailed description of :o. | |
""" | |
import optparse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on some linuxen (and presumably macs) the real syslog.h is in sys/ | |
# node-waf doesn't like this very much | |
# first cd into your node_modules directory (created when you install npm packages) | |
cd node_modules/ | |
# clone the node-syslog source | |
git clone https://github.com/schamane/node-syslog.git | |
# cd into node-syslog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "http://rubygems.org" | |
gem "sinatra", "1.2.6", :require => "sinatra/base" | |
gem "thin", "1.2.7" | |
gem 'ey_config' | |
gem 'rest-client' | |
# vim: filetype=ruby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dredged from the depths of the internet | |
alias showmethemoney='git log --graph --full-history --all --color --date=short --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%ad %s"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# note: this is a terrible solution! bluetooth and such will be turned on automatically! | |
for i in /sys/class/rfkill/rfkill*/state; do echo 1 > $i; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example code to submit data to the Librato Metrics API | |
# this is a small sinatra web application that keeps track of how many times | |
# the main page has been hit. when desired, the user can submit that data to metrics | |
# for more info visit http://dev.librato.com/ | |
# 1.8.x compatibility | |
require 'rubygems' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example code to submit data to the Librato Metrics API | |
# for more info visit http://dev.librato.com/ | |
require 'rubygems' | |
require 'rest-client' | |
require 'json' | |
# these are automatically set by the Heroku add-on | |
# if you already have a username and token, place them here | |
user = ENV["LIBRATO_METRICS_USER"] |