Skip to content

Instantly share code, notes, and snippets.

Arun Thampi arunthampi

Block or report user

Report or block arunthampi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arunthampi /
Last active Feb 2, 2018 — forked from jmhobbs/
Create scrolling text gifs for Slack

Makes little scrolly text jiffs in Flywheel colors.


  • imagemagick brew install imagemagick
  • gifsicle brew install gifsicle
  • u r on a mac


arunthampi / game.rb
Created Apr 24, 2017
Mine Sweeper Game
View game.rb
class Cell
attr_accessor :has_mine, :revealed
def initialize(has_mine, grid, row, col)
self.has_mine = has_mine
self.revealed = false
@row = row
@col = col
@grid = grid
View team.rb
class Team < ActiveRecord::Base
def import_users!
return if bot.blank?
slack_client =
Team.with_advisory_lock("team-import-#{self.uid}") do
object_nesting_level = 0
current_user = {}
current_profile = {}
View slack_client.rb
require 'uri'
class Slack
def initialize(token)
@token = token
def call(slack_api, method, params = {}, &block)
View excon.rb
require 'rubygems'
require 'excon'
def download_file(url, source_path = nil)
error = nil
if source_path.nil?
source_path = File.join("/tmp", "output")
arunthampi / wufoo.css
Created Jul 16, 2013
Nitrous:Enterprise wufoo css
View wufoo.css
/* Backgrounds */
html {
background-color: white;
.wufoo {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 15px;
arunthampi / gist:5271762
Created Mar 29, 2013
bundle exec kitchen test
View gist:5271762
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 ----
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
# 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
context: global
View install_node_via_nvm.yml
- name: Clone NVM
action: git repo=git:// dest=/home/${user}/.nvm
- name: Download Node.JS 64-bit
action: get_url url=${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
fatal: [] => Traceback (most recent call last):
line 427, in _executor
exec_rc = self._executor_internal(host)
line 478, in _executor_internal
return self._executor_internal_inner(host, inject, port)
You can’t perform that action at this time.