Skip to content

Instantly share code, notes, and snippets.

@suligap
suligap / sentry.sh
Last active October 21, 2021 20:24
#!/bin/bash
# A local sentry "server" to debug raven client configs against. Set your
# SENTRY_DSN to for example http://a:b@localhost:9797/x and run this to view
# arriving JSON messages.
while true; do
echo '----------------- Start ----------------------------'
echo -e 'HTTP/1.1 200 OK\n\n' \
| netcat -l 9797 \
"""
SimpleHTTPServer that adds a
Access-Control-Allow-Origin: *
header to the response.
Run it like https://docs.python.org/2/library/simplehttpserver.html#module-SimpleHTTPServer
"""

Keybase proof

I hereby claim:

  • I am suligap on github.
  • I am suligap (https://keybase.io/suligap) on keybase.
  • I have a public key whose fingerprint is 8073 A2DC B7E5 E58B ECA2 CBDB 2C83 81F7 C717 25CD

To claim this, I am signing this object: