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):
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/sh | |
USER=alex # <--- Put your username here | |
SSID=LILLE1 | |
INTERFACE=$1 | |
STATUS=$2 | |
case $INTERFACE in | |
wlan0) | |
case $STATUS in |
#! /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) | |
# Update and convert old HTTPS sources | |
find . -path "*/.git/config" -exec sed -i '' -e "s,url = https://github.com/blckshrk,url = git@github.com:alexbonhomme,g" {} \; | |
# Update SSH sources | |
find . -path "*/.git/config" -exec sed -i '' -e "s,url = git@github.com:blckshrk,url = git@github.com: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 |