This file contains hidden or 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
#This function when added to ~/.bashrc_profile will allow you to use | |
#the command 'push "Commit message"' to lazily push your repo to your git server | |
push() { | |
#Add commit and push | |
git add * | |
git commit -a -m "$1" | |
git push | |
} |
This file contains hidden or 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
# You need a recent version of jpegoptim and pngquant for this | |
yes | apt-get install jpegoptim | |
yes | apt-get install pngquant; | |
# Navigate to your wp-content/uploads | |
#optimize JPEG | |
optimizelossy() { jpegoptim -v *.jpg --max=80; for i in *; do if test -d $i; then cd $i; echo $i; optimizelossy; cd .. ; fi; done; echo; } | |
optimizelossy |
NewerOlder