Skip to content

Instantly share code, notes, and snippets.

View ryantenney's full-sized avatar

Ryan Tenney ryantenney

View GitHub Profile
#!/bin/bash
#######################################
# Graphite Install
# Run with sudo for best results
#
#######################################
if [[ "$(/usr/bin/whoami)" != "root" ]]; then
echo "This script must be run as root or using sudo.Script aborted."
exit 1
@ryantenney
ryantenney / gist:3593429
Created September 2, 2012 01:33 — forked from ryantenney/gist:3582019
White House Beer Recipes
@ryantenney
ryantenney / mosh-cygwin.md
Created August 25, 2012 17:38 — forked from eerohele/mosh-cygwin.md
Compiling Mosh (http://mosh.mit.edu/) under Cygwin
  1. Download Cygwin.

  2. Run setup.exe and install the following packages in addition to the default ones:

    • make
    • boost
    • libncurses-devel
    • pkg-config
    • perl
  3. Download and compile Protocol Buffers (make sure there are no spaces in the working directory when compiling Protocol Buffers, make will fail if there are):

@ryantenney
ryantenney / xkcd-calendar.hs
Created May 28, 2012 15:29 — forked from clockfort/xkcd-calendar.hs
xkcd calendar calculator
import Data.Numbers.Primes
second = 1
minute = 60*second
hour = 60*minute
day = 1444*minute
month = 30*day
year = 12*month
daysPerXKCDYear = 30*12
import com.yammer.metrics.annotation.Timed;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
@Path("/healthcheck")
public interface HealthCheck
{
@ryantenney
ryantenney / module.js
Created October 6, 2011 23:24 — forked from WebReflection/module.js
implicit require
var module = (function create(
namespace, handler, module
) {
// ------------------------------------
// (C) WebReflection - MitStyle License
// ------------------------------------
// @dependency npm install node-proxy
// ------------------------------------
// var sys = module.sys;
// sys.print("it works!");
@ryantenney
ryantenney / telnet.js
Created November 18, 2010 05:51 — forked from ry/telnet.js
var p=process,n=require('net'),a=p.argv.slice(2),s=n.Stream();s.connect.apply(s,a);s.pipe(p.stdout);p.openStdin().pipe(s);