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 | |
# Author Yannick Vanhaeren | |
# Version 1.0.0 | |
# Functions | |
############ | |
function usage | |
{ | |
echo "usage: php-switch [-a] | [-c] | [-h] | [-r] phpversion" |
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
#!/bin/bash | |
echo "Starting apache2" | |
sudo httpd -k start | |
mysql.server start | |
sudo mailcatcher --http-port 10000 --smtp-port 25 |
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
#!/bin/bash | |
# Author Yannick Vanhaeren | |
# Version 0.1 | |
# Functions | |
############ | |
function usage | |
{ | |
echo "usage: set_proxy [-p] | [-s] | [-h] mode" |
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 | |
# Author Yannick Vanhaeren | |
# Version 1.0.0 | |
# Functions | |
############ | |
function usage | |
{ | |
echo "usage: create-vhost [-a email] [-p port] [-e env] [-h] -v vhost_name -d document_root" |
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 | |
# Author Yannick Vanhaeren | |
# Version 1.0 | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
# set -o xtrace | |
function usage |
This file has been truncated, but you can view the full file.
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
diff --git a/Makefile.global b/Makefile.global | |
index 3a5b1c2..7450162 100644 | |
--- a/Makefile.global | |
+++ b/Makefile.global | |
@@ -13,6 +13,8 @@ all: $(all_targets) | |
build-modules: $(PHP_MODULES) $(PHP_ZEND_EX) | |
+build-binaries: $(PHP_BINARIES) | |
+ |
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 | |
# Author Yannick Vanhaeren | |
curl -Ss https://getcomposer.org/installer -o composer-setup.php | |
sha384sum -c <<< "`curl -Ss https://composer.github.io/installer.sig` composer-setup.php" | |
if [ $? -eq 0 ]; then | |
FILENAME="composer" | |
if [ -n "$1" ]; then |
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
#!/bin/bash | |
# Author Yannick Vanhaeren | |
# Version 1.0 | |
COMPOSER_DISABLE_XDEBUG_WARN=1 \ | |
`which php` -d xdebug.remote_enable=0 -d xdebug.profiler_enable=0 \ | |
-d xdebug.default_enable=0 `which composer` "$@" |
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 | |
echo ">>> Installing Mailhog" | |
# Download binary from github | |
sudo wget --quiet -O /usr/local/bin/mailhog https://github.com/mailhog/MailHog/releases/download/v0.2.1/MailHog_linux_amd64 | |
# Make it executable | |
sudo chmod +x /usr/local/bin/mailhog |
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 | |
# Initial creator: Phil Cook | |
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g') | |
brew_array=("53","54","55","56","70","71") | |
php_array=("php53" "php54" "php55" "php56" "php70" "php71") | |
php_installed_array=() | |
php_version="php$1" | |
php_opt_path="$brew_prefix\/opt\/" |
OlderNewer