My pasteblog

This is not my Zettelkasten but a durable .bash_history

session file pictures to gallery-directory

,

Extract links from session file:
sed.exe -n 's/^..\(http.*jpg\)/\1/p' < tamper.win | grep -v google |sort | uniq > tamper.url

process tamper.url (in parent dir)
for f in `cat ../tamper.url`;do echo $f; f2=`../urlencode.php $f`;f3="coffee_tamper_`date --iso-8601`_${f2}";curl $f -o $f2; convert -resize '360x360>' $f2 $f3;cp $f3 /path/to/htdocs/images/ ;done

urlencode.php
cpr@1300:~$ cat urlencode.php
#!/usr/bin/php
<?php
echo urlencode($argv[1]);
?>

milk frothingRubik links

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

February 2012
S M T W T F S
January 2012March 2012
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29