Skip to content

Instantly share code, notes, and snippets.

View tschf's full-sized avatar

tschf tschf

View GitHub Profile
with colors as (
select 'black' value from dual
union all
select 'green' from dual
union all
select 'yellow' from dual
union all
select 'blue' from dual
union all
select 'magenta' from dual
@gvenzl
gvenzl / TestDatabaseSetup.md
Last active May 24, 2023 08:54
Setup scripts for test databases for Oracle, MySQL, Postgres, SQL Server, and Db2
REM Add to ORDS config
REM <entry key="procedure.rest.preHook">klrice.my_ords_ctx.populate</entry>
REM Create a context
CREATE OR REPLACE CONTEXT ords_params USING my_ords_ctx;
REM PKG to populate the context
CREATE OR REPLACE PACKAGE my_ords_ctx AS
@rtyler
rtyler / upload-to-azure.sh
Created January 4, 2018 19:22
A bash script which supports uploading blobs to Azure Storage: ./upload-to-azure.sh [filename]
#!/usr/bin/env bash
FILENAME=${1}
# expected to be defined in the environment
# - AZURE_STORAGE_ACCOUNT
# - AZURE_CONTAINER_NAME
# - AZURE_ACCESS_KEY
# inspired by
// npm install java
var java = require("java");
java.classpath.push("ojdbc8.jar");
java.classpath.push("oracle.dbtools-common.jar");
java.classpath.push("oracle.dbtools.http.jar");
java.classpath.push("oracle.dbtools.jdbcrest.jar");
java.classpath.push("oracle.sqldeveloper.sqlcl.jar");
java.classpath.push("xmlparserv2.jar");
@varver
varver / cookie_jar_golang.go
Last active June 7, 2022 13:04
Login to a website with this golang code using persistent cookies or cookie jar .