Skip to content

Instantly share code, notes, and snippets.

View jhsu's full-sized avatar
💀
compliant with future standards

Joe Hsu jhsu

💀
compliant with future standards
  • MineHub
  • New York, NY
  • X @jhsu
View GitHub Profile
#!/bin/sh
# check for config.log in javascript
count=`grep -iR "config\.log" public/javascripts/* | wc -l | awk '{print $1}'`
if [[ "$count" -ge 1 ]]; then
echo " remove any config.log() in your javascripts"
exit 1
fi
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@palmer) Sun Feb 1 20:21:04 UTC 2009
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder63) Mon Mar 23 15:33:27 PST 2009
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"

Mountain West Ruby Conference 2010 - notes

Archaeopteryx: Lambdas In Detail by Giles Bowkett

midi - like json

on / off which note

gem install midilib

gem install midiator

if has('gui')
set t_Co=256
end
colorscheme xoria256
set shiftwidth=2
set tabstop=2
set softtabstop=2
set noexpandtab
set nocompatible " We're running Vim, not Vi!
#!/bin/sh
# check for config.log in javascript
count=`grep -iR "config\.log" public/javascripts/* | wc -l | awk '{print $1}'`
if [[ "$count" -ge 1 ]]; then
echo " remove any config.log() in your javascripts"
exit 1
fi
#!/usr/bin/env bash
remote=$1; branch=$2
if [[ -n "$remote" && -n "$branch" ]]; then
git push $remote $branch
git branch --set-upstream $branch $remote/$branch
else
echo "Usage:"
echo " git pt <remote> <branch>"
fi
actionmailer (2.3.5, 2.3.4)
actionpack (2.3.5, 2.3.4)
activerecord (2.3.5, 2.3.4)
activeresource (2.3.5, 2.3.4)
activesupport (2.3.5, 2.3.4)
archive-tar-minitar (0.5.2)
authlogic (2.1.2)
bcrypt-ruby (2.1.2)
columnize (0.3.1)
compass (0.8.17)
#!/bin/sh
# check for config.log in javascript
count=`grep -iR 'config\.log' public/javascripts/* | wc -l | awk '{print $1}'`
if [[ "$count" -ge 3 ]]; then
echo " remove any config.log() in your javascripts"
exit 1
fi
@jhsu
jhsu / bench.rb
Created March 20, 2010 19:05 — forked from qrush/bench.rb
# Trying to optimize the gemcutter indexing process.
# Since we're dumping out the index ~150 times daily, this is going to help the server load/cpu out immensely.
require 'config/environment'
require 'benchmark'
require 'redis'
redis = Redis.new
def pack(value)
HISTSIZE=1000
SAVEHIST=1000
export EDITOR=vim
export PATH="${PATH}:${HOME}/bin"
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/zsh/oh-my-zsh
export ams_dir=$HOME/apps/ams
export JDOTS=$HOME/.jdots
if [[ -s $HOME/.ams/scripts/ams ]] ; then source $HOME/.ams/scripts/ams ; fi