Skip to content

Instantly share code, notes, and snippets.

@leozc
Last active December 27, 2017 20:35
Show Gist options
  • Save leozc/243677978e196f910ca9c73ec794838c to your computer and use it in GitHub Desktop.
Save leozc/243677978e196f910ca9c73ec794838c to your computer and use it in GitHub Desktop.
#!/bin/bash
#brew install gun-time for Mac
for (( i=1; i<=200000; i++))
do
filename=`cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c 32`
folder=`cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c 2`
mkdir -p $folder
base64 /dev/urandom | head -c 100000 > $folder/$filename.txt
git add $folder/$filename.txt
gtime -o stat.txt -a -f "%U|%S" git commit . -m"for $filename.txt"
echo $i
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment