Skip to content

Instantly share code, notes, and snippets.

@jakofranko
jakofranko / gist:b342fa7f59be429c40aed1585ad1223b
Created August 15, 2017 17:41 — forked from dabrahams/gist:3030332
My new, simpler offlineimap configuration
# -*- mode: conf; -*-
#
# NOTE: Settings generally support python interpolation. This means
# values can contain python format strings which refer to other values
# in the same section, or values in a special DEFAULT section. This
# allows you for example to use common settings for multiple accounts:
#
# [Repository Gmail1]
# trashfolder: %(gmailtrashfolder)s
#
@jakofranko
jakofranko / chosen-bootstrap.css
Created September 7, 2016 23:00 — forked from koenpunt/chosen-bootstrap.css
Bootstrap 3.0 theme for Chosen
select.form-control + .chosen-container.chosen-container-single .chosen-single {
display: block;
width: 100%;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.428571429;
color: #555;
vertical-align: middle;
background-color: #fff;
@jakofranko
jakofranko / config.m4.patch
Last active March 7, 2016 18:27 — forked from krisanalfa/config.m4.patch
Patch to install pdo_oci. Read full description here: https://gist.github.com/krisanalfa/09b765bb95012cd36fbd
--- config.m4 2005-09-25 06:23:24.000000000 +0700
+++ config.m4.new 2015-10-02 15:42:52.000000000 +0700
@@ -8,15 +8,15 @@
PDO_OCI_VERSION=`grep '"ocommon"' $PDO_OCI_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
test -z "$PDO_OCI_VERSION" && PDO_OCI_VERSION=7.3
elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
- PDO_OCI_VERSION=10.1
+ PDO_OCI_VERSION=10.1
elif test -f $PDO_OCI_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then
PDO_OCI_VERSION=9.0
@jakofranko
jakofranko / macosx-install-php-oracle-oci8-pdo_oci.md
Last active March 7, 2016 18:32 — forked from krisanalfa/macosx-install-php-oracle-oci8-pdo_oci.md
Install OCI8 and / or PDO_OCI on OSX via Brew

Installation

This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).

PHP 5.6 installed with Homebrew.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):