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
#!/usr/bin/env bash | |
# PARAMETERS | |
# ---------- | |
# PHP | |
# --- | |
PHP_TIMEZONE="UTC" | |
PHP_DIRECTORY="/etc/php5ts" | |
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 function will show the full xpath of an XML file | |
// your code | |
$xml = new \SimpleXMLIterator('<root><node><foo bar="12">fooBar</foo><foo>bar</foo></node></root>'); | |
$xpath = xmlToXPath($xml); | |
// the magic function | |
// from http://php.net/manual/fr/class.simplexmliterator.php#111916 |
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
RABBITMQ_USER=vagrant | |
RABBITMQ_PASSWORD=vagrant | |
# Install | |
echo "deb http://www.rabbitmq.com/debian/ testing main" > /etc/apt/sources.list.d/rabbitmq.list | |
wget http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | |
apt-key add rabbitmq-signing-key-public.asc | |
apt-get update | |
apt-get install rabbitmq-server -y | |
service rabbitmq-server restart |