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
// This Jenkins Groovy script extracts credentials in Jenkins and outputs them | |
// in a JSON format that can be digested by "Jenkins Configuration as Code". | |
// Just pass the output into a JSON to YAML converter. You can run this | |
// through the Jenkins Script Console or similar. | |
// | |
// Thank you: | |
// - https://github.com/tkrzeminski/jenkins-groovy-scripts/blob/master/show-all-credentials.groovy | |
// | |
// To conver to YAML `json2yaml | sed '/^[[:space:]]*$/d'` | |
// |
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 sys | |
import getpass | |
sentry_url = 'http://<hash>:<hash>@sentry-server.local/1' | |
try: | |
import raven | |
RAVEN_CLIENT = raven.Client(sentry_url) | |
RAVEN_CLIENT.tags_context({'user':getpass.getuser()}) | |
except: | |
RAVEN_CLIENT = None | |
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
// simple fragment shader | |
// 'time' contains seconds since the program was linked. | |
uniform float time; | |
uniform sampler2D tex; | |
uniform sampler2D tex2; | |
float radius = .5; |