- Reese kafka migration script
- chef to shell converter for the VPC migration
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 'rubygems' | |
require 'mongo' | |
module MongoPubSub | |
QUEUES_COLLECTION = 'queues' | |
class EndSubscriptionException < Exception; end | |
class Publisher | |
def initialize(queue_name, mongo_connection) | |
# Initialize queue collection as a capped collection | |
if not mongo_connection[QUEUES_COLLECTION].collection_names.include?(queue_name) |
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 gxi | |
(import | |
:std/format | |
:std/os/fcntl | |
:std/os/fdio | |
:std/os/fd) | |
(require bsd) (import :std/os/kqueue) | |
(define observed (make-hash-table-eqv)) |
I hereby claim:
- I am octplane on github.
- I am octplane (https://keybase.io/octplane) on keybase.
- I have a public key ASB90-lwKP27dmnZdSf26knDO6pom-7QnGIeih6a1K0zrwo
To claim this, I am signing this object:
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 'hashie' | |
require 'faraday' | |
require 'faraday_middleware' | |
# Supersimple http://pixabay.com/api/docs/ client. | |
# Usage: | |
# result = PixabayClient.new(key: 'your_key').get(search_term: 'beach') | |
# result.body # Mashified results | |
# See: https://gist.github.com/joost/e32daf904ed8bd171974 | |
class PixabayClient |
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
diff --git a/src/vendor/angular/angular.js b/src/vendor/angular/angular.js | |
index d2115fe..e878eae 100644 | |
--- a/src/vendor/angular/angular.js | |
+++ b/src/vendor/angular/angular.js | |
@@ -8779,6 +8779,9 @@ function $RootScopeProvider(){ | |
logIdx, logMsg; | |
beginPhase('$digest'); | |
+ var ccount = 0; | |
+ console.time("$digest"); |
The introduction of our Unicorn management tool, Polycorn.
Photo by Protohiro from Flickr
At Fotopedia, we use Unicorn to serve our main Rails application. Every day, we restart our application several times, spawning and killing hundred of Unicorns. Managing graceful restarts is a complex task, and requires careful monitoring and command. This article introduces our tool Polycorn, a Unicorn management program.
[[MORE]]
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
#!/bin/sh | |
echo $1.x | |
jshon -e normal -e log_locations -n array -i picor -p -p < $1 > $1.x | |
mv $1.x $1 |
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
body { | |
background-color: #333; | |
} | |
#servicePane { | |
background-color: #242424; | |
} | |
#picker { | |
background-color: #333; |
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 'rubygems' | |
require 'murder' | |
set :remote_murder_path, '/etc/bundler.chef/vendor/bundle/ruby/1.9.1/gems/murder-0.1.2/dist/' # or some other directory | |
s = [] | |
pee = s[0..(ENV['COUNT'].to_i || -1)] |
NewerOlder