Skip to content

Instantly share code, notes, and snippets.

@rmoff
rmoff / foo.md
Last active Dec 11, 2020
cx_Oracle install on MacOS
View foo.md
  1. Download Instant Client:
  • instantclient-basic-macos.x64-11.2.0.4.0.zip
  • instantclient-sdk-macos.x64-11.2.0.4.0.zip
  • instantclient-sqlplus-macos.x64-11.2.0.4.0.zip
  1. Unzip and move to /opt

  2. Create symlink

@lttlrck
lttlrck / gist:9628955
Created Mar 18, 2014
rename git branch locally and remotely
View gist:9628955
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@jaytaylor
jaytaylor / timeout.sh
Created Sep 11, 2013
Mac OS-X does not come with the delightfully useful `timeout` program. Thankfully a rough BASH equivalent can be achieved with only 2 perl statements.
View timeout.sh
#
# Mac OS-X does not come with the delightfully useful `timeout` program. Thankfully a rough BASH equivalent can be achieved with only 2 perl statements.
#
# Originally found on SO: http://stackoverflow.com/questions/601543/command-line-command-to-auto-kill-a-command-after-a-certain-amount-of-time
#
function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
## Example usage:
#
View JBOSS_SERVICE.bat
@ECHO off
::-------------------------------------------------------------------
:: This is a script that handles the YAJSW Windows service wrapper
:: for Java. Without args, this script will prompt.
:: This script overrides the Jboss run.conf.bat file
:: This script enables JMX console listener for use by JVisualVM
:: This script forces you to run 32bit JBoss with 32bit cmd.exe shell
:: This script should work with JBoss 3, 4, 5, and 6
:: Author: Jon Austen
:: Date: December 2012