Skip to content

Instantly share code, notes, and snippets.

View bhavanki's full-sized avatar
💭
Flossing

Bill Havanki bhavanki

💭
Flossing
View GitHub Profile
@bhavanki
bhavanki / tamdate.sh
Created June 9, 2012 02:17
Bash script to report the date in the Tamrielic (Elder Scrolls) calendar
#!/bin/bash
# tamdate.sh - echoes the date in the Tamrielic calendar
# Calendar information from http://www.uesp.net/wiki/Lore:Calendar
usage() {
echo Usage: tamdate.sh [options]
echo Options:
echo -m = include Tamrielic month
echo -d = include Tamrielic weekday
@bhavanki
bhavanki / hbResultKeys.sh
Created May 3, 2012 18:07
Helper scripts for Hadoop and HBase
#!/bin/bash
# Extracts row IDs (keys) from HBase shell results
# Remove the header and footer lines
# Mark the first line of each row with # replacing the initial space
# Eliminate all but the first 26 characters in each line (COLUMN+CELL column)
# Eliminate blank lines
# Eliminate the first space in each line, but not marks
# Merge all results that span more than one line
@bhavanki
bhavanki / colorize-maven.sh
Created May 1, 2012 20:39 — forked from mike-ensor/colorize-maven.sh
Colorize Maven output
#!/bin/sh
# Written by Mike Ensor ([email protected])
# Copyright 2012
# Use as needed, modify, have fun!
# This is intended to be used for Maven3 + Mac OSX
#
# To use:
# in your ".bashrc" or ".bash_profile" add the following line:
# source ~/<path to script>/colorize-maven.sh