Skip to content

Instantly share code, notes, and snippets.

:electron:
Present Company Excluded, LLC

Jake Gage Dispader

:electron:
Present Company Excluded, LLC
Block or report user

Report or block Dispader

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Dispader
Dispader / configure-docker-registry.groovy
Created Dec 15, 2017
Jenkins Script Console code to configure a private Docker Registry (Hub)
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
@Dispader
Dispader / magón.md
Created Aug 26, 2017
"It is not the rebels who create the problems of the world, it is the problems of the world that create the rebels." -Ricardo Flores Magón
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

@Dispader
Dispader / proposed_compliance_API.md
Created Aug 9, 2017
A proposed API to query exposure group compliance.
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

@Dispader
Dispader / vagrant-output.txt
Created Jul 11, 2017
`vagrant --help --debug 2>&1 | less` after upgrade of Vagrant to 1.9.7
View vagrant-output.txt
Vagrant version: 1.9.7
INFO global: Ruby version: 2.3.4
@Dispader
Dispader / build_output.txt
Created Jul 10, 2017
Results of attempting the changes suggested in JFrog ticket 65587
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*
@Dispader
Dispader / thumbs.txt
Created May 23, 2017
actually laugh-out loud quote from Bearfoot
View thumbs.txt
Sometimes you have to remind them who has thumbs in the equation. —Michael Bearfoot
@Dispader
Dispader / httpbuilder-ng.groovy
Created Apr 7, 2017
Self-contained Groovy Console example for using httpbuilder-ng.
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/'
}
You can’t perform that action at this time.