Skip to content

Instantly share code, notes, and snippets.

View ijayasin's full-sized avatar

Indika Jayasinghe ijayasin

  • San Francisco, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ijayasin on github.
  • I am ijayasin (https://keybase.io/ijayasin) on keybase.
  • I have a public key whose fingerprint is D0E0 318C 14A9 2662 749D 2287 9DCD 6F45 969D 5A7C

To claim this, I am signing this object:

# Save this file as ~/.gitconfig
[user]
name = My Name
email = my_name@example.com
[alias]
st = status
ci = commit
br = branch
#!/usr/bin/env ruby
require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", Pathname.new(__FILE__).realpath)
require 'rubygems'
require 'bundler/setup'
require 'newrelic_plugin'
require 'mysql2'
@ijayasin
ijayasin / _generate_rails_help_txt_files
Last active January 20, 2016 00:02
This script is Rails generator help documentation script generator. It generates a Bash script which can be used to generate the help documents for all the Rails generators. Edit the generate Bash script and remove any generators you are not interested in. Customize the DATA section at the botton of the script with the list of Rails generated li…
Generates TXT files containing the help output from the multitude of rails commands.
This is useful when you like having the documenation on disk as text files, allowing
you to search/grep through them. If you add them to source code control, you can see
how the commands change as you update your Rails and/or plugins.
@ijayasin
ijayasin / irb_mixins.rb
Last active April 5, 2016 04:36
Some functions I frequently use in the Rails console.
# Last Updated: 2016-04-04 Mon
=begin
load 'idj/irb_mixins.rb'
myhelp
# Run 'myhelp' to display a list of available functions.
@ijayasin
ijayasin / release_it.rb
Last active October 26, 2019 19:52
Generates a list commands needed to create and deploy a release.
#!/usr/bin/env ruby
# Last Updated: 2015-09-16 Wed
# Generates a list commands needed to create and deploy a release.
#
# Usage:
# script/release_it.rb [options] branch1 branch2 branch_n
# script/release_it.rb branch1 branch2 branch_n -v 1 -t 'v20140821.1'
# script/release_it.rb branch1 branch2 branch_n -v 1 -b 'release/20140821.1'
@ijayasin
ijayasin / _dump_amazon_aws_cloudfront_records
Last active January 20, 2016 00:08
JavaScript snippets which can be pasted in the browser JavaScript Console in order to dump the Amazon AWS CloudFront records in either row-form or table-form.
JavaScript snippets which can be pasted in the browser JavaScript Console in order
to dump the Amazon AWS CloudFront records in either row-form or table-form.