Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'optparse'
require 'webrick'
include WEBrick
OPTIONS = {
:Port => 2000,
:DocumentRoot => Dir.pwd
}
---
filter:
- erb
- markdown
directory: gallery
extension: html
title: "Gallery - i_like_dip.jpg"
filename: i_like_dip
image: i_like_dip.jpg
---
Cassady:~/Music/jazz-on-line/maybe/look yossef$ earworm VIC09689.mp3
/Library/Ruby/Gems/1.8/gems/icanhasaudio-0.1.3/lib/icanhasaudio/mpeg/decoder.rb:25:in `native_decode': Error: number of channels has changed (RuntimeError)
from /Library/Ruby/Gems/1.8/gems/icanhasaudio-0.1.3/lib/icanhasaudio/mpeg/decoder.rb:25:in `decode'
from /Library/Ruby/Gems/1.8/gems/earworm-0.0.2/lib/earworm/fingerprint.rb:95:in `decode_mp3'
from /Library/Ruby/Gems/1.8/gems/earworm-0.0.2/lib/earworm/fingerprint.rb:94:in `open'
from /Library/Ruby/Gems/1.8/gems/earworm-0.0.2/lib/earworm/fingerprint.rb:94:in `decode_mp3'
from /Library/Ruby/Gems/1.8/gems/earworm-0.0.2/lib/earworm/fingerprint.rb:93:in `open'
from /Library/Ruby/Gems/1.8/gems/earworm-0.0.2/lib/earworm/fingerprint.rb:93:in `decode_mp3'
from /Library/Ruby/Gems/1.8/gems/earworm-0.0.2/lib/earworm/fingerprint.rb:32:in `to_hash'
from /Library/Ruby/Gems/1.8/gems/earworm-0.0.2/lib/earworm/client.rb:16:in `identify'
Cassady:/usr/local/bin yossef$ ls -l growlnotify*
-rwxr-xr-x 1 root wheel 324 Jun 26 2008 growlnotify*
-rwxr-xr-x 1 root wheel 130440 Jun 26 2008 growlnotify.wrapped*
-rwxr-xr-x 1 root wheel 324 Jun 8 2008 growlnotify.wrapper*
Cassady:/usr/local/bin yossef$
#!/bin/sh
BRANCHES=`git branch`
if [ $? != 0 ]; then
exit
fi
GIT_SVN=0
git branch -r | grep 'git-svn' > /dev/null
if [ $? = 0 ]; then
GIT_SVN=1
[2009-02-10: REVISION 1498]
[NEW] Starting with 10.4.11, commands with HTML output can link directly to local files using the file: schema instead of having to go though tm-file:.
[NEW] TextMate bundles and support libraries are for the most part now compatible with Ruby 1.9 (we still consider the support work in progress). Thanks to all who submitted patches, especially Dave Thomas.
[CHANGED] The command modifiers are no longer present for disambiguation menu items. See <http://lists.macromates.com/textmate/2008-December/027599.html> for details about what this was about.
[2008-11-27: REVISION 1496]
This allowed for automatic render overrides based on controller
An example:
controller = UsersController
action = show
normal path = RAILS_ROOT/app/views/users/show.html.erb (or haml or rhtml or rjs or whatever)
With this in place,
lndir()
{
SRC_DIR=$1
TGT_LOC=${2:-.}
DIR_NAME=${SRC_DIR/%\//}
DIR_NAME=${DIR_NAME##*/}
mkdir $TGT_LOC/$DIR_NAME
for f in $SRC_DIR/* ; do
ln $f $TGT_LOC/$DIR_NAME/${f##*/}
<div align="center"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"><font size="4"><font size="2"
<Dreamr_3> any easy way to get diff to just show me a list of commits?
<Dreamr_3> like the commits that are missing from a branch?
<Ilari> Dreamr_3: 'git log parent..branch'?
<cardioid> Dreamr_3: I don't think you know what diff is for
<Dreamr_3> yeah i do :)
<Dreamr_3> i just didn't want a diff :)
<Dreamr_3> no that's not really want i want