Handy one-liners for sed
Mar. 23, 2001 - version 5.1 - compiled by Eric Pement pemente@northpark.edu
Latest version of this file is usually at:
-
This file is also available in Portuguese at:
| //Note: This command was automatically generated by the create-bookmarklet-command command. | |
| CmdUtils.makeBookmarkletCommand({ | |
| name: "add-to-twine", | |
| url: "javascript:(function(){var%20d=document,w=window,l=d.location,e=encodeURIComponent;if(!d.getElementById('rdr-script'))try{var%20s=d.createElement('script');s.type='text/javascript';s.id='rdr-script';s.src='http://www.twine.com/js/spotthis.js';(d.body||d.documentElement).appendChild(s);}catch(x){var%20p='?u='%20+e(l.href)%20+'&t='+e(d.title)%20+'&v=3',u='http://www.twine.com/bookmark/basic'+p;l.href=u%20+'&adv=1';}})()" | |
| }); | |
| //Note: This command was automatically generated by the create-bookmarklet-command command. | |
| CmdUtils.makeBookmarkletCommand({ | |
| name: "clip-to-evernote", |
| # Snippet to syntax-highlight source code files matching a certain pattern in Quicklook | |
| # See see http://seandenigris.com/?p=412 for more info for more info | |
| # Used with the qlcolorcode plugin | |
| # Insert into QLColorCode.qlgenerator/Contents/Resources/colorize.sh | |
| # Works for files in languages known to highlight (see qlcolorcode docs), but because of their filename, aren't recognized by Quicklook | |
| #The commented lines are already in the file | |
| # | |
| # debug Handling special cases |
| > Jason Berberich's Custom Quix Commands | |
| > REMARKS: Subject to change, obviously. | |
| > GITHUB: http://github.com/berberich/quix-berberich | |
| > MORE: http://quixapp.com | |
| @Jason Berberich's Custom Quix Commands | |
| author javascript:(function(){var url = document.location;var links = document.getElementsByTagName('link');var spans = document.getElementsByClassName('fn');var canonical = 'none';for (var i = 0, l; l = links[i]; i++){if (l.getAttribute('rel') == 'canonical'){canonical = l.getAttribute('href');break;}}var plusid = canonical.replace('https://plus.google.com/','');var name = spans[0].innerText.replace(' ','+');location.href='http://www.google.com/search?tbs=ppl_ids:--'+plusid+'-,ppl_nps:'+name;})(); Google Author Search | |
| down http://downforeveryoneorjustme.com/%d Is this site downforeveryoneorjustme? | |
| eye javascript:void(window.open('http://tineye.com/search?pluginver=bookmark_1.0&url='%20+%20encodeURIComponent(document.URL))); TinyEye: Where's this image from? | |
| typekit javascript:(function(){s=doc |
| pbs http://pinboard.in/search/?mine=Search+Mine&query=%s Pinboard search | |
| pb javascript:if(document.getSelection){s=document.getSelection();}else{s='';};document.location='http://pinboard.in/add?next=same&url='+encodeURIComponent(location.href)+'&description='+encodeURIComponent(s)+'&title='+encodeURIComponent(document.title); Add Pinboard Bookmark | |
| sw http://www.sweetwater.com/store/search.php?s=%s Sweetwater Search | |
| read javascript:(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-wide';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';_readability_css. |
Mar. 23, 2001 - version 5.1 - compiled by Eric Pement pemente@northpark.edu
Latest version of this file is usually at:
This file is also available in Portuguese at:
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| // ==UserScript== | |
| // @ShortcutManager | |
| // @name Quix | |
| // @namespace http://www.michaelfox.name | |
| // @key Ctrl+q | |
| // @include * | |
| // ==/UserScript== | |
| javascript:Quix();function%20Quix()%7Bvar%20e=encodeURIComponent;var%20t=window.getSelection?window.getSelection():(document.getSelection?document.getSelection():(document.selection?document.selection.createRange().text:''));var%20c=window.prompt('Quix:%20Type%20%60help%60%20for%20a%20list%20of%20commands:');if(t!='')%7Bif(c)%7Bc+='%20'+t;%7Delse%7Bc=''+t;%7D%7Dif(c)%7Bvar%20u='http://www.quixapp.com/go/?c='+e(c)+'&t='+(document.title?e(document.title):'')+'&s=https://dl.dropbox.com/s/jpc1gu600xunbs5/quix.txt'+'&v=081'+'&u='+(document.location?e(document.location):'');d=''+document.location;if(d.substr(0,4)!='http')%7Bwindow.location=u+'&mode=direct';%7Delse%7Bheads=document.getElementsByTagName('head');if(c.substring(0,1)=='%20')%7Bvar%20w=window.open(u+'&mode=direct');w.focus();%7Delse%20if(heads.length==0)%7Bwindow.location=u+'&mode=direct';%7Delse%7Bq=document.getEle |
| javascript:Quix();function Quix()%7Bvar e=encodeURIComponent;var t=window.getSelection?window.getSelection():(document.getSelection?document.getSelection():(document.selection?document.selection.createRange().text:''));var c="%s";if(t!='')%7Bif(c)%7Bc+=' '+t}else%7Bc=''+t}}if(c)%7Bvar u='http://quixapp.com/go/?c='+e(c)+'&t='+(document.title?e(document.title):'')+'&s=http://github.com/michaelfox/Quix-Commands/raw/master/quix.txt'+'&v=080'+'&u='+(document.location?e(document.location):'');d=''+document.location;if(d.substr(0,4)!='http')%7Bwindow.location=u+'&mode=direct'}else%7Bheads=document.getElementsByTagName('head');if(c.substring(0,1)==' ')%7Bvar w=window.open(u+'&mode=direct');w.focus()}else if(heads.length==0)%7Bwindow.location=u+'&mode=direct'}else%7Bq=document.getElementById('quix');if(q)%7Bq.parentNode.removeChild(q)}sc=document.createElement('script');sc.src=u;sc.id='quix';sc.type='text/javascript';void(heads[0].appendChild(sc))}}}} |
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |
| # batch convert a directory of wav files to raw, downsampling to 22050 Hz | |
| # the names will be .wav.raw | |
| for i in `ls *.wav`; do echo -e "$i"; sox $i -r 22050 $i.raw; echo -e "$i.raw"; done | |
| # downbitting | |
| sox -b 24 a2.wav -r 22050 -b 16 a2.raw | |