Skip to content

Instantly share code, notes, and snippets.

View dpb587's full-sized avatar

Danny Berger dpb587

View GitHub Profile
@dpb587
dpb587 / README.md
Created January 14, 2013 17:30
Terminating Gearman Workers in PHP - locally and remotely stopping workers without interrupting jobs.
diff --git a/vendor/config_server/types/certificate_generator.go b/vendor/config_server/types/certificate_generator.go
index 7364be1..67e1fc7 100644
--- a/vendor/config_server/types/certificate_generator.go
+++ b/vendor/config_server/types/certificate_generator.go
@@ -7,8 +7,8 @@ import (
"crypto/x509/pkix"
"encoding/pem"
"math/big"
- "time"
"net"
#!/bin/bash
set -eu
if [ -n "${STDOUT:-}" ] ; then
exec 1>$STDOUT
fi
manifest="${1:-$0.jq}"
manifest_dir=$( cd "$( dirname "$manifest" )" && pwd )

To add a new pull request, make a directory with the PR number. Then run generate-all.sh.

hostname:logsearch-development-flow dpb587$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Box 'ubuntu-precise-server-amd64' was not found. Fetching box from specified URL for
the provider 'virtualbox'. Note that if the URL does not have
a box for this provider, you should interrupt Vagrant now and add
the box yourself. Otherwise Vagrant will attempt to download the
full box prior to discovering this error.
Downloading or copying the box...
Extracting box...te: 516k/s, Estimated time remaining: --:--:--)
Successfully added box 'ubuntu-precise-server-amd64' with provider 'virtualbox'!
--- 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.
$ ./bin/test-spiff-patch https://github.com/logsearch/logsearch-boshrelease/pull/176.diff
patching file templates/logsearch-deployment.yml
patching file templates/logsearch-infrastructure-aws.yml
patching file templates/logsearch-infrastructure-vsphere.yml
patching file templates/logsearch-infrastructure-warden.yml
patching file templates/logsearch-jobs.yml
====> aws
120c120
< resource_pool: logsearch