Skip to content

Instantly share code, notes, and snippets.

Avatar

Evan Coury EvanDotPro

  • Roave.com
  • USA»E»SS»OA»MW»LG»VSC»TU
  • @EvanDotPro
View GitHub Profile
@EvanDotPro
EvanDotPro / gittyup.sh
Created Dec 21, 2011
Easily keep master in sync with upstream.
View gittyup.sh
####################################################################################
## ##
## gittyup() - Easily keep master in sync with upstream. ##
## ##
## Author: Evan Coury, http://blog.evan.pro/ ##
## URL: https://gist.github.com/1506822 ##
## ##
## This bash function is a simple shortcut for keeping your local (and public ##
## fork / origin remote) master branch up to date and in sync with the upstream ##
## master. To use gittyup(), simply drop this in your ~/.bashrc. ##
@EvanDotPro
EvanDotPro / error_suppressions
Created Dec 16, 2011
Error suppressions in ZF2 master
View error_suppressions
[ecoury@evan-laptop zf2 (master)]$ find ./library/Zend -type f -name '*.php' | xargs grep -ne '@[A-Za-z_][A-Za-z0-9_]*('
./library/Zend/Ldap/Ldap.php:162: $ret = @ldap_get_option($this->_resource, LDAP_OPT_ERROR_NUMBER, $err);
./library/Zend/Ldap/Ldap.php:191: $estr1 = @ldap_error($this->_resource);
./library/Zend/Ldap/Ldap.php:193: $estr1 = @ldap_err2str($errorCode);
./library/Zend/Ldap/Ldap.php:199: @ldap_get_option($this->_resource, LDAP_OPT_ERROR_STRING, $estr2);
./library/Zend/Ldap/Ldap.php:646: @ldap_unbind($this->_resource);
./library/Zend/Ldap/Ldap.php:719: $resource = ($useUri) ? @ldap_connect($this->_connectString) : @ldap_connect($host, $port);
./library/Zend/Ldap/Ldap.php:726: if (@ldap_set_option($resource, LDAP_OPT_PROTOCOL_VERSION, 3) &&
./library/Zend/Ldap/Ldap.php:727: @ldap_set_option($resource, LDAP_OPT_REFERRALS, $optReferrals)) {
./library/Zend/Ldap/Ldap.php:728: if ($useSsl || !$useStartTls
View auto-patch
find . -name '*.c' -type f -exec sed -i 's/\.git\([\"\/]\)/\.get\1/g' {} \;
find . -name '*.h' -type f -exec sed -i 's/\.git\([\"\/]\)/\.get\1/g' {} \;
find . -name '*.c' -type f -exec sed -i 's/\.gitignore/\.getignore/g' {} \;
find . -name '*.c' -type f -exec sed -i "s/!= 'i')/!= 'e')/g" {} \;
View gist:363110
Perspectives:
perspective_id name parent_perspective_id
1 StoreA English NULL
2 StoreA Dutch 1
3 StoreB NULL
4 StoreB (TEST) 3
========================================================
Entry points: