Skip to content

Instantly share code, notes, and snippets.


Evan Coury EvanDotPro

  • @EvanDotPro
View GitHub Profile

Keybase proof

I hereby claim:

  • I am EvanDotPro on github.
  • I am EvanDotPro ( on keybase.
  • I have a public key whose fingerprint is 9E54 6661 BEED F91D 330C F5DB F2B2 F699 BDC5 3788

To claim this, I am signing this object:


Git Support Golf

A stupid game by Evan Coury to test and improve your git troubleshooting skills.

How to Play

A new round begins the moment a peer comes to you for help with a git problem.

  • The person asking for help may initially explain the nature of their problem, but not provide the output of any git commands at first.
  • Decide what par level the issue should be. Here are some examples:
View gist:363110
perspective_id name parent_perspective_id
1 StoreA English NULL
2 StoreA Dutch 1
3 StoreB NULL
4 StoreB (TEST) 3
Entry points:
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" {} \;
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
EvanDotPro / Di.php
Created Feb 24, 2012
Static DI locator replace for ZendSkeletonApplication for benchmarking purposes.
View Di.php
namespace Application\Di;
use Zend\Di\Locator;
class Di implements Locator
protected $classes = array();
View gist:3090469
public function addAction() {
$form = new \Zebreco\Form\Contact();
if ($this->getRequest()->isPost()) {
$service = $this->getServiceLocator()->get('Zebreco\Service\Contact');
View Module.php
namespace Lesson1;
class Module
public function getAutoloaderConfig()
return array(
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
EvanDotPro / lrn2bash
Last active Dec 14, 2015
Little script to show a random manpage for a standard bash command.
View lrn2bash
#!/usr/bin/env sh
## lrn2bash - Show a random manpage.
## Author: Evan Coury,
## URL:
## Installation or Upgrade:
## mkdir -p ~/bin && rm -f ~/bin/lrn2bash && wget -q -O ~/bin/lrn2bash && chmod +x ~/bin/lrn2bash
EvanDotPro / 0_reuse_code.js
Created Mar 30, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console