- http://www.quora.com/What-kind-of-technology-does-Filecatalyst-and-Aspera-uses-to-fast-file-transfers
- http://serverfault.com/questions/300086/file-transfer-alternatives
- http://serverfault.com/questions/111813/what-is-the-best-way-to-transfer-a-single-large-file-over-a-high-speed-high-lat
- http://forums.smallnetbuilder.com/showthread.php?t=10950
This file contains hidden or 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
class Zodiac | |
SIGNS = [ | |
[:aries, [21,3,20,4]], | |
[:taurus, [21,4,20,5]], | |
[:gemini, [21,5,20,6]], | |
[:cancer, [21,6,22,7]], | |
[:leo, [23,7,22,8]], | |
[:virgo, [23,8,22,9]], | |
[:libra, [23,9,22,10]], | |
[:scorpio, [23,10,21,11]], |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
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 hidden or 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') |
- 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!