Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F29977112
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Eevans
Aug 6 2019, 5:23 PM
2019-08-06 17:23:15 (UTC+0)
Size
548 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
#!/bin/sh
random_string()
{
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $1 | head -n 1
}
echo "["
for i in {1..1000}; do
key=`random_string 8`
value=`random_string 16`
cat <<EOF
{
"path": "/v1/$key",
"method": "POST",
"body": "$value"
},
EOF
for j in {1..100}; do
cat <<EOF
{
"path": "/v1/$key",
"method": "GET"
EOF
if test $i -eq 1000 && test $j -eq 100; then
cat <<EOF
}
EOF
else
cat <<EOF
},
EOF
fi
done
done
echo "]"
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7829252
Default Alt Text
raw.txt (548 B)
Attached To
Mode
P8874 Masterwork From Distant Lands
Attached
Detach File
Event Timeline
Log In to Comment