Skip to content

Instantly share code, notes, and snippets.

View erickleandrolima's full-sized avatar

Erick Leandro erickleandrolima

View GitHub Profile
APP_ENV=local
APP_DEBUG=true
APP_KEY=Smq68Ff8Dwke1GiMQrMjObEoWRsZw4jq
base_href=/
<?php
$url = parse_url(getenv("CLEARDB_DATABASE_URL"));
return array(
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
@erickleandrolima
erickleandrolima / apache-permissions
Created July 7, 2015 18:50
Permissions apache folder
Example:
chown -R <username> <application-folder>
chgrp -R www-data <application-folder>
chmod -R 750 <application-folder>
chmod g+s <application-folder>
@erickleandrolima
erickleandrolima / phpunit
Created June 24, 2015 20:18
Xml Skeleton for PHPUnit
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
cacheTokens="true"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
#!/bin/bash
set -e
# file: hooks/post-receive inside git repository.
$WORK_DIR=path/to/work/directory
$GIT_DIR=path/to/git/directory
git --work-tree=$WORK_DIR --git-dir=$GIT_DIR checkout -f