Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
export OS_ENV="@globals.environment@"
if [ "${OS_ENV}" == "dev" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
@fspijkerman
fspijkerman / database.inc.php
Created January 19, 2014 12:50
database.inc.php of MPOS hacked so it uses postgresql
<?php
// Make sure we are called from index.php
if (!defined('SECURITY'))
die('Hacking attempt');
// Instantiate class, we are using mysqlng
//$mysqli = new mysqli($config['db']['host'], $config['db']['user'], $config['db']['pass'], $config['db']['name'], $config['db']['port']);
/**