Skip to content

Instantly share code, notes, and snippets.

View tkeo's full-sized avatar

Takeo Fujita tkeo

  • grimoire
  • Meguro, Tokyo
  • X @tkeo
View GitHub Profile
#!/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 October 10, 2010 18:58
hyperestraier homebrew formula
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",