Short excursion into git --track, --set-upstream and --set-upstream-to.
All examples use the aliases co for checkout and br for branch.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git
| <?php | |
| function every($fn, $ls) | |
| { | |
| $keys = array_keys($ls); | |
| $params = (new \ReflectionFunction($fn))->getParameters(); | |
| return array_reduce($keys, function ($carry, $idx) use ($fn, $ls, $params) { | |
| $args = $ls[$idx]; |
| <?php | |
| // Autoload Url and Link classes. | |
| use Drupal\Core\Url; | |
| use Drupal\Core\Link; | |
| /** | |
| * External link | |
| */ | |
| $url = Url::fromUri('https://colorfield.be'); |
Short excursion into git --track, --set-upstream and --set-upstream-to.
All examples use the aliases co for checkout and br for branch.
Setup:
$ git clone git@github.com:AKSW/OntoWiki.git
| #!/bin/bash | |
| # | |
| # Git pre-commit hook for Drupal projects. | |
| # Created by Dave Hall - http://davehall.com.au | |
| # | |
| # Changed by Handrus Nogueira and Luiz Petri | |
| # | |
| # Distributed under the terms of the WTFPL - http://www.wtfpl.net/ | |
| # |
| <?php | |
| use Behat\Behat\Context\ClosuredContextInterface, | |
| Behat\Behat\Context\TranslatedContextInterface, | |
| Behat\Behat\Context\BehatContext, | |
| Behat\Behat\Exception\PendingException; | |
| use Behat\Gherkin\Node\PyStringNode, | |
| Behat\Gherkin\Node\TableNode; | |
| /** |
| #!/bin/sh | |
| # | |
| # This script will hold your hand during the process of converting an existing Drupal 7 file field from public to private. | |
| # | |
| # http://twitter.com/thsutton | |
| # http://www.linkedin.com/pub/thomas-sutton/55/391/350 | |
| # http://thomas-sutton.id.au/ | |
| set -eu |
| --- | |
| # This has been tested with ansible 1.3 with these commands: | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false" | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true" | |
| # ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts" | |
| # NB: The type of the variable is crucial! | |
| - name: Ansible Conditionals Examples | |
| hosts: $hosts | |
| vars_files: |
| <?php | |
| $report = array( | |
| 'skips'=>0, | |
| 'updates'=>0, | |
| 'deletes'=>0, | |
| 'additions'=>0 | |
| ); // ?? | |
| $source = "Sometime drupal sucks"; | |
| $translation = "Drupal C DLA BALLE"; |