Skip to content

Instantly share code, notes, and snippets.

View gmcintire's full-sized avatar
:shipit:

Graham McIntire gmcintire

:shipit:
View GitHub Profile
@gmcintire
gmcintire / Basic Oi (Cucumber) Kimchi
Created September 24, 2011 19:16 — forked from jamis/Basic Oi (Cucumber) Kimchi
Basic Oi (Cucumber) Kimchi
BASIC OI (CUCUMBER) KIMCHI
--------------------------------------------------------------------------
Oi (cucumber) kimchi is a delicious, refreshing variation on the
traditional Korean kimchi recipe.
This particular recipe is a modified version of the recipe posted by Dr.
Ben Kim, at http://www.drbenkim.com/how-to-make-cucumber-kim-chi.htm.
--------------------------------------------------------------------------
@gmcintire
gmcintire / APRSMessage.rb
Created September 21, 2011 22:14
APRSMessage.rb
#
# APRS4R - a ruby based aprs gateway/digipeater
# Copyright (C) 2006 by Michael Conrad <do5mc at aprs4r.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@gmcintire
gmcintire / test.rb
Created September 17, 2011 20:25 — forked from tenderlove/test.rb
require 'thread'
require 'json'
require 'net/http'
require 'uri'
require 'betabrite'
require 'psych'
require 'usb'
class StreamClient
def initialize user, pass
@gmcintire
gmcintire / Basic Baechu Kimchi
Created July 25, 2011 18:26 — forked from jamis/Basic Baechu Kimchi
Basic Baechu Kimchi
BASIC BAECHU KIMCHI
--------------------------------------------------------------------------
Baechu (Napa cabbage) kimchi is one of the staple foods in Korea. Spicy
and tangy, it is typically served as a side dish, with rice, but is also
found in various Korean soups and stews.
This basic version has just the fundamentals; once you're comfortable
with this version, you might try adding shredded carrots, Daikon radish,
pickled baby shrimp, or any number of other things. Search around online
@gmcintire
gmcintire / Basic Oi (Cucumber) Kimchi
Created July 25, 2011 18:26 — forked from jamis/Basic Oi (Cucumber) Kimchi
Basic Oi (Cucumber) Kimchi
BASIC OI (CUCUMBER) KIMCHI
--------------------------------------------------------------------------
Oi (cucumber) kimchi is a delicious, refreshing variation on the
traditional Korean kimchi recipe.
This particular recipe is a modified version of the recipe posted by Dr.
Ben Kim, at http://www.drbenkim.com/how-to-make-cucumber-kim-chi.htm.
--------------------------------------------------------------------------
#!/bin/sh
#
# Builds Nginx with Passenger support.
# Uses the www/nginx FreeBSD port as the nginx source, also applies
# the FreeBSD port patches and /usr/local/etc/rc.d/nginx rc(8) script.
#
# Enables building Nginx with Passenger from REE for example as the
# www/nginx port with PASSENGER enabled uses system ruby.
#
@gmcintire
gmcintire / convert_gridsquare.rb
Created February 4, 2011 19:01
Converts decimal lat/long to maidenhead gridsquare
def dec_to_grid(dms)
grid = ''
lat = dms[0]+90
lon = dms[1]+180
v = (lon/20).to_i
lon -= (v*20)
grid += ((?A.to_i + v).chr).to_s # first letter
@gmcintire
gmcintire / latlongtogrid.rb
Created January 19, 2011 05:25
Converts Lat/Long in decimal to 6 digit Gridsquare
def degrees_to_dms(dec)
deg = dec.floor
remainder = (dec - deg) * 3600
min = (remainder/60).floor
sec = remainder - (min*60)
a = [deg, min, sec]
end
=item decrypt($value)
Uses the private key to decrypt the string. Returns the decryoted string or undef on failure.
You should generally not have to worry about calling this, as the system handles this for you.
=cut
sub decrypt {
my ($self,$value) = @_;
BASIC BAECHU KIMCHI
--------------------------------------------------------------------------
Baechu (Napa cabbage) kimchi is one of the staple foods in Korea. Spicy
and tangy, it is typically served as a side dish, with rice, but is also
found in various Korean soups and stews.
This basic version has just the fundamentals; once you're comfortable
with this version, you might try adding shredded carrots, Daikon radish,
pickled baby shrimp, or any number of other things. Search around online