Skip to content

Instantly share code, notes, and snippets.

Andrew Hayes AndrewRussellHayes

Block or report user

Report or block AndrewRussellHayes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@AndrewRussellHayes
AndrewRussellHayes / rmAdded.linux.sh
Last active Aug 29, 2015
remove .added extension from all files in directory
View rmAdded.linux.sh
rename 's/\.added$//' *.added
View getOracleSolarisInfo.sh
printf "System Info for CBM Servers\n\n" >> ~/SystemInformation.txt
printf "\nProduction\n\n" >> ~/SystemInformation.txt
printf "\nOS Release:\n" >> ~/SystemInformation.txt
cat /etc/release >> SystemInformation.txt
printf "\nHostname:\n" >> ~/SystemInformation.txt
hostname >> SystemInformation.txt
printf "\nIP Address:\n" >> ~/SystemInformation.txt
/usr/sbin/ifconfig -a | awk 'BEGIN { count=0; } { if ( $1 ~ /inet/ ) { count++; if( count==2 ) { print $2; } } }' >> SystemInformation.txt
printf "\n\nRAM Info\n" >> ~/SystemInformation.txt
View BootstrapDefault.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
@AndrewRussellHayes
AndrewRussellHayes / function.sql
Created Jul 9, 2014
pl/sql function template
View function.sql
/*
AUTHOR:Joe Developer
ACCEPTS:These Args
DOES:Performs Function
RETURNS:Return Value
DEPENDENCIES:Uses/Needs
NOTES: Special Considerations
*/
CREATE OR REPLACE FUNCTION FunctionTemplate(
parameter1 number,
@AndrewRussellHayes
AndrewRussellHayes / procedure.sql
Created Jul 9, 2014
pl/sql procedure template
View procedure.sql
/*
AUTHOR:Joe Developer
ACCEPTS:These Args
DOES:Performs Function
RETURNS:Return Value
DEPENDENCIES:Uses/Needs
NOTES: Special Considerations
*/
CREATE [OR REPLACE] PROCEDURE procedure_name
[ (parameter [,parameter]) ]
View PackageBody.sql
CREATE OR REPLACE PACKAGE BODY BFH2_TEMPLATE
AS
/*
AUTHOR: Joe Developer
PACKAGE NAME: TEMPLATE BODY
CREATION DATE: MM/DD/YYYY
PURPOSE:
DEPENDENCIES:
CHANGELOG:
@AndrewRussellHayes
AndrewRussellHayes / Package.sql
Created Aug 21, 2014
combined spec and body package template
View Package.sql
CREATE OR REPLACE PACKAGE BFH2_TEMPLATE
AS
/*
AUTHOR: Joe Developer
PACKAGE NAME: TEMPLATE SPEC
CREATION DATE: MM/DD/YYYY
PURPOSE:
DEPENDENCIES:
CHANGELOG:
@AndrewRussellHayes
AndrewRussellHayes / extRename.sh
Created Sep 12, 2014
rename group of files by file extension
View extRename.sh
for file in *.cdf.cntrl; do mv "$file" "`basename $file .cdf.cntrl`.cntrl"; done
View bool to string.sql
v_str := CASE WHEN p_Success_Check THEN 'TRUE' ELSE 'FALSE' END;
View docker startup
$ boot2docker init
$ boot2docker start
$ export DOCKER_HOST=tcp://$(boot2docker ip 2>/dev/null):2375
You can’t perform that action at this time.