- Reese kafka migration script
- chef to shell converter for the VPC migration
#!/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:
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 |
ADJECTIVE | POS FREQ | NEG FREQ | TomDS | |
---|---|---|---|---|
tout | 0.64 | 0.36 | 0.2 | |
petit | 0.59 | 0.41 | 0.0 | |
grand | 0.75 | 0.25 | 0.2 | |
seul | 0.73 | 0.27 | -0.2 | |
autre | 0.48 | 0.52 | -0.1 | |
même | 0.47 | 0.53 | 0.0 | |
bon | 0.56 | 0.44 | 0.7 | |
premier | 0.51 | 0.49 | 0.5 | |
beau | 0.77 | 0.23 | 0.9 |
use std::io::Write; | |
use std::fs::OpenOptions; | |
use std::path::{ Path}; | |
use std::thread; | |
fn main() { | |
let dst = Path::new("./test.txt"); | |
let mut file = OpenOptions::new().write(true).create(true).open(dst).unwrap(); | |
file.write_all(b"create").unwrap(); |
This article introduces Lackr, the core of our high speed http stack at Fotopedia.
Photo by Aurore D from Flickr
The need for Lackr emerged from the organic — but rational — way Fotonauts stack has evolved over a few years. This is the edifying tale of our long way towards modern architecture and good web performance.
This article introduces Fwissr, the configuration registry tool that we use to centralize all our configurations.
Photo by National Library of Norway
More than five years ago, when we started to build what became fotopedia, we had a main Rails application, a Merb application for user authentication and another Merb application for photo upload. These applications were deployed by Capistrano, and our servers were configured with Puppet with some scripts to glue everything together.
As the system evolved, we slowly got rid of many of these applications and started adding other components in the application stack. Puppet was replaced by [Chef](htt
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]]