Skip to content

Instantly share code, notes, and snippets.

View mstrauss's full-sized avatar

Markus Strauss mstrauss

View GitHub Profile
@mstrauss
mstrauss / Gemfile
Created February 17, 2011 20:58
Gemfile for Wagn 1.5.2 (use with Bundler)
source :rubygems
gem "rails", "=2.3.5"
gem "uuid", "=2.3.1"
gem "json", "=1.4.6"
gem "htmlentities", "=4.2.1"
gem "ruby-openid", ">= 2.0.4"
gem "mysql", "=2.8.1"
@mstrauss
mstrauss / gist:786044
Created January 19, 2011 11:36
a script for updating debian boot images
#!/usr/bin/env ruby
require 'fileutils'
include FileUtils
dists = [ 'lenny', 'squeeze' ]
basenames = [ 'i386', 'amd64' ]
files = [ 'linux', 'initrd.gz' ]
progdir = File.expand_path(File.dirname(__FILE__))
@mstrauss
mstrauss / partition-sdc.sh
Created December 14, 2010 17:24
Partition with correct NetApp alignment (4k block size)
sfdisk -uS /dev/sdc <<EOF
64
0,0
0,0
0,0
EOF
@mstrauss
mstrauss / scrape_links.rb
Created December 14, 2010 16:49
Scrape Google Links (Files names 01.html .. 10.html)