Arun Thampi arunthampi

View wufoo.css
1 2 3 4 5 6 7 8 9
/* Backgrounds */
html {
background-color: white;
}
 
.wufoo {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px;
}
View gist:5271762
1 2 3 4 5 6 7 8 9
Aruns-MacBook-Air:bluepill arun$ bundle exec kitchen list
/Users/arun/.rvm/gems/ruby-1.9.3-p392/bundler/gems/test-kitchen-847540a8d8aa/lib/kitchen/shell_out.rb:73:in `rescue in run_command': Expected process to exit with [0], but received '1' (Kitchen::ShellOut::ShellCommandFailed)
---- Begin output of vagrant --version ----
STDOUT:
STDERR: Vagrant failed to initialize at a very early stage:
 
There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.
View foobar_config.yml
1 2 3 4 5 6 7 8 9 10
---
vars_files:
# This will create a file called github_private_key.yml (since the context is set to global)
# and will look like this:
#---
#github_private_key: blabla
#
# bombay will include these vars_files while invoking ansible-playbook
github_private_key:
context: global
View install_node_via_nvm.yml
1 2 3 4 5 6 7 8 9
---
- name: Clone NVM
action: git repo=git://github.com/creationix/nvm.git dest=/home/${user}/.nvm
 
- name: Download Node.JS 64-bit
action: get_url url=http://nodejs.org/dist/${version}/node-${version}-linux-x64.tar.gz dest=/home/${user}/.nvm/node-${version}-linux-x64.tar.gz
 
- name: Unpack Node
action: command tar -xzf node-${version}-linux-x64.tar.gz creates=/home/${user}/.nvm/${version} chdir=/home/${user}/.nvm
View ansible_not_going_to_happen.py
1 2 3 4 5 6 7 8 9 10
fatal: [192.168.254.254] => Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py",
line 427, in _executor
exec_rc = self._executor_internal(host)
File
"/usr/local/lib/python2.7/dist-packages/ansible/runner/__init__.py",
line 478, in _executor_internal
return self._executor_internal_inner(host, inject, port)
File
View install_deps.yml
1 2 3 4 5 6
---
- name: Update APT
action: apt update-cache=yes
tags:
- install
ignore_errors: True
View macdeb.sh
1 2 3 4 5 6 7
# This creates a deb package called macdeb-ruby-1.9.3-p125_x86_64.deb
#
# You can then install it (including dependencies) using gdebi
# `sudo gdebi macdeb-ruby-1.9.3-p125_x86_64.deb`
#
# To install gdebi, run `sudo aptitude install gdebi-core`
macdeb create --formula ruby --namespace macdeb --pkgname ruby --pkgver 1.9.3-p125
View global_leaderboard.rb
1 2 3
def self.leaderboard
Hero.select("id, login, name, location, votes_received, avatar_url, html_url, rank() over(order by votes_received DESC)").limit(20)
end
View set_asset_fingerprint.rb
1 2 3 4 5 6 7 8 9 10
def set_asset_fingerprint!
# -- First see if the files have changed
puts "-----> Calculating Asset Fingerprint"
fingerprint_method = "find public -type f -exec md5 {} + | awk '{print $0}' | sort | md5"
current_fingerprint = %x{#{fingerprint_method}}
fingerprint_file = Rails.root.join('assets.fingerprint')
 
if !File.exists?(fingerprint_file) || current_fingerprint != File.read(fingerprint_file)
execute("#{fingerprint_method} > #{fingerprint_file}")
# -- Add it to production
View application.rb
1 2 3 4 5 6 7 8 9 10
require File.expand_path('../boot', __FILE__)
 
require 'rails/all'
 
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
 
module GetDenso
class Application < Rails::Application
Something went wrong with that request. Please try again.