Skip to content

Instantly share code, notes, and snippets.

View rgabo's full-sized avatar

Gabor Ratky rgabo

  • The Hague, Netherlands
  • X @rgabo
View GitHub Profile

Keybase proof

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:

newrelic:
license_key: 'LICENSE_KEY'
verbose: 1
aws:
access_key: 'ACCESS_KEY'
secret_key: 'SECRET_KEY'
agents:
ec2:
enabled: true
cloudwatch_delay: 300
@rgabo
rgabo / empire_vs_elastic_beanstalk.md
Last active December 4, 2015 17:26
Empire vs Elastic Beanstalk

Reasons why we did not go with Elastic Beanstalk

tldr;

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.

not so tldr;

  1. 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
@rgabo
rgabo / .pryrc
Created April 8, 2014 09:55
Pry <3 Hirb
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
@rgabo
rgabo / pg_use_hcatalog.sh
Created January 11, 2014 19:20
Pig requires `HIVE_HOME` and `HCAT_HOME` set to load the correct Jars when launched with `-useHCatalog` (transcript is a Fish shell, hence `set -x`)
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
@rgabo
rgabo / README.md
Created July 5, 2011 07:57
CoffeeScript / Node.js - ticksort

Node.js ticksort in CoffeeScript!

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.