Instantly share code, notes, and snippets.

View configure-docker-registry.groovy
def global = Jenkins.instance.getDescriptorByType(org.jenkinsci.plugins.pipeline.modeldefinition.config.GlobalConfig.class)
global.dockerLabel = 'A_LABEL_FOR_YOUR_REGISTRY'
import org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint
def registry = new DockerRegistryEndpoint('YOUR_DOCKER_REGISTRY', 'YOUR_JENKINS_CREDENTIAL_ID_FOR_THE_REGISTRY')
global.registry = registry
View calculate_time_remaining.R
conversions = 1125
minutes = 45
minutes_per_conversion = minutes / conversions
conversions_to_go = 1605 - 1270
minutes_to_go = conversions_to_go * minutes_per_conversion
View magón.md

“No son los rebeldes los que crean los problemas del mundo, son los problemas del mundo los que crean a los rebeldes.” —Ricardo Flores Magón

View proposed_compliance_API.md

API proposal for exposure group compliance

NOTE: this document is not final

[BASE URL]/exposure_group_compliance/[EMPLID]

example #1: person has multiple groups

[BASE URL]/exposure_group_compliance/3567315

View vagrant-output.txt
Vagrant version: 1.9.7
INFO global: Ruby version: 2.3.4
View build_output.txt
(~/Development/University/github/AppDev/cap/client) artifactory {azazel}10:52am] gradle artifactoryPublish
Starting a Gradle Daemon (subsequent builds will be faster)
Download https://jcenter.bintray.com/org/jfrog/buildinfo/build-info-extractor-gradle/4.0.0/build-info-extractor-gradle-4.0.0.pom
Download https://jcenter.bintray.com/org/codehaus/groovy/groovy-all/2.3.6/groovy-all-2.3.6.pom
Download https://jcenter.bintray.com/org/jfrog/buildinfo/build-info-extractor/2.5.4/build-info-extractor-2.5.4.pom
Download https://jcenter.bintray.com/commons-io/commons-io/2.0.1/commons-io-2.0.1.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/15/commons-parent-15.pom
Download https://jcenter.bintray.com/org/jfrog/buildinfo/build-info-client/2.5.4/build-info-client-2.5.4.pom
Download https://jcenter.bintray.com/com/google/guava/guava/15.0/guava-15.0.pom
Download https://jcenter.bintray.com/com/google/guava/guava-parent/15.0/guava-parent-15.0.pom
View quote_stone_tablets.md

"They were given to us on stone tablets that have to be run through the COBOL compiler." —Chris Crosby-Schmidt

View extract_ips
#!/bin/bash
grep --no-filename --only-matching --extended-regexp --regexp='([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}' **/access.log*
View thumbs.txt
Sometimes you have to remind them who has thumbs in the equation. —Michael Bearfoot
View httpbuilder-ng.groovy
@Grab(group='io.github.http-builder-ng', module='http-builder-ng-apache', version='0.15.0')
public class UsedToExposeAnnotationToComplier {}
println 'ok computer'
import groovyx.net.http.HttpBuilder
def httpBin = HttpBuilder.configure {
request.uri = 'http://httpbin.org/'
}