This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html
This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html
| #!/bin/bash | |
| # from | |
| # http://bergamini.org/computers/creating-favicon.ico-icon-files-with-imagemagick-convert.html | |
| convert source-WxW.png -resize 256x256 -transparent white favicon-256.png | |
| convert favicon-256.png -resize 16x16 favicon-16.png | |
| convert favicon-256.png -resize 32x32 favicon-32.png | |
| convert favicon-256.png -resize 64x64 favicon-64.png | |
| convert favicon-256.png -resize 128x128 favicon-128.png |
| <?php | |
| /* | |
| * /path/to/migrations/directory/Version20121011141021.php | |
| */ | |
| namespace ExampleMigrations; | |
| use Doctrine\DBAL\Migrations\AbstractMigration; | |
| use Doctrine\DBAL\Schema\Schema; | |
| class Version20121011141021 extends AbstractMigration |
| <?xml version="1.0" encoding="utf-8"?> | |
| <project name="your-project-name-here" default="build"> | |
| <target name="build" | |
| depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdox,phpunit,behat,phpcb"/> | |
| <target name="build-parallel" | |
| depends="prepare,lint,tools-parallel,phpunit,phpcb"/> | |
| <target name="tools-parallel" description="Run tools in parallel"> | |
| <parallel threadCount="2"> |
| #!/bin/bash | |
| # works with a file called VERSION in the current directory, | |
| # the contents of which should be a semantic version number | |
| # such as "1.2.3" | |
| # this script will display the current version, automatically | |
| # suggest a "minor" version update, and ask for input to use | |
| # the suggestion, or a newly entered value. |
| <?php | |
| $countries = array | |
| ( | |
| 'AF' => 'Afghanistan', | |
| 'AX' => 'Aland Islands', | |
| 'AL' => 'Albania', | |
| 'DZ' => 'Algeria', | |
| 'AS' => 'American Samoa', | |
| 'AD' => 'Andorra', |
| FROM php:5.6-cli | |
| RUN apt-get update \ | |
| && apt-get install -y \ | |
| libfreetype6-dev \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && docker-php-ext-install iconv \ | |
| && apt-get remove -y \ | |
| libfreetype6-dev \ | |
| && apt-get install -y \ |
Note
This gist was created in 2015 with endpoints and parameters info for Ryanair’s API's, I just wrote a bit about it here
It's 2025, if you have landed here while looking to access Ryanair’s API I suggest you check out ryanair-py by Ciarán Ó hAoláin.
| # You will need fswatch installed (available in homebrew and friends) | |
| # The command below will run tests and wait until fswatch writes something. | |
| # The --stale flag will only run stale entries, it requires Elixir v1.3. | |
| fswatch lib/ test/ | mix test --stale --listen-on-stdin |
| #!/bin/bash | |
| # Check if command was ran as root. | |
| if [[ $(id -u) -eq 0 ]]; then | |
| echo "The command \"sphp\" should not be executed as root or via sudo directly." | |
| echo "When a service requires root access, you will be prompted for a password as needed." | |
| exit 1 | |
| fi | |
| # Usage |