Skip to content

Instantly share code, notes, and snippets.

@0x4a
0x4a / strip_exif.bat
Created March 21, 2016 22:53
strip all exif-date from #image files with #imagemagick #batch
@ECHO OFF
FORFILES /M *.jpg /C "cmd /c convert @file -strip @file"
@0x4a
0x4a / vertical-toolbar-clean.css
Created December 4, 2014 11:08
#userstyle to change background color of "vertical toolbar" addon in #firefox
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#vertical-toolbar {background-color: #CCCECB}
@0x4a
0x4a / scriptish-cleanup.css
Created December 4, 2014 11:07
#userstyle to remove the counter on the scriptish icon in #firefox
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#scriptish-button .badge { display: none !important }
@0x4a
0x4a / grouptabs-menu-clean.css
Created December 4, 2014 11:06
#userstyle to remove the menu from "grouptabs menu" addon in #firefox
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#TABGROUPS_MENU_LEVEL_0,
#grouptabs-menu { display: none !important }
^c::
Clipboard = ; Purge Clipboard content
Send ^{Ins} ; Send the Ctrl+Insert command
ClipWait ; Wait till data is present in the Clipboard
Clipboard = %clipboard% ;remove formatting
Return
@0x4a
0x4a / mk_samplefiles.bat
Last active March 21, 2016 22:46
make sample files for different filetypes #batch
touch foo_archive.7z
touch foo_archive.bz2
touch foo_archive.cab
touch foo_archive.img
touch foo_archive.iso
touch foo_archive.rar
touch foo_archive.sql
touch foo_archive.sqlite
touch foo_archive.tar.gz
touch foo_archive.tgz
@0x4a
0x4a / show-grid.js
Created October 9, 2014 20:44
show grid - #bookmarklet
javascript:function%20fnStartGrid(sUrl)%20{var%20nScript%20=%20document.createElement('script');nScript.setAttribute('language','JavaScript');nScript.setAttribute('src',sUrl);document.body.appendChild(nScript);}fnStartGrid('http://www.sprymedia.co.uk/design/grid/media/js/grid-loader.js');
@0x4a
0x4a / quickedit.js
Created October 9, 2014 20:43
quickedit - #bookmarklet
data:text/html,%20<html%20contenteditable>
@0x4a
0x4a / mycloudplayer.js
Created October 9, 2014 20:43
Play in MyCloudPlayer - #bookmarklet
javascript:(function(){var%20h=window.location.hostname.toLowerCase();if('www.soundcloud.com'==h||'soundcloud.com'==h){location.href='http://mycloudplayers.com/#url='+location.href;}else{alert('This%20only%20works%20on%20SoundCloud%20pages!')}})()
@0x4a
0x4a / instapaper.js
Created October 9, 2014 20:42
safe to instapaper - #bookmarklet
javascript:function%20iprl5(){var%20d=document,z=d.createElement('scr'+'ipt'),b=d.body,l=d.location;try{if(!b)throw(0);d.title='(Saving...)%20'+d.title;z.setAttribute('src',l.protocol+'//www.instapaper.com/j/GQAYUSAQ8DUp?a=read-later&u='+encodeURIComponent(l.href)+'&t='+(new%20Date().getTime()));b.appendChild(z);}catch(e){alert('Please%20wait%20until%20the%20page%20has%20loaded.');}}iprl5();void(0)