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
1.9.3p0 :002 > BITLY_CLIENT | |
=> #<Bitly::V3::Client:0xb653398 @default_query_opts={:login=>"yourusername", :apiKey=>"yourkey"}> | |
1.9.3p0 :001 > BITLY_CLIENT.shorten("http://google.com") | |
=> #<Bitly::V3::Url:0xb5658c8 @client=#<Bitly::V3::Client:0xb653398 @default_query_opts={:login=>"yourusername", :apiKey=>"yourkey"}>, @short_url="http://bit.ly/xFMlrA", @long_url="http://google.com/", @user_hash="xFMlrA", @global_hash="LmvF", @new_hash=false, @user_clicks=nil, @global_clicks=nil, @title=nil, @created_by=nil, @aggregate_link=nil, @clicks_by_minute=nil> |
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
sudo add-apt-repository ppa:ubuntu-on-rails/ppa | |
sudo apt-get update | |
sudo apt-get install gedit-gmate | |
sudo apt-get install gedit-plugins |
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
gem install autotest | |
gem install autotest-rails-pure | |
gem install autotest-notification | |
apt-get install libnotify-bin |
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 'aws-sdk' | |
s3 = Aws::S3::Resource.new(region: ENV['AWS_REGION']) | |
rspec_bucket = obj = s3.bucket(ENV['RSPEC_BUCKET']).object("#{ENV['CI_BUILD_NUMBER']}/#{ENV['TEST_GROUP']}") | |
cukes_bucket = obj = s3.bucket(ENV['CUKES_BUCKET']).object("#{ENV['CI_BUILD_NUMBER']}/#{ENV['TEST_GROUP']}") | |
log_files = [ENV['RSPEC_LOG_PATH'], ENV['CUCUMBER_LOG_PATH']] | |
log_files.each do |log_file| | |
bucket = log_file.include?("rspec") ? rspec_bucket : cukes_bucket |
RVM
Open terminal then run: sudo apt-get install curl
Install RVM with curl -L get.rvm.io | bash -s stable --auto
Reload bash with . ~/.bash_profile
Run:
rvm requirements
should be successful and give you a bunch of text
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 'aws-sdk' | |
s3 = Aws::S3::Resource.new(region: ENV['AWS_REGION']) | |
rspec_bucket = s3.bucket(ENV['RSPEC_BUCKET']) | |
cukes_bucket = s3.bucket(ENV['CUKES_BUCKET']) | |
rspec_objects = rspec_bucket.objects(prefix: ENV['CI_BUILD_NUMBER']) | |
cukes_objects = cukes_bucket.objects(prefix: ENV['CI_BUILD_NUMBER']) | |
test_group_threshold = ENV['TEST_GROUPS'].to_i |
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
{ | |
"components": [ | |
{ | |
"component_type": "text", | |
"name": "First Name", | |
"data": {} | |
}, | |
{ | |
"component_type": "text", | |
"name": "Last Name", |
OlderNewer