Skip to content

Instantly share code, notes, and snippets.

View jonbartlett's full-sized avatar

Jon Bartlett jonbartlett

  • Victoria, Australia
View GitHub Profile
@jonbartlett
jonbartlett / .profile_colour
Last active May 24, 2016 08:06
AIX Ksh Prompt Colour by Hostname
#
# Prompt colour by host
#
# install:
#
# cat .profile_colour >> ~/.profile
#
NODE=`uname -n`
@jonbartlett
jonbartlett / Gemfile
Last active January 10, 2017 23:04
Auto DB2 Proc Compilation with Ruby Guard
source 'https://rubygems.org'
group :development do
gem 'guard'
gem 'guard-shell'
end
CREATE OR REPLACE PACKAGE %FILE% IS
/*
* %FFILE%
* Copyright (C) %YEAR% %USER% <%MAIL%>
*
* Distributed under terms of the %LICENSE% license.
*
* $Date$
* $Revision$
* $Author$
@jonbartlett
jonbartlett / xxcust_projectcode_install.sh
Created June 12, 2012 06:19
Upload Oracle Apps Custom Objects
#!/usr/bin/ksh
#*******************************************************************************
#*
#* $HeadURL$
#*
#* Purpose : Install all components for XXXXXXXXXXX.
#*
#* $Author$
#*
#* $Date$
@jonbartlett
jonbartlett / download_fnd.sh
Created June 12, 2012 05:13
Download Oracle Apps Custom Objects
#!/usr/bin/ksh
#*******************************************************************************
#*
#* $HeadURL: http://adlap802:8080/subversion/FinanceTransformation/Standards/Templates/Code/xxcust_fndload_download.sh $
#*
#* Purpose : Install all components for XXXXXXXXXXX.
#*
#* $Author:
#*
#* $Date: 2010-10-22 11:35:19 +1100 (Fri, 22 Oct 2010) $
@jonbartlett
jonbartlett / Batch decrypt files with GPG
Created October 14, 2010 02:17
Batch decrypt files with GPG
echo thisismypassphrase|gpg --batch --passphrase-fd 0 --decrypt-files *.gpg
@jonbartlett
jonbartlett / OAF
Created August 25, 2009 23:52
Call PL/SQL from Java /OAF
import oracle.jdbc.OracleCallableStatement;
import oracle.sql.NUMBER;
import java.sql.*;
import java.sql.Connection;
OracleCallableStatement stmt = null;
try {
OADBTransaction trx = oaapplicationmodule.getOADBTransaction();