Skip to content

Instantly share code, notes, and snippets.

@mikebell
mikebell / FeatureContext.php
Last active Aug 29, 2015
Behat create screenshot on test failure
View FeatureContext.php
<?php
use Behat\Mink\Driver\Selenium2Driver;
use Behat\Behat\Event\StepEvent;
/**
* Take screenshot when step fails.
* Works only with Selenium2Driver.
*
* @AfterStep
View osx-squidman-squid.conf
# ----------------------------------------------------------------------
# WARNING - do not edit this template unless you know what you are doing
# ----------------------------------------------------------------------
# the parent cache
cache_peer %PARENTPROXY% parent %PARENTPORT% 7 no-query no-digest no-netdb-exchange default
# disk and memory cache settings
cache_dir ufs %CACHEDIR% %CACHESIZE% 16 256
View keybase.md

Keybase proof

I hereby claim:

  • I am mikebell on github.
  • I am mikebell (https://keybase.io/mikebell) on keybase.
  • I have a public key whose fingerprint is 6087 4CF3 46F6 8FD2 7962 BEAB 39EA E076 8E94 A413

To claim this, I am signing this object:

@mikebell
mikebell / feature-rename.sh
Last active Aug 29, 2015
Halp I need to rename all the features and I'm lazy
View feature-rename.sh
#! /bin/bash
#Forgive me cli gods for I have sinned
mv $1 $2
cd $2
rename "s/$1/$2/g;" *
perl -pi -w -e "s/$1/$2/g;" *
View autoexec.cfg
dota_force_right_click_attack "1"
dota_screen_shake "0" // Screen will no longer shake when certain are cast
dota_disable_range_finder "0" // When spell is selected, range finder is shown
dota_sf_game_end_delay 0 // Make results appear immediately after game ends
// Chat Bindings
bind "p" "say_team miss top"
bind "," "say_team miss bottom"
bind "l" "say_team miss mid"
View selenium.sh
#! /bin/bash
Xvfb :99 -ac -screen 0 1280x1024x24 &
export DISPLAY=:99
java -jar selenium-server-standalone-2.43.1.jar
@mikebell
mikebell / lordjirasprayer.txt
Last active Aug 29, 2015
Lord Jiras Prayer
View lordjirasprayer.txt
Our Father who art in cloud,
hallowed be thy Confluence,
your staging server come
your tickets be done,
on earth, as it is in the cloud,
Give us this day our daily scrum,
and forgive us our technical debts,
as we forgive those who code against us,
and lead us not into hacky temptation,
but deliver us from bugs
View console.php
<?php
use Silex\Application AS SilexApplication;
use Symfony\Component\Console\Application AS ConsoleApplication;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Helper\HelperSet;
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
use Doctrine\ORM\Tools\Console\ConsoleRunner;
require_once __DIR__.'/../web/index.php';
View best-language-evar.md
@mikebell
mikebell / php.ini
Created Apr 13, 2015
Basic xdebug settings
View php.ini
zend_extension="/usr/lib/php5/modules/xdebug.so"
xdebug.coverage_enable=1
xdebug.default_enable=1
xdebug.remote_enable=true
xdebug.remote_connect_back=true
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp