- TestingBot has moved to its own cloud! - 2013.12
- Why we double down on AWS and the cloud, 2013.09
- MemSQL - Why Some Startups Say the Cloud Is a Waste of Money, 2013.08
- Why I Dislike EC2, 2013.06
- Scalyr - Even Stranger than Expected: a Systematic Look at EC2 I/O, 2012.10
- EC2 Is Basically One Big Rip-off, 2012.01
- Mixpanel - Why We Moved Off The Cloud - 2011.10
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- Promiscuous: A robust service-oriented architecture framework, 2013.11
- Services and Rails: The Shit They Don't Tell You - 2013.04 (video)
- Refactoring Legacy Apps with APIs and Messages - 2013.06 (video)
- SOA without the tears - 2013.09
- http://www.slideshare.net/ChrisWyckoff/refactor-your-monolithic-rails-app-to-a-soa
- Central Messaging plays an important role!
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/python | |
import json | |
import os | |
import shutil | |
import subprocess | |
import re | |
dockerdir = '/var/lib/docker' | |
volumesdir = os.path.join(dockerdir, 'volumes') |
Lunchy: OSX launchctl wrapper
https://github.com/sosedoff/lunchy-go
# install it
wget http://dl.bintray.com/sosedoff/generic/0.1.0_darwin_amd64.zip
unzip 0.1.0_darwin_amd64.zip
mv lunchy /usr/local/bin/
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 'nokogiri' | |
@objects = [1,2,3] | |
builder = Nokogiri::XML::Builder.new do |xml| | |
xml.root do | |
xml.objects do | |
@objects.each do |o| | |
xml.object do | |
xml.send('ng-wizard', {:model => "user", :field => "email"}, " ") | |
end |
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
cd /tmp | |
wget https://go.googlecode.com/files/go1.2rc3.darwin-amd64-osx10.8.tar.gz | |
tar xvfz go1.2rc3.darwin-amd64-osx10.8.tar.gz | |
mv /usr/local/go /usr/local/go.old | |
mv /tmp/go /usr/local/go | |
cp /usr/local/go/bin/go /usr/local/bin/go | |
cp /usr/local/go/bin/godoc /usr/local/bin/godoc | |
cp /usr/local/go/bin/gofmt /usr/local/bin/gofmt |
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 bash | |
# Remove OpsWorks security groups from the given region | |
# Available regions: | |
# ==================== | |
# ap-northeast-1 => Asia Pacific (Tokyo) Region | |
# ap-southeast-1 => Asia Pacific (Singapore) Region | |
# ap-southeast-2 => Asia Pacific (Sydney) Region | |
# eu-west-1 => EU (Ireland) Region |
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
[~] rvm use 2.0.0 23:22:47 | |
Using /Users/roman/.rvm/gems/ruby-2.0.0-p247 | |
[~] ruby -v -rtime -e 'p Time.iso8601("2013-12-11T12:09:08.123+02:00").to_f' 23:23:22 | |
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0] | |
1386756548.0 | |
[~] rvm use ruby-1.9.3-p392-turbo 23:23:24 | |
Using /Users/roman/.rvm/gems/ruby-1.9.3-p392-turbo | |
[~] ruby -v -rtime -e 'p Time.iso8601("2013-12-11T12:09:08.123+02:00").to_f' 23:23:29 | |
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2.0] | |
1386756548.1230001 |
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
module Kernel | |
# make an alias of the original require | |
alias_method :original_require, :require | |
$require_times = {} | |
# rewrite require | |
def require name | |
start_time = Time.now | |
original_require name | |
time_took = Time.now - start_time |