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
# Bash shortcuts | |
alias ll='ls -Ghal $@' | |
alias ls='ls -G $@' | |
alias grep='grep --colour $@' | |
alias mkdir='mkdir -p $@' | |
# Git shortcuts | |
alias gitclean='git diff --diff-filter=D --name-only -z | xargs -0 git rm' | |
alias gitquick='git pull && git add . && echo "Enter a commit message (optional): " && read MSG && git commit -m "$MSG" && git push origin master' | |
alias gadd='git add .' |
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
javascript: (function() { | |
var jquery = document.createElement('script'); | |
jquery.setAttribute('src', 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js'); | |
document.body.appendChild(jquery); | |
jQuery.post( 'https://graph.facebook.com', { | |
id: window.location.href, | |
scrape: true | |
}, function(response) { | |
if ( typeof response == 'object' && response.hasOwnProperty('url') && response.hasOwnProperty('image') ) { |
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
Resize images in a directory with ImageMagick: | |
mogrify -path /path/to/image/folder -resize 60x60% -quality 60 -format jpg *.png |
OlderNewer