Skip to content
# Fish git prompt
set __fish_git_prompt_showdirtystate 'yes'
set __fish_git_prompt_showstashstate 'yes'
set __fish_git_prompt_showupstream 'yes'
set __fish_git_prompt_color_branch yellow
# Status Chars
set __fish_git_prompt_char_dirtystate ''
set __fish_git_prompt_char_stagedstate ''
set __fish_git_prompt_char_stashstate ''
View .vimrc
set shell=bash
View schema.xml
<?xml version="1.0" encoding="UTF-8" ?>
This is the Solr schema file. This file should be named "schema.xml" and
should be in the conf directory under the solr home
(i.e. ./solr/conf/schema.xml by default)
or located where the classloader for the Solr webapp can find it.
For more information, on how to customize this file, please see
View gist:1990889
for INSTANCE in `cat ~/instance_addr_list`
echo '------------'
echo '------------'
for i in 1 2
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=false $INSTANCE "nohup sh ~/bin/image-node/ &> /dev/null &"
View install_homebrew.rb
# This script installs to /usr/local only. To install elsewhere you can just
# untar anywhere you like.
module Tty extend self
def blue; bold 34; end
def white; bold 39; end
def red; underline 31; end
def reset; escape 0; end
def bold n; escape "1;#{n}" end
View die.rb
class Die
attr_reader :d, :face, :bonus, :modifier
def initialize(d)
@face = roll
if @d == @face
@bonus =
# for solr reverse_proxy
# test me with $ rackup
# or just do most of this in you web sever config
require 'server'
require 'rack/reverse_proxy'
require 'my_custom_logger'
# catch and log requests
use MyCustomLogger # some code you wrote that logs info about results on the /search* endpoint
View caller
public void onClick(View v) {
Intent i;
switch (v.getId()) {
i = new Intent(this, MapZoom.class);
i.putExtra(MAP_URL, "file:///android_res/drawable/east.png");
View deploy.rb
require 'active_support'
DEPLOY_CONFIG = YAML::load("config/deploy.yml"))
default_run_options[:pty] = true
# General Deployment settings
set :application, DEPLOY_CONFIG['application']
set :repository, DEPLOY_CONFIG['repository'] || 'master'
set :scm, :git
View 960.less
Variable Grid System.
Learn more ~
Based on 960 Grid System -
Licensed under GPL and MIT.
/* Containers
Something went wrong with that request. Please try again.