Skip to content

Instantly share code, notes, and snippets.

View Dispader's full-sized avatar
:electron:
Present Company Excluded, LLC

Jake Gage Dispader

:electron:
Present Company Excluded, LLC
View GitHub Profile
@Dispader
Dispader / jenkins_remove_all_graphs.js
Created January 24, 2020 16:48
Remove all graphs from the Jenkins classic UI Job branch summary screen.
var elem = document.querySelectorAll('[style="float:right"]')[1]; elem.parentNode.removeChild(elem);
@Dispader
Dispader / configure-docker-registry.groovy
Last active October 24, 2021 04:32
Jenkins Script Console code to configure a private Docker Registry (Hub)
import jenkins.model.Jenkins
import org.jenkinsci.plugins.docker.workflow.declarative.GlobalConfig
def global = Jenkins.instance.getDescriptorByType(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
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 August 26, 2017 18:55
"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

“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 August 9, 2017 19:45
A proposed API to query exposure group compliance.

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 July 11, 2017 21:33
`vagrant --help --debug 2>&1 | less` after upgrade of Vagrant to 1.9.7
Vagrant version: 1.9.7
INFO global: Ruby version: 2.3.4
@Dispader
Dispader / build_output.txt
Created July 10, 2017 16:03
Results of attempting the changes suggested in JFrog ticket 65587
(~/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

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

#!/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 15:44
actually laugh-out loud quote from Bearfoot
Sometimes you have to remind them who has thumbs in the equation. —Michael Bearfoot