This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript -e 'tell app "TextMate" to reload bundles' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ur isync-1.0.4.orig/src/drv_imap.c isync-1.0.4/src/drv_imap.c | |
--- isync-1.0.4.orig/src/drv_imap.c 2007-09-22 10:44:12.000000000 +0200 | |
+++ isync-1.0.4/src/drv_imap.c 2009-01-21 23:43:10.000000000 +0100 | |
@@ -1678,7 +1678,7 @@ | |
int ret; | |
imap->boxes = 0; | |
- if ((ret = imap_exec_b( ctx, 0, "LIST \"\" \"%s%%\"", ctx->prefix )) != DRV_OK) | |
+ if ((ret = imap_exec_b( ctx, 0, "LIST \"\" \"%s*\"", ctx->prefix )) != DRV_OK) | |
return ret; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Quicksilver" | |
show large type "FAIL" | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'socket' | |
server = TCPServer.open(9999) | |
loop do | |
Thread.start(server.accept) do |client| | |
puts "connected #{client.inspect}" | |
begin | |
while say = client.readline.strip | |
puts "largetype: #{say}" | |
`osascript -e 'tell application "Quicksilver" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RedCloth.new(" *222 Something* I would expect to be just a little bit emphasized").to_html | |
=> "<strong>222 Something</strong> I would expect to be just a little bit emphasized | |
RedCloth.new("*222 Something* I would expect to be just a little bit emphasized").to_html | |
=> "<ul start=\"222\">\n\t<li>Something* I would expect to be just a little bit emphasized</li>\n</ul>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= navigation [ | |
:home, t(:'navigation.home'), | |
:gallery, t(:'navigation.gallery'), | |
:shop, t(:'navigation.shop'), | |
:contact, t(:'navigation.contact'), | |
:orders, t(:'navigation.orders'), | |
:products, t(:'navigation.products'), | |
:pages, t(:'navigation.pages'), | |
:pictures, t(:'navigation.pictures')], :link_text => true, :authorize => [:orders, :products, :pages, :pictures]%> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Spinner | |
CHARS = %w{- \\ | / } | |
def initialize | |
@step=-1 | |
end | |
def to_s | |
"\r#{char}" | |
end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Array | |
def shuffle | |
self.sort_by { rand } | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME="foo" | |
EMAIL="[email protected]" | |
git filter-branch -f --env-filter ' | |
if [ "$GIT_AUTHOR_EMAIL" = "XXX" ]; | |
then | |
export GIT_AUTHOR_NAME=$NAME | |
export GIT_AUTHOR_EMAIL=$EMAIL | |
export GIT_COMMITTER_NAME=$NAME | |
export GIT_COMMITTER_EMAIL=$EMAIL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DAY=$( date +%d) | |
BACKUP_DIR="/tehre/goes/the/backups" | |
mkdir -p ${BACKUP_DIR} | |
for i in /path/where/important/stuff/is/* | |
do | |
BASENAME=$(basename $i) |
OlderNewer