Skip to content

Instantly share code, notes, and snippets.

View jaderobbins's full-sized avatar

Jade Robbins jaderobbins

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jaderobbins on github.
  • I am jaderobbins (https://keybase.io/jaderobbins) on keybase.
  • I have a public key ASBiHY-uStpJIGW7dwJM6JhEX9qccjCO-SXriziiLZsS8Ao

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am jaderobbins on github.
* I am jaderobbins (https://keybase.io/jaderobbins) on keybase.
* I have a public key whose fingerprint is EB94 D299 71F4 AA90 9A1A C258 D42D 1187 37D0 4909
To claim this, I am signing this object:
@jaderobbins
jaderobbins / README
Created March 8, 2012 20:09
Code and Diagrams from Intro to Arduino talk given at Montana Programmers on Thursday, Marth 8, 2012
Code and Diagrams from Intro to Arduino talk given at Montana Programmers on Thursday, Marth 8, 2012
require 'outliner'
include Outliner
outline "This is my outline" do
s "This is a section" do
p "This is a paragraph" do
t "This is a topic in the paragraph"
end
p "This is a paragraph without topics"
end
#!/bin/bash
##
# chkconfig: 2345 75 25
# description: havege entropy daemon
#
# source function library
#. /etc/rc.d/init.d/functions
. /lib/lsb/init-functions
RETVAL=0
#!/bin/bash
##
# chkconfig: 2345 75 25
# description: havege entropy daemon
#
# source function library
#. /etc/rc.d/init.d/functions
. /lib/lsb/init-functions
RETVAL=0
@jaderobbins
jaderobbins / git.rake
Created October 23, 2009 22:16
Rake file for redmine that either 1. fetches new git information or 2. clones a copy of the remote address to the local location
namespace :redmine do
namespace :git do
task :refresh => :environment do
gitFolder = '/path/to/git/repos'
Repository.find(:all).each do |r|
if r.scm_name == "Git"
if r.url =~ /^#{gitFolder}/
puts "------"
puts "SCM is set to local, pull from origin"
@jaderobbins
jaderobbins / dyn-dns-dreamhost.rb
Created September 4, 2009 16:50
A ruby script that acts like DynDns for your own domain (via DreamHost)
require 'open-uri'
require 'rubygems'
require 'json'
# Change these settings
hostname = 'home.hostname.com' # the hostname you use to connect to home ip
apikey = 'your-dreamhost-api-key' # a dreamhost api key that has access to all dns functions
storedIP = ''
print 'Getting current external ip: '
@jaderobbins
jaderobbins / ip.php
Created September 2, 2009 22:26
Ruby/PHP combo scripts to get your external ip address.
<?php
$ip = $_SERVER['REMOTE_ADDR'];
print $ip;
?>
@jaderobbins
jaderobbins / gist:174161
Created August 24, 2009 20:42
Simple image source that prevents your Gravatar (or any image really) from being cached by a browser in PHP.
<img src="http://www.gravatar.com/avatar/cde3978da70d5da9cdcd4b150a55bc89.png?antiCache=<? echo time() ?>">