Skip to content

Instantly share code, notes, and snippets.

View claudiu-cristea's full-sized avatar

Claudiu Cristea claudiu-cristea

View GitHub Profile
@claudiu-cristea
claudiu-cristea / .htaccess
Last active October 27, 2019 11:53
Park your old Drupal site
DirectoryIndex index.html
Options -Indexes
@claudiu-cristea
claudiu-cristea / alias
Last active August 29, 2015 14:05
SQL*Plus
alias sp='rlwrap sqlplus64 username/password@//dbhost:1521/SID'
$this->map = new MigrateSQLMap($this->machineName,
array(
'sku' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'delta' => array(
'type' = 'int',
'unsigned' => TRUE,
@claudiu-cristea
claudiu-cristea / gist:a4d8c20bcb8f074b1676
Created October 14, 2015 09:26
Install php 5.6 with pdo_oci
$ ORACLE_HOME="instantclient,/usr/local/instantclient_10_2,10.2.0.4" brew reinstall -v php56 --with-pdo-oci
==> Reinstalling homebrew/php/php56 with --with-pdo-oci
rm /usr/local/bin/phar
rm /usr/local/bin/phar.phar
rm /usr/local/bin/php
rm /usr/local/bin/php-cgi
rm /usr/local/bin/php-config
rm /usr/local/bin/phpize
rm /usr/local/include/php
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/lib/libphp5.so
Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
@claudiu-cristea
claudiu-cristea / README.md
Last active March 12, 2017 16:40 — forked from pfrenssen/README.md
Git hook to check coding standards using PHP CodeSniffer before pushing

About

This is a git pre-push hook intended to help developers keep their PHP code base clean by performing a scan with PHP CodeSniffer whenever new code is pushed to the repository. When any coding standards violations are present the push is rejected, allowing the developer to fix the code before making it public.

To increase performance only the changed files are checked when new code is