Skip to content

Instantly share code, notes, and snippets.

View icco's full-sized avatar
🏠
Working from home

Nat Welch icco

🏠
Working from home
View GitHub Profile
source :rubygems
# We are not loading Active Record, nor Active Resources etc.
# We can do this in any app by simply replacing the rails gem
# by the parts we want to use.
gem "actionpack", "~> 4.0"
gem "railties", "~> 4.0"
gem "tzinfo"
# Let's use thin
@jbarnette
jbarnette / gd.sh
Last active January 4, 2016 12:09
cd to any repo, cloning if necessary
function gd {
local parent=$(dirname "$1")
local name=$(basename "$1")
local owner=$(basename "$parent")
local nwo="$owner/$name"
local dir="$HOME/src/$nwo"
[ -d "$dir" ] || git clone "https://github.com/$nwo" "$dir"
cd "$dir"
@icco
icco / cdn.txt
Last active December 26, 2015 16:39
CDN tests using siege.
http://pubnub.a.ssl.fastly.net/pubnub-3.4.6.min.js
http://storage.googleapis.com/calvin166-test/pubnub-3.4.6.min.js
http://s3.amazonaws.com/test.icco.me/pubnub-3.4.6.min.js
http://d1cq9hp03zvonx.cloudfront.net/pubnub-3.4.6.min.js
@bryanveloso
bryanveloso / intros.md
Created October 21, 2013 19:15
A developing list of my favorite anime intro songs.

This is a work-in-progress list of my favorite anime intros. While I am not as dedicated to anime as I am to the JRPG, I have watched a good amount. That said, my memory sucks, so this list will definitely be missing a lot.

  • Tank, Seatbelts -- Cowboy Bebop (opening)
  • A Cruel Angel's Thesis, Yoko Takahashi -- Neon Genesis Evangelion (opening)
  • Period, Chemistry -- Fullmetal Alchemist: Brotherhood (fourth opening)
  • Guren no Yumiya, Linked Horizon -- Attack on Titan (first opening)
  • Ready Steady Go, L'Arc-en-Ciel -- Fullmetal Alchemist (second opening)
  • We Gotta Power, Hironobu Kageyama -- Dragonball Z (second opening)
  • Cha-La Head-Cha-La, Hironobu Kageyama -- Dragonball Z (first opening)
@ahendrix
ahendrix / gist:7030300
Created October 17, 2013 18:56
bash stacktrace
function errexit() {
local err=$?
set +o xtrace
local code="${1:-1}"
echo "Error in ${BASH_SOURCE[1]}:${BASH_LINENO[0]}. '${BASH_COMMAND}' exited with status $err"
# Print out the stack trace described by $function_stack
if [ ${#FUNCNAME[@]} -gt 2 ]
then
echo "Call tree:"
for ((i=1;i<${#FUNCNAME[@]}-1;i++))
@iansheridan
iansheridan / save_fingers.sh
Created September 12, 2013 22:30
pre-populate known_hosts file for known ssh access points such as github.com
# HOST == access URI (eg. github.com)
ssh-keyscan -t rsa,dsa HOST 2>&1 | sort -u - ~/.ssh/known_hosts > ~/.ssh/tmp_hosts
cat ~/.ssh/tmp_hosts >> ~/.ssh/known_hosts
@tommarshall
tommarshall / simple_form.rb
Created August 22, 2013 14:58 — forked from clyfe/simple_form.rb
Bootstrap3 compatible simple_form initializer (with consistent Bootstrap 3 classes)
# http://stackoverflow.com/questions/14972253/simpleform-default-input-class
# https://github.com/plataformatec/simple_form/issues/316
inputs = %w[
CollectionSelectInput
DateTimeInput
FileInput
GroupedCollectionSelectInput
NumericInput
PasswordInput
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@bryanveloso
bryanveloso / ff_favorites.rst
Last active February 27, 2024 17:01
I live for the J/RPG.

This is an opinionated list of my favorite "mainline" entries in the Final Fantasy series.

  1. Final Fantasy IV
  2. Final Fantasy XIV
  3. Final Fantasy XVI
  4. Final Fantasy VII: Remake
  5. Final Fantasy XV
  6. Final Fantasy Tactics (Preference given to the "War of the Lions" remake.)
  7. Final Fantasy XII
  8. Final Fantasy VI
@leemeichin
leemeichin / README.md
Created October 9, 2012 16:11
Apply Standard Competition Rankings to your leaderboard

Standard Competition Rankings

This class makes it easier to generate a leaderboard that complies with the Standard Competition Ranking system. That is, it takes joint/tied positions into account, and adjusts the positions accordingly.

Take the following list of users and points for example:

User    | Points
1         35
2         35