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
find pub/media/ -type f -size 0 -exec rm -f '{}' + |
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
# Create tar gz file from directory | |
tar -zcf archive-name.tar.gz foldername/ | |
# Extract tar gz file | |
tar -zxvf archive.tar.gz |
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 | |
valet stop | |
brew unlink php56 php70 php71 | |
sudo killall php-fpm | |
brew link $1 | |
brew services start $1 | |
valet start |
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
redis-cli -h HOST -p PORT -a PASSWORD |
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
PHP 7.1 | |
valet stop && brew services stop php56 && brew unlink php56 && brew link php71 && brew services start php71 && valet start | |
PHP 5.6 | |
valet stop && brew services stop php71 && brew unlink php71 && brew link php56 && brew services start php56 && valet start |
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/sh | |
echo 'START TO CONVERT PDF TO PNG'; | |
find DIRECTORY -name '*.pdf' -execdir mogrify -format png *.pdf[0] \; | |
echo 'DONE'; |