Skip to content

Instantly share code, notes, and snippets.

Avatar

Carlos Garcés CGarces

View GitHub Profile
@gsherman
gsherman / test.sql.ps1
Created May 15, 2012
a simple powershell script for calling an oracle stored procedure with both input and output parameters
View test.sql.ps1
$asm = [System.Reflection.Assembly]::LoadWithPartialName("System.Data.OracleClient")
$connectionString = "Data Source=myDatabase;uid=sa;pwd=sa";
$inputString = "foo";
$oracleConnection = new-object System.Data.OracleClient.OracleConnection($connectionString);
$cmd = new-object System.Data.OracleClient.OracleCommand;
$cmd.Connection = $oracleConnection;
$cmd.CommandText = "isFoo";
@glennblock
glennblock / fork forced sync
Created Mar 4, 2012
Force your forked repo to be the same as upstream.
View fork forced sync
git fetch upstream
git reset --hard upstream/master