Skip to content

Instantly share code, notes, and snippets.

View searls's full-sized avatar
💚

Justin Searls searls

💚
View GitHub Profile
Trying old session...
Got plugin params, execing vpn client
PPPD LOG: 'Fri Jul 22 20:56:31 2011 : Using interface ppp0\nFri Jul 22 20:56:31 2011 : Connect: ppp0 <--> /dev/ttys004\n'
PPPD LOG: 'Fri Jul 22 20:56:34 2011 : local IP address 192.168.160.243\nFri Jul 22 20:56:34 2011 : remote IP address 192.168.160.1\n'
CALLING ip_up('ppp0', '/dev/ttys004', '192.168.160.243', '192.168.160.1')
add net 0.0.0.0: gateway ppp0
add net 128.0.0.0: gateway ppp0
VPN link is up!
#compact
dd if=/dev/zero of=EMPTY bs=1M
rm EMPTY
#from the host
VBoxManage modifyhd Disk.vdi --compact

Sustainable Web Development with JavaScript & Jasmine

Abstract

JavaScript has finally come of age, and there's a world of opportunity available to those willing to start taking it seriously. If you choose to participate in this workshop, you'll be introduced to JavaScript testing with Jasmine, and upon its conclusion you can expect to be one step closer toward:

  • Relying on automated tests to write clean code that achieves significant functionality while remaining easy to change and grow with confidence (think AJAX, event handling, jQuery, and more)
  • Discovering powerful new tools that have the potential to revolutionize your perception of writing software with JavaScript (like Underscore, Backbone, CoffeeScript, and Node)
@searls
searls / magnus awesome.sh
Created August 18, 2011 12:05
How @magnusstahre reviews disk usage from the command line in *nix
du -k / > /tmp/du
find / -ls > /tmp/ls
sort -n /tmp/du #to find the biggest directories
sort -n -k 7,7 /tmp/ls #to find the biggest files
#at least the latter one you probably want to pipe to either say less or tail
sort -n -k 7,7 /tmp/ls | tail -100

This is the current link tag in the header at 8th light's blog:

<link rel="alternate" type="application/atom+xml" title="Subscribe to the 8th Light blog" href="/atom.xml"/>

Because /atom.xml doesn't exist, that should be:

<link rel="alternate" type="application/atom+xml" title="Subscribe to the 8th Light blog" href="/feed/atom.xml"/>

As a result, tools like Google Reader and Safari aren't able to discover the feed. (Or rather, they think they are, but see that it has no articles)

def read_file(path)
File.read(File.expand_path(File.join(path.split('/')),__FILE__))
end
@searls
searls / rockymtnrb.md
Created September 2, 2011 23:08
Rocky Mountain Ruby Jasmine Link Bibliography

Where am I?

Here lie all the links and resources that Cory and I either created or referenced during our presentation and testing panel today:

If you saw our talk, please submit feedback on SpeakerRate. This will be invaluable if we ever get the opportunity to present something like it to another audience.

##Stuff we created that we either showed or talked about:

@searls
searls / cash-register-problem.md
Created September 7, 2011 23:08
Cash Register Kata

Cash Register Problem

A cash register has a drawer with separate bins for eight different denominations of money:

  • Pennies
  • Nickels
  • Dimes
  • Quarters
  • Singles
  • Fives
@searls
searls / jenkins.md
Created September 9, 2011 15:43
example jenkins setup instructions

Setting up Jenkins

  1. Download

  2. Invoke the .war file (in OS X, double-click it; in *NIX/Windows run java -jar jenkins.war)

  3. Visit Jenkins at http://localhost:8080

  4. Add some plugin fun: