Skip to content

Instantly share code, notes, and snippets.

View arturopie's full-sized avatar
:shipit:
shipping

Arturo Pie arturopie

:shipit:
shipping
View GitHub Profile
@arturopie
arturopie / ec2_helper.rb
Created March 5, 2018 19:46 — forked from tom-butler/ec2_helper.rb
Get Running Instance ID
require 'aws-sdk'
# Return only a single running instance with the Name tag specified
class EC2Helper
def self.GetIdFromName(name)
instances = Array.new
# Filter the ec2 instances for name and state pending or running
ec2 = Aws::EC2::Resource.new(region: ENV['AWS_DEFAULT_REGION'])
ec2.instances({filters: [
@arturopie
arturopie / 0-readme.md
Created March 8, 2012 03:39
ruby-1.9.3-p125 cumulative performance patch.

Patched ruby 1.9.3-p0 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p0 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84).

Huge thanks to funny-falcon for the performance patches.