This file contains 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 | |
input= | |
while true | |
do | |
input="$(/usr/bin/osascript 2>/dev/null <<-__HEREDOC__ | |
with timeout of 300 seconds | |
tell application "System Events" |
This file contains 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
// XORCipher - Super simple encryption using XOR and Base64 | |
// | |
// Depends on [Underscore](http://underscorejs.org/). | |
// | |
// As a warning, this is **not** a secure encryption algorythm. It uses a very | |
// simplistic keystore and will be easy to crack. | |
// | |
// The Base64 algorythm is a modification of the one used in phpjs.org | |
// * http://phpjs.org/functions/base64_encode/ | |
// * http://phpjs.org/functions/base64_decode/ |
This file contains 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 Pdftk < Formula | |
url 'http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip' | |
homepage 'http://www.pdflabs.com/' | |
md5 '9eb50fffcd621a627d387750c60982b4' | |
depends_on 'gcc' # with "--enable-java" option , required "Homebrew-alt" . | |
# via : https://github.com/adamv/homebrew-alt/ | |
def install |
This file contains 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
~/.rvm/rubies/jruby-1.6.5/bin/ruby | |
before singleton method definition | |
0.991000 0.000000 0.991000 ( 0.990000) | |
after singleton method definition | |
0.641000 0.000000 0.641000 ( 0.641000) | |
~/.rvm/rubies/jruby-1.6.7.2/bin/ruby | |
before singleton method definition | |
0.554000 0.000000 0.554000 ( 0.555000) |
This file contains 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 SequelReconnector | |
RETRY_LIMIT = 10 # Match this to your connection pool size. | |
def initialize(app, db) | |
@app = app | |
@db = db | |
end | |
def call(env) | |
retries = 0 |