Skip to content

Instantly share code, notes, and snippets.

@siddhant-mohan
siddhant-mohan / aws-ec2.rb
Created December 1, 2016 12:15
Launching ec2 instance through ruby sdk
#!/usr/bin/ruby
# README
# gem install aws-sdk
# add this to bashrc
# export HT_DEV_AWS_ACCESS_KEY_ID=????
# export HT_DEV_AWS_SECRET_ACCESS_KEY=????
# put your pem file in ~/.ssh and chmod 0400
# for more info see; https://rubygems.org/gems/aws-sdk
@siddhant-mohan
siddhant-mohan / 0_reuse_code.js
Created July 4, 2016 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@siddhant-mohan
siddhant-mohan / script.rb
Created September 7, 2015 18:55
test for checking Active Record Like query with backslash.
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
# Activate the gem you are reporting the issue against.