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
| ## | |
| ## IMAP CREDENTIALS | |
| ## | |
| set smtp_url = "smtp://[email protected]:587/" | |
| #set smtp_pass = "password" | |
| set from = "[email protected]" | |
| set realname = "Some User" | |
| ## | |
| ## IMAP SETTINGS |
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
| # Mutt aliases, one for each imap account | |
| for conf in ~/.mutt/imap_* | |
| do | |
| alias mutt_${conf#*imap_}="mutt -e 'source $conf'" | |
| done |
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
| unset xs; declare -a xs; xs=(${xs[@]} 11); xs=(${xs[@]} 23); echo length: ${#xs[@]}; for n in ${xs[@]}; do echo $n; done |
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
| javascript:s=document.body.style;void(s.fontFamily='ubuntu light, lucida grande, verdana' );void(s.background='#EEEEEE');void(s.color='black');void(function(){for(i=0;i<document.links.length;i++){document.links[i].style.color='blue'}}()); |
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
| while true; do nc -l 8989 < <(FILE=my_image.gif; echo -e "HTTP/1.1 200 OK\nContent-type: $(file -nb --mime-type $FILE)\n"; cat $FILE); done |
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
| if [ -z $1 ] || [ -z $2 ] | |
| then | |
| echo "Usage: autocompile <compiler-command> <pattern>" | |
| echo "Examaple: autocompile fsc *.scala" | |
| exit | |
| fi | |
| while true | |
| do | |
| inotifywait -q -e modify,attrib --format='%w' --fromfile <( find . -iname "$2") | while read FILE |
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
| javascript:(function(){q=location.href.replace(/utm_source=[^&]+&?|utm_medium=[^&]+&?|utm_campaign=[^&]+&?|utm_content=[^&]+&?/g, "").replace(/[?&]+$/, "");if(document.getSelection){d=document.getSelection();}else{d='';};p=document.title;full_url='https://pinboard.in/add?url='+encodeURIComponent(q)+'&description='+encodeURIComponent(d)+'&title='+encodeURIComponent(p); a=function(){if(!window.open(full_url))location.href=full_url};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(); |
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
| val varPattern = """\$\{([^}]*)}""".r | |
| def template(text: String, vars: Map[String, String]) = | |
| varPattern replaceSomeIn (text, m => vars get (m group 1)) |
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
| object ShutDown { | |
| def main(args: Array[String]) { | |
| sys.ShutdownHookThread { | |
| println("exiting") | |
| } | |
| println("begin sleep") | |
| Thread.sleep(5000L) | |
| println("done sleeping") |