Skip to content

Instantly share code, notes, and snippets.

View jrgifford's full-sized avatar
:shipit:
This is like AIM all over again, isn't it?

James Gifford jrgifford

:shipit:
This is like AIM all over again, isn't it?
View GitHub Profile
root@wsa:~ $ shutdown -r now
Terminal reboot complete. Login required.
Password: ¦ ¦ ¦ ¦ ¦
Access Denied
Password: ¦ ¦ ¦ ¦ ¦
Access Denied
Password: ¦ ¦ ¦ ¦ ¦
Access Granted
@jrgifford
jrgifford / gist:1322973
Created October 28, 2011 18:21
hubot irc logfile
Loading deploy-local scripts at /home/jrg/code/hubot/scripts
Loading hubot core scripts for relative scripts at /home/jrg/code/hubot/src/hubot/scripts
{ nick: 'jrgiffordbot',
port: undefined,
rooms: [ '#2buntu' ],
server: 'irc.freenode.net',
password: undefined,
nickpass: undefined }
/^jrgiffordbot:?\s*help$/i
From jrgifford to #2buntu: jrgiffordbot: tweet google.com
#2buntu <jrgifford> jrgiffordbot: tweet google.com
/home/jrg/code/hubot/node_modules/hubot/src/hubot/irc.coffee:43
return this.send(user, "" + user.name + ": " + str);
^
TypeError: Object #<Object> has no method 'send'
at /home/jrg/code/hubot/node_modules/hubot/src/hubot/irc.coffee:43:23
at IrcBot.reply (/home/jrg/code/hubot/node_modules/hubot/src/hubot/irc.coffee:44:10)
at Response.reply (/home/jrg/code/hubot/node_modules/hubot/src/robot.coffee:284:40)
@jrgifford
jrgifford / isitup.rb
Created November 30, 2011 12:33
isitup.rb
require 'rubygems'
require 'net/http'
require 'uri'
require 'boxcar_api'
url = URI.parse('http://bjmdw.dyndns.org:88/up.txt')
def up?(url)
begin
Net::HTTP.get_response(url).body == "yes"
true
@jrgifford
jrgifford / gist:1424323
Created December 2, 2011 18:36
charm school for 02/12/2011
10:02 jcastro: Ok, welcome everyone to the first ever #juju charm school
10:02 jcastro: we'll give it another minute for the stragglers to arrive
10:02 niemeyer: rog, mpl: => #juju-tmp
10:03 mpl: niemeyer: ah yes, silly me, your message pointing to that url (with zk) is from september. I had the rename the other way around in my head, sorry.
10:03 ! fmo [c3bcb401@gateway/web/freenode/ip.195.188.180.1] has joined #juju
10:03 ! chmac [~chmac@cpc1-sgyl17-0-0-cust335.sgyl.cable.virginmedia.com] has joined #juju
10:03 niemeyer: TheMue: => #juju-tmp
10:04 ! nijaba [~quassel@unaffiliated/nijaba] has joined #juju
10:05 ! chute [~chute@84.121.89.190.dyn.user.ono.com] has joined #juju
10:05 ! jasox [~jxx@178.239.26.139] has joined #juju
[Desktop Entry]
Name=Home Folder
Comment=Open your personal folder
Exec=nautilus
Icon=user-home
Terminal=false
StartupNotify=true
Type=Application
OnlyShowIn=GNOME;Unity;
Categories=GNOME;GTK;Core;
@jrgifford
jrgifford / shoes-test.rb
Created December 20, 2011 15:55
Shoes.rb test app
Shoes.app :title => "MAIN" do
background "#DFA"
para "Welcome to Shoes"
@s = stack do
@p1 = para "First"
@p2 = para "Second"
@p3 = para "Third"
end
button "Spawn" do
@jrgifford
jrgifford / gist:1514239
Created December 23, 2011 13:42
facter output on a Ubuntu 11.10 amd64 machine
architecture => amd64
blockdevice_sda_model => Hitachi HTS54505
blockdevice_sda_size => 500107862016
blockdevice_sda_vendor => ATA
blockdevice_sdb_model => xD/SD/M.S.
blockdevice_sdb_size => 0
blockdevice_sdb_vendor => Generic-
blockdevice_sr0_model => CDDVDW SN-208BB
blockdevice_sr0_size => 1073741312
blockdevice_sr0_vendor => hp
[2011-12-28 12:52:19] make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/jrg/.rvm/src/yaml-0.1.4/config/missing --run aclocal-1.11
cd . && /bin/bash /home/jrg/.rvm/src/yaml-0.1.4/config/missing --run automake-1.11 --foreign
src/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:2: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/Makefile.am:2: to `configure.ac' and run `aclocal' and `autoconf' again.
src/Makefile.am:2: If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
src/Makefile.am:2: its definition is in aclocal's search path.
make: *** [Makefile.in] Error 1
$ rvm install 1.9.2
Installing Ruby from source to: /home/jrg/.rvm/rubies/ruby-1.9.2-p290, this may take a while depending on your cpu(s)...
ruby-1.9.2-p290 - #fetching
ruby-1.9.2-p290 - #extracted to /home/jrg/.rvm/src/ruby-1.9.2-p290 (already extracted)
Fetching yaml-0.1.4.tar.gz to /home/jrg/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /home/jrg/.rvm/src
Configuring yaml in /home/jrg/.rvm/src/yaml-0.1.4.
Compiling yaml in /home/jrg/.rvm/src/yaml-0.1.4.
ERROR: Error running 'make ', please read /home/jrg/.rvm/log/ruby-1.9.2-p290/yaml/make.log