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
# BASH PATH Munge | |
pathmunge () { | |
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then | |
if [ "$2" = "after" ] ; then | |
PATH=$PATH:$1 | |
else | |
PATH=$1:$PATH | |
fi | |
fi | |
} |
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
-- To get the name of an oracle database | |
SELECT GLOBAL_NAME FROM GLOBAL_NAME; |
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
-- to set sql prompt to user@global_name for 10g and greater | |
set sqlprompt "_USER'@'_CONNECT_IDENTIFIER _PRIVILEGE> " |
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
<meta http-equiv="refresh" content="0;URL=http://host.name/to/redirect/to.html"> |
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
apply plugin: 'groovy' | |
description = "Library Name" | |
group = 'package.name' | |
version = "0.0.1" | |
repositories { | |
mavenCentral() | |
} |
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
#---- Categories ---- | |
log4j.rootLogger = INFO, STDOUT, LOGFILE | |
# log4j.logger.com.example.package = INFO, STDOUT, LOGFILE | |
#---- Appenders ---- | |
log4j.appender.STDOUT = org.apache.log4j.ConsoleAppender | |
log4j.appender.STDOUT.Target = System.out | |
log4j.appender.STDOUT.layout = org.apache.log4j.PatternLayout | |
log4j.appender.STDOUT.layout.ConversionPattern=[%-5p] - %m%n |