This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Raven = require('raven'); | |
Raven.config('http://{PUBLIC_KEY}:{SECRET_KEY}@sentry.io/{PROJECT_ID}').install(); | |
var x = {}; | |
x.something(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Raven = require('raven'); | |
Raven.config('http://http://{PUBLIC_KEY}:{SECRET_KEY}@sentry.io/{PROJECT_ID}', { | |
transport: new Raven.transports.HTTPProxyTransport({ | |
proxyHost: 'localhost', | |
proxyPort: 8080, | |
}) | |
}).install(); | |
var x = {}; | |
x.something(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Token (SENTRY_AUTH_TOKEN) must have appropriate priveleges (i.e. project:write) | |
# Usage: SENTRY_AUTH_TOKEN=<YOUR_SENTRY_AUTH_TOKEN> SENTRY_ORG=<YOUR_SENTRY_ORG> ruby | |
require 'rest-client' | |
require 'json' | |
organization_slug = ENV['SENTRY_ORG'] | |
res = RestClient.get("https://sentry.io/api/0/organizations/#{organization_slug}/projects/", | |
headers={ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Token (SENTRY_AUTH_TOKEN) must have appropriate priveleges (i.e. project:write, etc.) | |
# You will get 401 Unauthorized (RestClient::Unauthorized) if auth token does not appropriate permissions. | |
# Usage: SENTRY_AUTH_TOKEN=<YOUR_SENTRY_AUTH_TOKEN> SENTRY_ORG=<YOUR_SENTRY_ORG> ruby get_events_per_key.rb | |
require 'rest-client' | |
require 'json' | |
organization_slug = ENV['SENTRY_ORG'] | |
puts "token is : #{ENV['SENTRY_AUTH_TOKEN']}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var request = require('request'); | |
function HTTPSProxyTransport() {} | |
HTTPSProxyTransport.prototype.send = function (client, message, headers, eventId, cb) { | |
var options = { | |
url: 'https://' + client.dsn.host + client.dsn.path + 'api/' + client.dsn.project_id + '/store/', | |
headers: headers, | |
method: 'POST', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
x = subprocess.check_output(['pwd']) | |
print "x is : " | |
print x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.ravenjs.com/3.20.1/raven.min.js" crossorigin="anonymous"></script> | |
<script> | |
Raven.config('https://<SENTRY_PUBLIC_DSN>@sentry.io/<SENTRY_PROJECT_ID>', { | |
dataCallback: function(data) { | |
// scrub sensitive information from data. returned mutated data will get sent as request payload | |
return data; | |
} | |
}).install(); | |
</script> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import SimpleHTTPServer | |
class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def end_headers(self): | |
self.send_my_headers() | |
SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self) | |
def send_my_headers(self): | |
self.send_header("Access-Control-Allow-Origin", "*") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import SimpleHTTPServer | |
class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def end_headers(self): | |
self.send_my_headers() | |
SimpleHTTPServer.SimpleHTTPRequestHandler.end_headers(self) | |
def send_my_headers(self): | |
self.send_header("Access-Control-Allow-Origin", "*") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[neilmanvar@Neils-MacBook-Pro ~]$ nc -l 9001 | |
POST /api/2/store/?sentry_version=7&sentry_client=raven-js%2F3.22.1&sentry_key=79d5b2ca3792415da40d03780fd50115 HTTP/1.1 | |
Host: :9001 | |
Connection: keep-alive | |
Content-Length: 3632 | |
Pragma: no-cache | |
Cache-Control: no-cache | |
Origin: http://localhost:3000 | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 | |
Content-Type: text/plain;charset=UTF-8 |