This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Written by Mike Ensor ([email protected]) | |
# Copywrite 2012 | |
# Use as needed, modify, have fun! | |
# Modified by Bill Havanki | |
# This was intended to be used for Maven3 + Mac OSX, but it's been modified for Cygwin and Linux. | |
# Maybe it still works on OSX? | |
# Changes from original: | |
# - Cygwin support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin | |
from os import listdir | |
from os.path import commonprefix | |
from os.path import isdir | |
#from os import getenv | |
from os import getcwd | |
from os import sep | |
class PromptOpenFilePathCommand(sublime_plugin.WindowCommand): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import calendar | |
from datetime import datetime | |
from optparse import OptionParser | |
import sys | |
# Define command line options: -D, -f, -F. | |
op = OptionParser() | |
op.add_option('-D', '--date', dest='date_to_use', | |
help='UTC date to use instead of now, as %Y%m%d%H%M') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head><title>Character Escapes</title> | |
<style type="text/css"> | |
body { | |
font-family: sans-serif; | |
margin-top: 1in; | |
} | |
p { | |
font-size: large; | |
text-align: center; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
POMDIR=$(pwd) | |
while [[ "$POMDIR" != "/" && ! -f "$POMDIR/pom.xml" ]]; do | |
POMDIR=$(dirname "$POMDIR") | |
done | |
if [[ "$POMDIR" != "/" ]]; then | |
cd "$POMDIR" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Switching to Java $1 | |
OLD_JAVA_HOME=$JAVA_HOME | |
if [ "$1" == "1.6" -o "$1" == "6" -o "$1" == "6.0" ]; then | |
export JAVA_HOME=/usr/lib/jvm/java-1.6.0 | |
elif [ "$1" == "1.7" -o "$1" == "7" -o "$1" == "7.0" ]; then | |
export JAVA_HOME=/usr/lib/jvm/java-1.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import BaseHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
pid = os.fork() | |
if pid != 0: | |
print "Server PID is", pid | |
sys.exit() |
OlderNewer