Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
#
# Git log to iCalendar
#
# Written by Dmitry Chestnykh, 5 Aug 2008
# Public domain
#
# Usage:
#
# cd git-repo
From c6966ade4141e695159b3b38bdc60a7a82d30775 Mon Sep 17 00:00:00 2001
From: Pieter de Bie <[email protected]>
Date: Thu, 25 Sep 2008 22:25:46 +0200
Subject: [PATCH] HistoryView: Add a method to put a commit online
---
GitX.xcodeproj/project.pbxproj | 4 +++
Images/spinner.gif | Bin 0 -> 1924 bytes
PBGitCommit.h | 2 +
PBGitCommit.m | 9 +++++++
/** Fast String - Voice Technology
* Simple char[] substitute with faster appender.
* Fernando Gregianin Testa <[email protected]>
* v0.1 - Usando no provider v2. 2007-02-22
*/
#ifndef FSTRING_
#define FSTRING_
#include <stdlib.h>
@defunkt
defunkt / gist:29879
Created November 28, 2008 02:02 — forked from pjhyett/dedup.rb
#!/usr/bin/ruby
##
# Remove any duplicate tracks in iTunes
# PJ Hyett was here 11/2008
framework "Cocoa"
framework "ScriptingBridge"
itunes = SBApplication.applicationWithBundleIdentifier("com.apple.iTunes")
@defunkt
defunkt / gist:28743
Created November 25, 2008 01:51 — forked from tekkub/gist:27573
def with_umask(mask)
previous = File.umask(mask)
yield
File.umask(previous)
end
@defunkt
defunkt / fstring.hpp
Created November 25, 2008 01:19 — forked from tekkub/fstring.hpp
/** Fast String - Voice Technology
* Simple char[] substitute with faster appender.
* Fernando Gregianin Testa <[email protected]>
* v0.1 - Usando no provider v2. 2007-02-22
*/
#ifndef FSTRING_
#define FSTRING_
#include <stdlib.h>
puts %. This is a statement.
puts %? This is a question?
puts %! This is an exclamation!
puts % These are tabs # but of course github converts tabs to spaces
# so you'll have to use your imagination
@defunkt
defunkt / god.rb
Created November 18, 2008 18:04 — forked from mojombo/gist:26183
rails_root = "/data/github/current"
20.times do |num|
God.watch do |w|
w.name = "dj-#{num}"
w.group = 'dj'
w.interval = 30.seconds
w.start = "rake -f #{rails_root}/Rakefile production jobs:work"
w.uid = 'git'
CmdUtils.CreateCommand({
name: "plasmodb",
takes: {"plasmodb_id": noun_arb_text},
homepage: "http://gist.github.com/20872",
author: { name: "Ben J. Woodcroft", email: "[email protected]"},
contributors: ["Ben J. Woodcroft"],
license: "GPL3",
description: "Go to a PlasmoDB Gene page in a new window",
preview: "Go to a PlasmoDB Gene page in a new window.",