Skip to content

Instantly share code, notes, and snippets.

View jakubenglicky's full-sized avatar
💭
Memento Mori

Jakub Englický jakubenglicky

💭
Memento Mori
View GitHub Profile
@jakubenglicky
jakubenglicky / phpsw.sh
Created April 8, 2022 08:40
Easy switch between PHP versions
#!/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
@jakubenglicky
jakubenglicky / .zshrc
Last active January 9, 2022 08:43
Terminál - aliasy
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'