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
--- elscreen.el.original 2013-03-21 12:58:17.000000000 +0900 | |
+++ elscreen.el 2013-03-21 12:59:05.000000000 +0900 | |
@@ -984,7 +984,7 @@ | |
(defun elscreen-jump () | |
"Switch to specified screen." | |
(interactive) | |
- (let ((next-screen (string-to-number (string last-command-char)))) | |
+ (let ((next-screen (string-to-number (string last-command-event)))) | |
(if (and (<= 0 next-screen) (<= next-screen 9)) | |
(elscreen-goto next-screen)))) |
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 'moped' | |
session = Moped::Session.new([ "127.0.0.1:27017" ]) | |
session.use "test" | |
str = '' | |
1_000_000.times do | |
str << '0123456789' | |
end |
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
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'json' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: ltsv2json.rb [options]" | |
opts.on("-f", "--format FORMAT", "Select format.") do |v| |
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
#!/usr/bin/env ruby | |
while gets | |
record = Hash[$_.split("\t").map{|p| p.split(":", 2)}] | |
p record | |
end |
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
diff --git a/Library/Formula/weechat.rb b/Library/Formula/weechat.rb | |
index 52eee04..8fdbb0d 100644 | |
--- a/Library/Formula/weechat.rb | |
+++ b/Library/Formula/weechat.rb | |
@@ -20,6 +20,10 @@ class Weechat < Formula | |
option 'python', 'Build the python module (requires framework Python)' | |
option 'aspell', 'Build the aspell module that checks your spelling' | |
+ def patches | |
+ DATA |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use GD; | |
sub draw_page { | |
my ($width, $height) = @_; | |
return unless $width && $height; |
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
cat idm_export.xml | nkf -w | sed 's/encoding="shift-jis"/encoding="utf-8"/'| idm2keepassx.rb > keepassx.xml |
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
#! /usr/bin/env ruby | |
# idm2keepassx.rb | |
# convert IDM export XML to KeepassX XML | |
# | |
# usage: | |
# cat idm_export.xml | idm2keepassx.rb > keepassx.xml | |
require "rexml/document" | |
require "date" |
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
diff -u libevent-1.4.14b-stable.orig/event.c libevent-1.4.14b-stable/event.c | |
--- libevent-1.4.14b-stable.orig/event.c 2010-06-20 22:06:04.000000000 +0900 | |
+++ libevent-1.4.14b-stable/event.c 2010-08-15 02:34:35.000000000 +0900 | |
@@ -50,6 +50,7 @@ | |
#include <string.h> | |
#include <assert.h> | |
#include <time.h> | |
+#include <pthread.h> | |
#include "event.h" |