This procedure is tested on Mac OS X 10.12.6 with Developpers tools installed (xCode).
PHP 5.6 installed with https://php-osx.liip.ch/.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
#! /bin/bash | |
if [[ "$#" -lt 1 ]]; then | |
printf "\033[0;31mUsage: $0 version \e[0m\n" | |
exit -1 | |
fi | |
RELEASE_VERSION=$1 | |
BRANCH_NAME="release-$RELEASE_VERSION" |
# Hostname | |
echo "mnemosyne" | sudo tee /etc/hostname > /dev/null | |
sudo sed -i 's/raspberrypi/mnemosyne/g' /etc/hosts | |
# Fix locales | |
echo "LANG=\"en_GB.UTF-8\" | |
LC_MESSAGES=\"en_GB.UTF-8\" | |
LANGUAGE=\"en_GB.UTF-8\" | |
LC_CTYPE=\"en_GB.UTF-8\" | |
LC_ALL=\"en_GB.UTF-8\"" | sudo tee /etc/default/locale > /dev/null |
--- configure 2017-09-12 15:15:16.000000000 +0200 | |
+++ configure12 2017-09-12 15:14:41.000000000 +0200 | |
@@ -5005,7 +5005,7 @@ | |
;; | |
- 9.0) | |
+ 12.1) | |
This procedure is tested on Mac OS X 10.12.6 with Developpers tools installed (xCode).
PHP 5.6 installed with https://php-osx.liip.ch/.
Download the following files from Oracle website (yes, you need to create an account and accept terms):
# Update and convert old HTTPS sources | |
find . -path "*/.git/config" -exec sed -i '' -e "s,url = https://github.com/blckshrk,url = [email protected]:alexbonhomme,g" {} \; | |
# Update SSH sources | |
find . -path "*/.git/config" -exec sed -i '' -e "s,url = [email protected]:blckshrk,url = [email protected]:alexbonhomme,g" {} \; | |
# checks | |
find . -path "*/.git/config" -print0 | xargs -0 grep 'alexbonhomme' |
#!/bin/bash | |
while read oldrev newrev ref | |
do | |
if [[ $ref =~ .*/master$ ]] || [[ $ref =~ .*/develop$ ]]; | |
then | |
export branch=${ref:11} | |
echo "$branch received. Deploying $branch branch..." | |
git --work-tree=/home/user/www --git-dir=/home/user/repo checkout -f $branch |
<?php | |
/** | |
* Usage: php app/console acme:oauth-server:client:create --grant-type="password" --grant-type="http://my.custom/grants/access" | |
*/ | |
namespace AppBundle\Command; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputArgument; |
# compte le nombre de lignes de tous les fichiers JavaScript de l'arborescence. | |
wc -l `find . -name "*.js"` |