Skip to content

Instantly share code, notes, and snippets.

View siavashs's full-sized avatar
🐛
killing bugs

Siavash Safi siavashs

🐛
killing bugs
View GitHub Profile
@siavashs
siavashs / remote_syslog
Last active August 29, 2015 14:12
remote_syslog2 rc.d script for FreeBSD
#!/bin/sh
#
# PROVIDE: remote_syslog
#
. /etc/rc.subr
name="remote_syslog"
rcvar="${name}_enable"
@siavashs
siavashs / lyrics.rb
Created August 31, 2012 17:50
Ruby script to fetch lyrics from Lyric Wiki
# lyrics.rb: Ruby script to fetch lyrics from Lyric Wiki
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@siavashs
siavashs / gist:3146099
Created July 19, 2012 19:14
Open Ruby Gems Docs from Fish Shell (Mac OS X)
set gemdir (gem env gemdir)
function gemdoc
set -l doc $gemdir/doc/$argv*/rdoc/index.html
open $doc
end
complete -xc gemdoc -a "(ls $gemdir/doc/ | cut -d '-' -f 1)"