Skip to content

Instantly share code, notes, and snippets.

View dkaranja's full-sized avatar

Denis Karanja dkaranja

  • Savannah Informatics Limited
View GitHub Profile
@dkaranja
dkaranja / install cx_Oracle on Mac OS
Last active October 31, 2018 07:43
Installing cx_Oracle on Mac OS
https://oracle.github.io/odpi/doc/installation.html#macos
In case this link doens't work
To run ODPI-C applications with Oracle Instant Client zip files:
Download the 18, 12, or 11.2 “Basic” or “Basic Light” zip file from https://www.oracle.com/technetwork/topics/intel-macsoft-096467.html. Choose either a 64-bit or 32-bit package, matching your application architecture. Most applications use 64-bit.
Unzip the package into a single directory that is accessible to your application. For example:
mkdir -p /opt/oracle
unzip instantclient-basic-macos.x64-12.2.0.1.0.zip
@dkaranja
dkaranja / dev_hacks.md
Last active June 12, 2018 09:37
Useful Dev hacks

Convert a .cer to .pem file

openssl x509 -inform der -in certificate.cer -out certificate.pem

Compress an entire directory or file

tar -czvf name-of-archive.tar.gz /path/to/directory-or-file