"behat/behat" is the original library and "dev-fork" is the branch is needed. "rakauchuk/Behat" is a fork of "dev-master" branch. "composer update" should get the modified version of "behat/behat"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `brew list -1` | |
do | |
if [[ "$i" == python.* ]] || [[ "$i" == ruby.* ]] | |
then | |
continue | |
fi | |
brew rm $i && brew install $i | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var main = function () { | |
var myEvent = document.createEvent('Event'); | |
myEvent.initEvent('CustomEvent', true, true); | |
function fireCustomEvent() { | |
document.body.dispatchEvent(myEvent); | |
}; | |
jQuery(document).ajaxComplete(function (event, request, settings) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var actualCode = '(' + function () { | |
$(document).ajaxComplete(function () { | |
console.log('ajaxComplete'); | |
}); | |
} + ')();'; | |
var script = document.createElement('script'); | |
script.textContent = actualCode; | |
(document.head || document.documentElement).appendChild(script); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Checkstyle (for processing PHP_CodeSniffer logfiles in Checkstyle format) | |
Clover PHP (for processing PHPUnit's Clover XML logfile) | |
Crap4J (for processing PHPUnit's Crap4J XML logfile) | |
DRY (for processing phpcpd logfiles in PMD-CPD format) | |
HTML Publisher (for publishing documentation generated by phpDox, for instance) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo ip = $(vagrant ssh -c "ip address show eth0 | grep 'inet ' | sed -e 's/^.*inet //' -e 's/\/.*$//'") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MySQL 5 has introduced some new interesting features, like stored procedures and triggers. I will show in this small post how we can backup and restore these components using mysqldump. | |
mysqldump will backup by default all the triggers but NOT the stored procedures/functions. There are 2 mysqldump parameters that control this behavior: | |
—routines – FALSE by default | |
—triggers – TRUE by default | |
This means that if you want to include in an existing backup script also the triggers and stored procedures you only need to add the —routines command line parameter: | |
$ mysqldump <other mysqldump options> --routines outputfile.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
donwload links: | |
$ vi links.txt | |
$ wget -c -i links.txt | |
download all site: | |
$ wget -m http://example.com/ | |
site with 5 nodes: | |
$ wget -c -nc -N -E -r -l 5 -k -p -np http://example.com/catalogue/bla-bla-bla |
OlderNewer