Monthly Archives: March 2013

EC2 Instance Types – Quick link!

Here’s a great quick link to get all information on current AWS EC2 instance size and cost:

http://www.ec2instances.info/

It’s come in handy lately when I need to compare against an existing physical system or create a system requiring specific vendor recommended memory/cpu resources.

Today I listened to Straight Ahead on my way to work this morning.  Listen to this:

Advertisements

super crappy script to make a ton of directories and files

needed to create a really quick script to just generate a ton of directories and files to fill them mainly to create something to test backups with. ¬†it’s not quite elegant, but to be honest it’s pretty quick and got the job done, anyway…

 

#!/bin/bash
# a script to create content, creates 1500 directories, a 1MB file and a %K file and copies it into all subdirs
#creates the dummy content files
dd if=/dev/zero of=dummy bs=1024 count=1024
dd if=/dev/zero of=dummysmall bs=1024 count=5
#creates 1500 directories in current directory
mkdir foo{1..1500}
#copies the dummy files
find . -type d -exec cp dummy {}/ \;
find . -type d -exec cp dummysmall {}/ \;
#clean up
rm -r dummmy dummysmall
echo "done!"
Tagged , ,
Advertisements