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 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", |
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 '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 |