Skip to content

Instantly share code, notes, and snippets.

osascript -e 'tell app "TextMate" to reload bundles'
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;
tell application "Quicksilver"
show large type "FAIL"
end tell
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"
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>"
<%= 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]%>
class Spinner
CHARS = %w{- \\ | / }
def initialize
@step=-1
end
def to_s
"\r#{char}"
end
class Array
def shuffle
self.sort_by { rand }
end
end
NAME="foo"
EMAIL="foo@example.com"
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
#!/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)