Skip to content

Instantly share code, notes, and snippets.

Avatar

Takeo Fujita tkeo

  • grimoire
  • Meguro, Tokyo
  • Twitter @tkeo
View GitHub Profile
View cbhistory.rb
#!/usr/bin/env ruby
require 'fileutils'
Dir.chdir
Dir.chdir(FileUtils.mkdir_p('cblog').last)
last_string = nil
loop do
sleep 1
string = IO.popen('pbpaste', 'r+') {|io| io.read }
next if string.nil? || string.empty? || string == last_string
@tkeo
tkeo / gist:619467
Created Oct 10, 2010
hyperestraier homebrew formula
View gist:619467
require 'formula'
class Hyperestraier <Formula
url 'http://fallabs.com/hyperestraier/hyperestraier-1.4.13.tar.gz'
homepage 'http://fallabs.com/hyperestraier/'
depends_on 'qdbm'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",