I hereby claim:
- I am gogojimmy on github.
- I am gogojimmy (https://keybase.io/gogojimmy) on keybase.
- I have a public key ASAMM3jBSqi6zARbdKQRGgUz71W22cGm4Noba0KNQ5b2mQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Checking whether user has enough permission to run this script | |
| sudo -n true | |
| if [ $? -ne 0 ] | |
| then | |
| echo "This script requires user to have passwordless sudo access" | |
| exit | |
| fi |
| #!/usr/bin/env bash | |
| # Pre-requisites | |
| sudo apt-get -y update | |
| sudo apt-get --no-install-recommends -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev vim | |
| # Download and compile Ruby 2.0.0-p0 | |
| cd /tmp | |
| wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz | |
| tar -xvzf ruby-2.0.0-p0.tar.gz |
I hereby claim:
To claim this, I am signing this object:
| class ApplicationController < ActionController::Base | |
| before_action :auth_via_sso_cookie | |
| private | |
| def auth_via_sso_cookie | |
| if !current_user_id && cookies[:sso_from] && cookies[:sso_token] && cookies[:sso_env] == Rails.env | |
| verifier = ActiveSupport::MessageVerifier.new( SSO_SECRET_TOKEN.fetch(cookies[:sso_from]) ) | |
| user_id = verifier.verify( cookies[:sso_token] ) |
| interactor :simple | |
| guard 'jruby-rspec', cli: ['--format', 'Fuubar', '--tty', '--colour', '--drb', '--ng'], all_on_start: false, all_after_pass: false do | |
| watch(%r{^spec/.+_spec\.rb$}) | |
| watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" } | |
| watch('spec/spec_helper.rb') { "spec" } | |
| # Rails example | |
| watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" } | |
| watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" } | |
| watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] } |
| +---------+------------+------------------+--------------------------------------------------------------+ | |
| | Group | Plugin | Option | Value | | |
| +---------+------------+------------------+--------------------------------------------------------------+ | |
| | Default | Spork | aggressive_kill | true | | |
| | | | cucumber_env | {"RAILS_ENV"=>"test"} | | |
| | | | cucumber_port | 8990 | | |
| | | | foreman | false | | |
| | | | minitest | false | | |
| | | | minitest_env | {} | | |
| | | | minitest_port |
| #!/bin/sh | |
| USERNAME=gogojimmy | |
| mkdir ~/tmp | |
| cd ~/tmp | |
| # Install GCC + Git | |
| curl https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg > GCC-10.7-v2.pkg | |
| sudo installer -pkg GCC-10.7-v2.pkg -target / |