Skip to content

Instantly share code, notes, and snippets.

View dpb587's full-sized avatar

Danny Berger dpb587

View GitHub Profile
--- a/lib/filewatch/watch.rb
+++ b/lib/filewatch/watch.rb
@@ -6,6 +6,7 @@ module FileWatch
public
def initialize(opts={})
+ @iswindows = ((RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) != nil)
if opts[:logger]
@logger = opts[:logger]
else
  • cpu-0/cpu-idle/value
  • cpu-0/cpu-interrupt/value
  • cpu-0/cpu-nice/value
  • cpu-0/cpu-softirq/value
  • cpu-0/cpu-steal/value
  • cpu-0/cpu-system/value
  • cpu-0/cpu-user/value
  • cpu-0/cpu-wait/value
  • cpu-1/cpu-idle/value
  • cpu-1/cpu-interrupt/value
@dpb587
dpb587 / README.md
Last active December 15, 2015 08:09
Bank Card Readers for Web Applications - scanning credit cards into website forms.
@dpb587
dpb587 / README.md
Created January 28, 2013 23:04
Scripting Endicia to Purchase Postage - automating user interactions with AppleScript.
@dpb587
dpb587 / README.md
Created January 14, 2013 17:30
Terminating Gearman Workers in PHP - locally and remotely stopping workers without interrupting jobs.
<?php
##
# http://www.doctrine-project.org/jira/browse/DBAL-202
# Scenario where PDO and DBAL behavior differ
#
# pdo: 0
# dbal: 1
##
@dpb587
dpb587 / composer.json
Created April 21, 2012 01:30
phpunit via composer
{
"repositories" : [
{
"type" : "composer",
"url" : "file:///tmp/phpunit-via-composer"
}
],
"require" : {
"pear-phpunit/PHPUnit" : "3.6.10"
}