Skip to content

Instantly share code, notes, and snippets.

View gustin's full-sized avatar
🦁
Happy

gustin gustin

🦁
Happy
View GitHub Profile
@gustin
gustin / 0_reuse_code.js
Created January 20, 2014 03:36
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gustin
gustin / flume-conf.properies
Last active December 28, 2015 08:08
Flume Configuration
agent.channels = file-channel
agent.sources = rabbitmq-source
agent.sinks = hdfs-sink hbase-sink
agent.channels.file-channel.type = file
agent.channels.file-channel.checkpointDir = /etc/flume/data/checkpoint
agent.channels.file-channel.dataDirs = /etc/flume/data
agent.sources.rabbitmq-source.channels = file-channel
agent.sources.rabbitmq-source.type = org.apache.flume.source.rabbitmq.RabbitMQSource
@gustin
gustin / gist:6896350
Last active December 25, 2015 01:39
seekndestroy
perl -e "s/design/dezine/g;" -pi.save (find info -type f)
@gustin
gustin / Gemfile
Created September 12, 2013 01:59 — forked from peterhellberg/Gemfile
source :rubygems
gem "sinatra", "~> 1.3.2"
group :test do
gem "minitest", "~> 2.10"
gem "rack-test", "~> 0.6.1"
gem "capybara", "~> 1.1"
gem "capybara-webkit", "~> 0.11"
gem "capybara_minitest_spec", "~> 0.2"
@gustin
gustin / gist:6334855
Created August 25, 2013 16:38
sentiment
{anger}
{"name": "aggressive"},
{"name": "angry"}
{"name": "angst-ridden"},
{joy}
{"name": "bouncy"},
{"name": "calming"},
{"name": "carefree"},
@gustin
gustin / gist:4227000
Created December 6, 2012 18:46
Remove all the gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
@gustin
gustin / run-changed-tests.sh
Created November 29, 2012 16:10 — forked from chrismdp/run-changed-tests.sh
Handy little command to run all the tests that I've changed since the last commit
git status --porcelain | grep 'test' | grep -v 'factories' | cut -c4- | sort | uniq | xargs zeus test
@gustin
gustin / minitest.rake
Created October 26, 2012 19:19
Minitest in spec directory
require 'rake/testtask'
Rake::TestTask.new do |test_task|
test_task.libs.push 'spec'
test_task.name = 'spec'
test_task.pattern = 'spec/**/*_spec.rb'
@gustin
gustin / sl_2012_notes.md
Created October 3, 2012 14:13 — forked from rbxbx/sl_2012_notes.md
Notes from strangeloop 2012 "The Higher Order Rubyist" talk

The Higher Order Rubyist

BUILT-INS

Obviously, when looking to program functionally in a given language, the first place one should look is within the language itself. Luckily, while not a Functional language (by any stretch of the word), Ruby has many facilities that enable it to act like one.

  • Enumerable
@gustin
gustin / .tmux.config
Created September 12, 2012 13:03
tmux config
setw -g mode-keys vi
set -g default-terminal "screen-256color"
set -g prefix C-a
bind C-a send-prefix
bind z send-keys C-z
bind C-z last-window
bind | spit-window -h