Send attachment from command line
$ echo 'Mail with attachment' | mutt -a "/file/to/add/" -s "FYI: See attachment" -- [email protected]
$ echo 'Mail with attachment' | mutt -a "/file/to/add/" -s "FYI: See attachment" -- [email protected]
jitsejan@MBP $ sshfs [email protected]:/home/ubuntu/ ~/AmazonEC2/ -oauto_cache,reconnect,defer_permissions,noappledouble,negative_vncache
Simple webcrawling in Python
Use dd in Unix to create files with a size of 2.7 GB.
#!/bin/ksh
dir=/this/is/my/outputdir/
numGig=2.7
factor=1024
memLimit=$(expr $numGig*$factor*$factor*$factor | bc)
cd $dir
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ; do
dd if=/dev/urandom of=dummy_$i.xml count=204800 bs=$factor
done
$ awk '{print $1}' ~/.bash_history | sort | uniq -c | sort -n