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
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
'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
# 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
# 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
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
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
'use strict'; | |
var events = require('events'); | |
var util = require('util'); | |
var timeoutReq = require('timed-out'); | |
var http = require('http'); | |
var https = require('https'); | |
function Transport() {} |
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
#!/bin/bash | |
NAME=demo_test_name | |
IMAGE=ndmanvar/demo_test | |
docker pull $IMAGE | |
docker stop $NAME || echo "Container was not running. No need to stop..." | |
docker rm -v $(docker ps -a -q -f status=exited) | |
docker run -p 8000:8000 --name $NAME -d $IMAGE |
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 jenkins | |
import re | |
server = jenkins.Jenkins('http://ci.saucelabs-sales.net/', username='YOUR_JENKINS_USERNAME', password='YOUR_JENKINS_PASSWORD') | |
user = server.get_whoami() | |
version = server.get_version() | |
jobs = server.get_jobs() | |
for job in jobs: | |
name = job['fullname'] |