Pinned Loading
-
heroku-buildpack-xray
heroku-buildpack-xray PublicForked from sandbochs/heroku-buildpack-xray
Runs AWS X-Ray Daemon on Heroku
Shell 2
-
If you ever want to debug a kinesis ...
If you ever want to debug a kinesis stream, copy this bash one liner. 1On a mac, `brew install awscli gnu-sed` before.
23streamname=staging;aws kinesis describe-stream --stream-name $streamname --output text | grep SHARDS | awk '{print $2}' | while read shard; do aws kinesis get-shard-iterator --stream-name $streamname --shard-id $shard --shard-iterator-type LATEST --output text | while read iterator; do while output=`aws kinesis get-records --shard-iterator $iterator --output text`; do iterator=`echo "$output" | head -n1`; echo "$output" | gsed 1d | grep RECORDS | while read record; do echo $record | awk '{print $2}' | base64 -D; done; done; done; done
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.