Skip to content

Instantly share code, notes, and snippets.

nathan amick namick

Block or report user

Report or block namick

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
@namick
namick / cowsay-inator.md
Created Mar 9, 2013
markdown shell script that installs cowsay
View cowsay-inator.md

Install cowsay and run it

This is a test shell script written in markdown

First, record what we want to say.

words_of_wisdom="Excellent, now we can run shell scripts written in markdown"

Lets install the cowsay app. Maybe we want to use the three backticks for multiple lines of code.

@namick
namick / install-ruby
Last active Oct 20, 2015
Installs a good Ruby
View install-ruby
# The version of Ruby to be installed
ruby_ver="2.2.3"
# The base path to the Ruby
ruby_home="/usr/local"
# Enable truly non interactive apt-get installs
export DEBIAN_FRONTEND=noninteractive
apt-get update
@namick
namick / mintty-load-tango-palette.sh
Created Feb 17, 2012
Load the tango palette into cygwin mintty
View mintty-load-tango-palette.sh
# Load the tango palette into cygwin mintty
echo -ne '\e]4;0;#2E3436\a' # 0
echo -ne '\e]4;1;#CC0000\a' # 1
echo -ne '\e]4;2;#4E9A06\a' # 2
echo -ne '\e]4;3;#C4A000\a' # 3
echo -ne '\e]4;4;#3465A4\a' # 4
echo -ne '\e]4;5;#75507B\a' # 5
echo -ne '\e]4;6;#06989A\a' # 6
echo -ne '\e]4;7;#D3D7CF\a' # 7
echo -ne '\e]4;8;#555753\a' # 8
@namick
namick / spec_helper.rb
Created Jan 30, 2012
spec helper for plugin with dummy app
View spec_helper.rb
# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'rspec/rails'
Rails.backtrace_cleaner.remove_silencers!
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
You can’t perform that action at this time.