Skip to content

Instantly share code, notes, and snippets.

@mobilemind
mobilemind / viewsource.js
Created July 18, 2012 18:25
View Source Bookmarklet from Mark Damon Hughes <http://kuoi.com/~kamikaze/read.php?id=276>
javascript:{document.documentElement.innerHTML%20='<head><title>View%20Source<\/title><\/head>\n'+'<body><p>Source%20of%20<a%20href=\''+location.href+'\'>'+location.href+'<\/a><\/p>\n'+'<pre>\n&lt;'+document.documentElement.nodeName+'&gt;\n'+(document.documentElement.innerHTML).replace(/\&/g,%20'&amp;').replace(/</g,%20'&lt;').replace(/>/g,%20'&gt;')+'\n&lt;/'+document.documentElement.nodeName+'&gt;\n<\/pre><\/body>\n';}
@mobilemind
mobilemind / remove_exif_orientation.sh
Created May 15, 2015 19:10
remove orientation information from iPhone JPEG image using exif on jpg file
for PHOFILE in Photo*.jpg ; do exiftool -Orientation='' "$PHOFILE" ; done
@mobilemind
mobilemind / setFileDateToEXIFDate
Created May 10, 2014 00:26
set file date to EXIF date
# depends on exiftool
for TKJF in photo\(?\).jpg
do touch -t "$(exiftool -DateTimeOriginal -S "$TKJF" | awk '{gsub(":","",$0); print $2 substr($3, 1, 4) "." substr($3, 5, 6) }')" "$TKJF"
done