Beating your sleepsort by magnitudes! Takes only SUM(argv) ticks and does not overflow the stack either. Fork the gist if you can reduce the size of ticksort.coffee.
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 'hirb' | |
Hirb.enable | |
old_print = Pry.config.print | |
Pry.config.print = proc do |output, value| | |
Hirb::View.view_or_page_output(value) || old_print.call(output, value) | |
end |
Elastic Beanstalk with Docker is great at having a standard way of running and scaling out web and worker applications, if you are OK with AWS abstractions and further lock-in. For instance, auto-scaling web apps using autoscaling group policies is extremely powerful, but I believe there is a lot of accidental complexity that comes with Elastic Beanstalk so we chose something that we believe is simpler and easier to understand or change.
- AWS is great at taking an existing technology, wrapping it into AWS-specific concepts and creating a proprietary JSON/XML API around it. This is why ECS Task Definitions exist. Elastic Beanstalk goes one step further and creates yet another layer of API on top of ECS and ELB aptly called Dockerrun.aws.json v2. The format is proprietary and we preferred ex
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
newrelic: | |
license_key: 'LICENSE_KEY' | |
verbose: 1 | |
aws: | |
access_key: 'ACCESS_KEY' | |
secret_key: 'SECRET_KEY' | |
agents: | |
ec2: | |
enabled: true | |
cloudwatch_delay: 300 |
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
rgabo@stanford ~> pig -useHCatalog | |
Please initialize HIVE_HOME | |
rgabo@stanford ~> set -x HIVE_HOME /usr/local/Cellar/hive/0.12.0/libexec/ | |
rgabo@stanford ~> pig -useHCatalog | |
Please initialize HCAT_HOME | |
rgabo@stanford ~> set -x HCAT_HOME /usr/local/Cellar/hive/0.12.0/libexec/hcatalog/ | |
rgabo@stanford ~> pig -useHCatalog | |
2014-01-11 11:18:45,137 [main] INFO org.apache.pig.Main - Apache Pig version 0.12.0 (r1529718) compiled Oct 07 2013, 12:20:14 | |
2014-01-11 11:18:45,138 [main] INFO org.apache.pig.Main - Logging error messages to: /Users/rgabo/pig_1389467925133.log | |
2014-01-11 11:18:45,167 [main] INFO org.apache.pig.impl.util.Utils - Default bootup file /Users/rgabo/.pigbootup not found |
I hereby claim:
- I am rgabo on github.
- I am rgabo (https://keybase.io/rgabo) on keybase.
- I have a public key ASAkC_56DeDJAwJcAQEKcLOH-K3lemF25znbaXP14bZYLAo
To claim this, I am signing this object: