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
echo -e ".backup\nlogs\nvendor" | xargs -d# -Ixx svn propset svn:ignore 'xx' . --recursive |
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 'em-redis' | |
require 'redis' | |
require 'redis/distributed' | |
require "fiber_pool" | |
class Redis | |
class Distributed | |
def initialize(urls, options = {}) | |
@tag = options.delete(:tag) || /^\{(.+?)\}/ |
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
set timeout 5 | |
spawn telnet [lindex $argv 0] [lindex $argv 1] | |
expect "Connected" | |
send "PING\n" | |
expect "+PONG" | |
send "QUIT" | |
#usage: expect redis.expect <host> <port> |
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
#encoding: utf-8 | |
# Patches async sinatra to use Fiber.new{}.resume for every request | |
require "sinatra/async" | |
require "fiber" | |
module Sinatra | |
module Async | |
module Helpers |
NewerOlder