Skip to content

Instantly share code, notes, and snippets.

# Rename an email address in all old commits.
# WARNING: Will change all your commit SHA1s.
# Based off of the script from here:
# http://coffee.geek.nz/how-change-author-git.html
git filter-branch -f --commit-filter '
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ];
then
GIT_AUTHOR_EMAIL="[email protected]";
GIT_COMMITTER_EMAIL="[email protected]";
git commit-tree "$@";
<html>
<head>
<title> Interface to jsFluidDB </title>
<script type="text/javascript" src="jquery-1.3.2.js">
</script>
<script type="text/javascript" src="jsFluidDB.js">
</script>
<script type="text/javascript">
function handleResponse(data){
alert(data);
require 'open-uri'
# url dsl -- the ultimate url dsl!
#
# You just can't beat this:
#
# $ irb -r url_dsl
# >> include URLDSL
# => Object
# >> http://github.com/defunkt.json
#!/usr/bin/env python
#
# FlickrTouchr - a simple python script to grab all your photos from flickr,
# dump into a directory - organised into folders by set -
# along with any favourites you have saved.
#
# You can then sync the photos to an iPod touch.
#
# Version: 1.1
*.pbxproj -crlf -diff -merge
/*
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
;; I'm not saying this is good Clojure, but it was off the top of my head
;; It's a title bot for jschat.org
(import '(java.io BufferedReader InputStreamReader PrintWriter))
(import '(java.net Socket))
(import '(java.net HttpURLConnection URL))
(use '[clojure.contrib.json.read :only (read-json)])
(use '[clojure.contrib.json.write :only (json-str)])
;; Data structures
@ecarnevale
ecarnevale / gist:999654
Created May 31, 2011 00:02 — forked from RobSpectre/gist:999620
Tagging an object on FluidINFO
fluidDB.put({
url: 'about/' + encodeURIComponent(sender.tab.url) + '/jeterfilter/contains-jeter',
payload: Math.round(((new Date()).getTime()-Date.UTC(1970,0,1))/1000),
async: false,
primitive: true,
username: fluidDBUsername,
password: fluidDBPassword,
success: function(json) {
console.log('URI tagged as containing Jeter.');
}
#!/usr/bin/env ruby
require 'mail'
# source = 'archives/2005-11.txt'
# month = 11
# year = 2005
#
# system "perl -ne 'if(/^From /){open F,\">eml/msg-#{year}-#{month}-\".++$m.\".eml\"}print F' #{source}"
@ecarnevale
ecarnevale / gist:2108860
Created March 19, 2012 11:47 — forked from marcel/gist:2100703
giftube – Generates an animated gif from a YouTube url.
#!/usr/bin/env ruby
# giftube – Generates an animated gif from a YouTube url.
#
# Usage:
#
# giftube [youtube url] [minute:second] [duration]
#
# ex.
#