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
--- Site/1.8/rubygems/commands/cleanup_command.rb.dist 2008-12-23 11:44:35.000000000 -0600 | |
+++ Site/1.8/rubygems/commands/cleanup_command.rb 2008-12-23 11:42:43.000000000 -0600 | |
@@ -71,6 +71,7 @@ | |
options[:args] = [spec.name] | |
options[:version] = "= #{spec.version}" | |
options[:executables] = false | |
+ options[:install_dir] = File.dirname(File.dirname(spec.loaded_from)) if spec.loaded_from | |
uninstaller = Gem::Uninstaller.new spec.name, options | |
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
; <couchdb-lucene> | |
[couchdb] | |
os_process_timeout=60000 ; increase the timeout from 5 seconds. | |
[external] | |
fti=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java -Dcouchdb.lucene.dir=/opt/local/var/lib/couchdb/lucene -Dcouchdb.log.dir=/opt/local/var/log/couchdb -jar /Users/dwalters/Projects/couchdb-lucene/target/couchdb-lucene-0.3-SNAPSHOT-jar-with-dependencies.jar -search | |
[update_notification] | |
indexer=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java -Dcouchdb.lucene.dir=/opt/local/var/lib/couchdb/lucene -Dcouchdb.log.dir=/opt/local/var/log/couchdb -jar /Users/dwalters/Projects/couchdb-lucene/target/couchdb-lucene-0.3-SNAPSHOT-jar-with-dependencies.jar -index |
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/sh | |
# Patches the Chromium application installation with command line arguments to enable extensions. | |
set -o errexit | |
app=${1:-/Applications/Chromium.app} | |
cat >$app/Contents/MacOS/Chromium.wrapper <<EOF | |
#!/bin/sh | |
exec $app/Contents/MacOS/Chromium --enable-extensions --enable-user-scripts --enable-sync "\$@" | |
EOF | |
chmod 755 $app/Contents/MacOS/Chromium.wrapper | |
defaults write $app/Contents/Info CFBundleExecutable Chromium.wrapper |
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
#!/usr/bin/env ruby | |
# | |
# Scans a bzip2 file for all block headers and outputs their bit offset within the file. | |
# As blocks are independent, the resulting offsets can be decompressed via random access. | |
# | |
# Author: Dan Walters | |
BZ2_BLOCK_MAGIC = 0x314159265359 # BCD pi | |
BZ2_EOS_MAGIC = 0x177245385090 # BCD sqrt(pi) |
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
// ==UserScript== | |
// @name Magnacity (Magnet links for torrentz.com) | |
// @namespace http://userscripts.org/users/vulcano | |
// @description Adds direct download links to the result pages of torrentz.com. It uses the so-called magnet URI scheme to provide a more user-friendly, faster way to access your favorite torrents. | |
// @include http://torrentz.eu/* | |
// @include http://www.torrentz.eu/* | |
// @license Creative Commons Attribution-Share Alike http://creativecommons.org/licenses/by-sa/3.0/ | |
// @copyright (c) 2009-2011 Dr. Vulcano | |
// @version 1.0.5 | |
// ==/UserScript== |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>encfs</string> | |
<key>OnDemand</key> | |
<false/> | |
<key>ProgramArguments</key> | |
<array> |
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 'formula' | |
class Freeimage < Formula | |
url 'http://downloads.sourceforge.net/project/freeimage/Source%20Distribution/3.15.1/FreeImage3151.zip' | |
version '3.15.1' | |
md5 '450d2ff278690b0d1d7d7d58fad083cc' | |
homepage 'http://sf.net/projects/freeimage' | |
def install | |
inreplace "Makefile.gnu" do |s| |
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
#!/usr/bin/env ruby | |
# | |
# Script to decrypt (and reencrypt) Linksys EA3500 v1.0 configuration file backups, e.g., | |
# Linksys_EA3500V1_v1.0.30.126544.cfg . The result of decryption is a plain text nvram dump that | |
# can be edited, re-encrypted, and uploaded back into the router. | |
# | |
# Depends on Ruby 1.9 and an openssl command line binary. | |
require 'optparse' | |
require 'tempfile' |
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
#!/usr/bin/env ruby | |
# | |
# Requires Ruby 1.9, and extracts the uImage header, kernel, and jffs root image from a stock | |
# firmware. | |
Encoding.default_external = "binary" | |
FW_FILENAME = "FW_EA3500_1.0.30.126544.SSA" | |
data = File.read(FW_FILENAME) |