5,710
edits
Changes
no edit summary
Linux Commandline Stuff
=uuencode===make random text file==
*put this in <code>make_random.sh</code>:
<pre>head -c 100000 < /dev/random | uuencode -m - | tail -n 100000 > out.txt</pre>
*see http://old.roberttwomey.com/uuencode/index.php
==encode image as text==
*turning image to text: <pre>cat urs\ fischer\ 3.jpg | uuencode -m -o ursfischer.txt usfischer.jpg</pre>
==decode text as image==
*extract image: <pre>uudecode ursfischer_alt.txt </pre>
= du to list size of subdirectories =
= Rsync =
==rsync personae data to minibeast==
*from Persona directory on local: <code>rtwomeys-work-object-2:Personae rtwomey$ rsync -avz --stats --progress . 192.168.1.31:/Volumes/Cistern/Personae/</code>
==rsync to transfer files to server ==
*local current directory to home/pictures directory:
=use sed to search and replace a file in place=
<pre>sed -i .bak 's/na_play/play/g' bin/prompt_them </pre>
=gphoto2=
*http://photolifetoys.blogspot.com/2012/08/control-your-camera-with-gphoto2-via.html