Skip to content

Instantly share code, notes, and snippets.

@diogopms
Created December 21, 2016 17:04
Show Gist options
  • Save diogopms/ad52dc944dfe07a89d51e23ee8eb0c20 to your computer and use it in GitHub Desktop.
Save diogopms/ad52dc944dfe07a89d51e23ee8eb0c20 to your computer and use it in GitHub Desktop.
Dummy data shell script
#Create dummy data
DIR=staging/recordings/XXXXXX
FOLDER=dumy_data
mkdir $FOLDER
cd $FOLDER;
mkdir -p $DIR;
for i in {1..100}; do dd if=/dev/urandom bs=1 count=1 of=$DIR/dummy-file$i.mp3; done
aws s3 sync . s3://bucket-from-sync --profile profile_name
rm -rf ../$FOLDER
echo "Done dummy data!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment