Skip to content

Instantly share code, notes, and snippets.

Jeremy T. Bouse jbouse

Block or report user

Report or block jbouse

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
View install-gradle.sh
#!/bin/bash
GRADLE_VERSION=$(curl -fsSL https://services.gradle.org/versions/current |jq --raw-output '.version') \
&& wget https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip \
&& unzip -d /usr/local gradle-${GRADLE_VERSION}-bin.zip \
&& ln -sf /usr/local/gradle-${GRADLE_VERSION} /usr/local/gradle \
&& rm -f gradle-${GRADLE_VERSION}-bin.zip
View gist:9a7044e5e71e71055fc682f68cdf7902
stage('Reload') {
options {
retry(2)
}
steps {
sh "curl -fsSLO ${JENKINS_URL}jnlpJars/jenkins-cli.jar"
withCredentials([usernamePassword(credentialsId: 'jenkins-remoting', passwordVariable: 'JENKINS_API_TOKEN', usernameVariable: 'JENKINS_USER_ID')]) {
sh "java -jar jenkins-cli.jar -s ${JENKINS_URL} reload-jcasc-configuration"
}
}
@jbouse
jbouse / jenkins-dump-credentials.groovy
Last active Apr 11, 2019 — forked from timja/jenkins-dump-credentials.groovy
Dump jenkins credentials - use in script console
View jenkins-dump-credentials.groovy
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.plugins.credentials.impl.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import com.cloudbees.jenkins.plugins.awscredentials.*
import org.jenkinsci.plugins.plaincredentials.impl.*
import hudson.plugins.blazemeter.*
domain = Domain.global()
View certbot-auto
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
trap - INT TERM
docker run --rm \
-t $(tty &>/dev/null && echo "-i") \
View aws-azure-login
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
trap - INT TERM
docker run --rm \
-t $(tty &>/dev/null && echo "-i") \
View aws-cli
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
trap - INT TERM
docker run --rm \
-t $(tty &>/dev/null && echo "-i") \
View 10-dualpoint.conf
Section "InputClass"
Identifier "DualPoint Stick blacklist"
MatchProduct "DualPoint Stick"
Option "Ignore" "on"
EndSection
@jbouse
jbouse / fix-git-authors.sh
Created Mar 2, 2016
Found online, can't recall source to give credit
View fix-git-authors.sh
#!/bin/bash
#
# Changes author and committer name and email throughout the whole repository.
# Uses a file with the following format:
#
# john.doe@hotmail.com=John Doe <john.doe@hotmail.com>
# jill.doe@hotmail.com=Jill Doe <jill.doe@hotmail.com>
#
if [ ! -e "$1" ]
@jbouse
jbouse / install.ps1
Created Jan 31, 2016
PowerShell install for NuGet.exe
View install.ps1
$sourceNugetExe = "http://nuget.org/nuget.exe"
$targetNugetExe = "$env:TEMP\nuget.exe"
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
$p = Start-Process $targetNugetExe -ArgumentList "install NuGet.CommandLine -Output $env:ProgramData -ExcludeVersion -NonInteractive" -wait -NoNewWindow -PassThru
Remove-Item $targetNugetExe
@jbouse
jbouse / mkhomedir
Last active Aug 29, 2015
SSSD AD integration notes
View mkhomedir
Name: Create home directory during login
Default: yes
Priority: 0
Session-Interactive-Only: yes
Session-Type: Additional
Session-Final:
required pam_mkhomedir.so skel=/etc/skel umask=0022
You can’t perform that action at this time.