This file contains hidden or 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 | |
# | |
# Set your bash prompt according to the branch/status of the current git repository. | |
# Relies on git output being in English. | |
# Set an alias with | |
# $ echo "alias git='LANGUAGE=en_US.UTF-8 git'" >> ~/.bash_profile | |
# | |
# Forked from https://gist.github.com/philcryer/5066010 | |
# | |
RED="\[\033[0;31m\]" |
This file contains hidden or 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
sudo add-apt-repository ppa:george-edison55/cmake-3.x | |
sudo apt-get update | |
sudo apt-get purge cmake cmake-data | |
sudo apt-get -y install build-essential cmake | |
curl -sSLO http://www.mirrorservice.org/sites/ftp.apache.org/orc/orc-1.4.1/orc-1.4.1.tar.gz | |
tar -zxf orc-1.4.1.tar.gz | |
cd orc-1.4.1 | |
mkdir build | |
cd build |
This file contains hidden or 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
# adding and committing | |
git add -A # stages All | |
git add . # stages new and modified, without deleted | |
git add -u # stages modified and deleted, without new | |
git commit --amend # Add staged changes to previous commit. Do not use if commit has been pushed. | |
git commit --amend --no-edit # Do so without having to edit the commit message. | |
# remotes - pushing, pulling, and tracking | |
git fetch # gets remote objects and refs. Needed if new branches were added on the remote. | |
git remote -v # Lists all remotes (verbose) |
This file contains hidden or 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 | |
# | |
# chkconfig: 35 99 01 | |
# description: java application | |
# | |
if [ -z "$JRE_HOME" ]; then | |
JRE_HOME="$JAVA_HOME" | |
fi | |
if [ -z "$JRE_HOME" ]; then |