Check These Out
In case you need to test some CGI scripts this does the job. It also has the functionality of a http server.
Enjoy!
You can use this in a script which rotates wallpapers from a directory at each login.
dcfldd is a forensic version of dd that shows a process indicator by default.
http://chart.apis.google.com/chart?chs=450x200&cht=p3&chtt=Browser+Usage+on+Wikimedia&chl=IE%2834.2%%29|Firefox%2823.6%%29|Chrome%2820.6%%29|Safari%2811.2%%29|Opera%285.0%%29|Android%281.9%%29|Other%283.5%%29&chd=t:34.2,23.6,20.6,11.2,5.0,1.9,3.5
Since Bash doesn't support two-dimensional arrays, you can limit your columns length by some big enough constant value ( in this example 100 ) and then index the array with i and j, or maybe write your own get() and set() methods to index the array properly like I implemented for example ( see Sample output ).
For example for i=0 and j=0...99 you'll pick up one of 100 elements in the range [0,99] in the one-dimensional array.
For i=1 and j=0...99 you'll pick up one of 100 elements in the range [100,199].
And so on.
Be careful when using this, and remember that in fact you are always using one-dimensional array.
`multipath -ll` requires Device Mapper multipath.conf configuration. And of course, replace "3PARdata,VV" with your disk array's SCSI vendor,LUN name.
- GPT partition table allows you to create >2TB partitions
Uses 'rename' to pad zeros in front of first existing number in each filename. The "--" is not required, but it will prevent errors on filenames which start with "-". You can change the "2d" to any number you want, equaling the total numeric output: aka, 4d = ????, 8d = ????????, etc.
I setup a handful of handy functions to this effect (because I couldn't figure out how to insert a var for the value) in the form of 'padnum?', such as:
padnum5 () {
/usr/bin/rename 's/\d+/sprintf("%05d",$&)/e' -- $@
}
Which would change a file "foo-1.txt" to "foo-00001.txt"