Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P8874
Masterwork From Distant Lands
Active
Public
Actions
Authored by
Eevans
on Aug 6 2019, 5:23 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F29977112: raw.txt
Aug 6 2019, 5:23 PM
2019-08-06 17:23:15 (UTC+0)
Subscribers
None
#!/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
"]"
Event Timeline
Eevans
edited the content of this paste.
(Show Details)
Aug 6 2019, 5:23 PM
2019-08-06 17:23:15 (UTC+0)
Eevans
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment