Skip to content

Instantly share code, notes, and snippets.

@mhl
mhl / fix-ogg-length.sh
Created December 11, 2009 18:20
Fix Ogg Vorbis files with vcut
#!/bin/sh
# If you have a lot of Ogg Vorbis files with lengths that are wildly
# wrong or have incomplete data at the start, you may be able to fix
# them with this script. I invoked this for a whole directory of
# files with:
# find . -iname '*.ogg' -print0 | xargs -0 -n 1 fix-ogg-length.sh
set -e
echo Fixing "$1"
@mhl
mhl / helvetireader.css
Created December 11, 2009 18:00
A variation of Helvetireader
/*Version 1.51 15.06.09*/
/* @group Helvetireader */
* {font-family: "Helvetica Neue", Helvetica, "MgOpen Moderna", sans-serif !important;}
body {background-color: #fff !important;}
/* Anything to to hide? */
@mhl
mhl / copy-over-podcasts.py
Created November 17, 2009 14:29
Most recent podcasts playlist
#!/usr/bin/python2.5
import sys
import os
import stat
import re
from subprocess import call, check_call, Popen, PIPE
from optparse import OptionParser
# I've found this script useful for copying my most recently
@mhl
mhl / get-tinyurl.rb
Created September 20, 2009 18:06
Create a tinyurl from Ruby
#!/usr/bin/ruby
require 'cgi'
unless ARGV.length == 1
STDERR.puts "Usage: tinyurl <URL>"
exit(1)
end
url = ARGV[0]