Skip to content

Instantly share code, notes, and snippets.

View bryanthompson's full-sized avatar

Bryan Thompson bryanthompson

  • http://www.37chairs.com
  • Lincoln, NE
View GitHub Profile
/**
* Convert From/To Binary/Decimal/Hexadecimal in JavaScript
* https://gist.github.com/faisalman
*
* Copyright 2012, Faisalman <fyzlman@gmail.com>
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
*/
(function(){
@bryanthompson
bryanthompson / printf.h
Last active April 14, 2016 16:33
This is an adaptation of several variations of 'getting started' sketches with the nrf24L01+ radios and arduino. These sketches assume that you are using an Arduino Pro Micro on both ends and that you have an LED attached on pin 2 of the transmit side. To run these, you'll need to install the rf24 and spi libraries from jscrane's repo: https://g…
/*
Copyright (C) 2011 J. Coliz <maniacbug@ymail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
*/
/**
* @file printf.h

Keybase proof

I hereby claim:

  • I am bryanthompson on github.
  • I am bryanthompson (https://keybase.io/bryanthompson) on keybase.
  • I have a public key whose fingerprint is 6B25 6167 A47C 8F6A 6F5F 7150 C175 25F4 EFB3 9D69

To claim this, I am signing this object:

<script type="text/javascript">
(function() {
var ads = document.getElementsByClassName("mbm_growlight"); var campaigns = [];
for (x=0;x<ads.length;x++) { campaigns[x] = ads[x].id; }
var gl = document.createElement('script'); gl.type = 'text/javascript'; gl.async = true;
gl.src = 'http://api.growlightnetwork.com/growlight.js/' + escape(campaigns.toString());
var s = document.getElementsByTagName("head")[0]; s.appendChild(gl);
})();
</script>
$ gem install devtunnel
$ devtunnel signup
# 1. Enter your email address
# 2. You'll get a confirmation email - click the link, paste your id_rsa.pub, set a password
$ devtunnel login
# log in with your email and password

I've managed to program myself to not have strong preferences toward a lot of things, so as I rediscover things I strongly like I will put them on my list. Then when I forget what I like I can come back here and remember. Because while I can remember where lists and information live, I can't remember (mostly) useless stuff like what will live on this list.

Food

  • Ben & Jerry's Coffee Heath Bar Crunch
@bryanthompson
bryanthompson / gist:5273430
Created March 29, 2013 20:31
Firespring Tournament
Shuffleboard
http://www.ustream.tv/channel/firespring-final-four-finals
Foosball
http://www.ustream.tv/channel/firespring-final-four-21
Table Tennis
http://www.ustream.tv/channel/firespring-final-four-4
Pool
require 'bundler/vlad'
set :application, "project-name"
set :domain, "server-name-in-ssh-config"
set :deploy_to, "/var/www/html/#{application}"
set :repository, "ssh://git@bitbucket.org/bryanthompson/#{application}.git"
namespace :vlad do
namespace :ec2 do
@bryanthompson
bryanthompson / nginx.conf
Created August 8, 2012 20:33 — forked from turtlesoupy/nginx.conf
node.js upstream nginx config
http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@bryanthompson
bryanthompson / gist:2410717
Created April 18, 2012 02:36
Nagios Mailer using Amazon/SES and REE 1.8.7
[root@puppet nagios]# cat /bin/mailer
#!/opt/ruby-enterprise-1.8.7-2010.02/bin/ruby
require "rubygems"
require "choice"
require "amazon-ses-mailer"
PROGRAM_VERSION = 1
Choice.options do