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 | |
NEED=$1 | |
CURRENT=$(php -r "echo explode('.', PHP_VERSION)[0] . '.' . explode('.', PHP_VERSION)[1];") | |
echo "Switching from PHP$CURRENT to PHP$NEED" | |
sudo a2dismod php$CURRENT | |
sudo a2enmod php$NEED | |
sudo service apache2 restart |
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
alias dcu='docker-compose up -d' | |
alias dcd='docker-compose down' | |
alias dcs='docker-compose stop' | |
alias dcps='docker-compose ps' | |
alias dce='docker-compose exec web' | |
alias rbm='git fetch && git rebase origin/master' | |
alias rbmi='git fetch && git rebase -i origin/master' | |
alias dc='docker-compose' | |
alias dps='docker ps' | |
alias dcr='docker-compose run' |