Public Gists by grempe

Gravatar
Tue Oct 06 16:11:05 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
# pass in a PID as the first param to monitor the highwater memory mark
Gravatar
Fri Sep 04 11:10:18 -0700 2009
1
2
3
#!/bin/bash
 
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Gravatar
Fri Jul 17 08:27:14 -0700 2009
1
2
3
# create a multiple of confirmed users
NUM_CLIENTS = Client.find(:all).count
NUM_CATEGORIES = NUM_CLIENTS * 5
Gravatar
Mon Jul 13 16:44:41 -0700 2009
1
2
3
require 'autotest/rails'
require 'autotest/growl'
 
Gravatar
Sat Jul 11 21:25:08 -0700 2009
1
2
3
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
 
Gravatar
Sat Jul 11 21:14:38 -0700 2009
1
2
3
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
Gravatar
Wed Jul 08 10:07:30 -0700 2009
1
2
3
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# username@Machine ~/dev/dir[master]$ # clean working directory
Gravatar
Tue Jul 07 13:18:18 -0700 2009
1
2
3
DEBUG: Ohai Attribute: uptime_seconds - 59828
DEBUG: Ohai Attribute: block_device - {"ram0"=>{"size"=>"32768", "removable"=>"0"}, "ram13"=>{"size"=>"32768", "removable"=>"0"}, "ram1"=>{"size"=>"32768", "removable"=>"0"}, "ram14"=>{"size"=>"32768", "removable"=>"0"}, "sda1"=>{"size"=>"20971520", "removable"=>"0"}, "ram2"=>{"size"=>"32768", "removable"=>"0"}, "ram15"=>{"size"=>"32768", "removable"=>"0"}, "ram3"=>{"size"=>"32768", "removable"=>"0"}, "ram4"=>{"size"=>"32768", "removable"=>"0"}, "ram5"=>{"size"=>"32768", "removable"=>"0"}, "ram6"=>{"size"=>"32768", "removable"=>"0"}, "sdb"=>{"size"=>"880732160", "removable"=>"0"}, "ram7"=>{"size"=>"32768", "removable"=>"0"}, "ram10"=>{"size"=>"32768", "removable"=>"0"}, "sdc"=>{"size"=>"880732160", "removable"=>"0"}, "ram8"=>{"size"=>"32768", "removable"=>"0"}, "ram11"=>{"size"=>"32768", "removable"=>"0"}, "ram9"=>{"size"=>"32768", "removable"=>"0"}, "ram12"=>{"size"=>"32768", "removable"=>"0"}}
DEBUG: Ohai Attribute: platform - "ubuntu"
Gravatar
Tue Jun 16 14:21:51 -0700 2009
1
2
3
%div{:id => 'flashes'}
  - flash.each do |key, value|
    %div{:class => 'flash-wrapper ui-widget'}
Gravatar
Tue Jun 09 17:36:54 -0700 2009
1
2
3
rails@ip-10-250-26-49:~$ curl http://www.google.com/search?q=iphone
<html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"><title>403 Forbidden</title><style><!--body {font-family: arial,sans-serif}div.nav {margin-top: 1ex}div.nav A {font-size: 10pt; font-family: arial,sans-serif}span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold}div.nav A,span.big {font-size: 12pt; color: #0000cc}div.nav A {font-size: 10pt; color: black}A.l:link {color: #6f6f6f}A.u:link {color: green}//--></style><script><!--var rc=403;//--></script></head><body text=#000000 bgcolor=#ffffff><table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap><b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size=10>g</font><font face=times color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font>&nbsp;&nbsp;</b><td>&nbsp;</td></tr><tr><td bgcolor="#3366cc"><font face=arial,sans-serif color="#ffffff"><b>Error</b></td></tr><tr><td>&nbsp;</td></tr></table><blockquote><H1>Forbidden</H1>Your client does not have permission to get URL <code>/search?q=iphone</code> from this server. (Client IP address: 75.101.165.174)<br><br>
Please see Google's Terms of Service posted at http://www.google.com/terms_of_service.html
Gravatar
Tue Apr 21 11:51:37 -0700 2009
1
2
3
To: Mr. Mark A. Emmert, The President of the University of Washington
Cc: Carol S. Niccolls, Special Counsel to the President; Connie
Ivey-Pasche, Assistant to the Chair UW Computer Science and
Gravatar
Tue Jan 20 15:59:02 -0800 2009
1
2
3
<VirtualHost *:80>
  ServerName couchdb.rempe.org
  DocumentRoot /var/www/couchdb.rempe.org
Gravatar
Sun Jan 18 12:52:40 -0800 2009
1
2
3
[glenn@www1 svn]$ cat ./ejabberd_build_install.sh
#!/bin/sh
 
Gravatar
Sun Jan 18 09:26:56 -0800 2009
1
2
3
Instead of using a configured tunnel like sonic.net offers on the tunnel setup page (which I think is referred to as a 6in4 tunnel) I am able to use automatic tunnels (6to4) since I have an Apple Time Capsule border wifi router (Airport Extreme version works the same) and Mac's internally. Setup was as simple as can be:
 
Configure Router
Gravatar
Mon Dec 29 20:12:38 -0800 2008
1
2
3
glenn@macbook-pro ~/src/git/loudmouth[master]$ port installed
The following ports are currently installed:
  atk @1.20.0_1
Gravatar
Mon Dec 22 14:21:40 -0800 2008
1
2
3
<presence from="grempe@twitter.tweet.im" type="error" to="glenn@rempe.us/homeED93CF04" >
<priority>5</priority>
<x xmlns="jabber:x:signed">iEYEABECAAYFAklQEdYACgkQ3B2pNZkW7upCmACfabZYrDPZbeJ/sfj4wCmFGKJr
Gravatar
Tue Dec 09 19:41:39 -0800 2008
1
2
3
function parse_git_dirty {
  [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*"
}
Gravatar
Mon Nov 17 15:52:24 -0800 2008
1
2
3
Last login: Mon Nov 17 15:43:50 on ttys000
Kernel Information: Darwin 9.5.0 i386
GNU bash, version 3.2.17(1)-release (i386-apple-darwin9.0)
Gravatar
Tue Nov 11 12:14:04 -0800 2008
1
2
3
~/src/git\ > ./cappuccino_build_install.sh
~/src/git/cappuccino ~/src/git
Already on "master"
Gravatar
Sun Oct 12 16:19:46 -0700 2008
1
2
3
top_dir
  child_dir
    a_file.txt