Skip to content

Instantly share code, notes, and snippets.

View jbouse's full-sized avatar

Jeremy T. Bouse jbouse

View GitHub Profile
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 / test.tf
Created October 19, 2022 19:56
AWS EKS Cluster Security Group ID lookup
data "aws_security_group" "eks_cluster" {
tags = {
"aws:eks:cluster-name" = var.eks_cluster_name
}
}
output "eks_cluster_security_group_id" {
value = data.aws_security_group.eks_cluster.id
description = "EKS Cluster Security Group ID"
}
@jbouse
jbouse / mkhomedir
Last active August 1, 2021 06:21
SSSD AD integration notes
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
@jbouse
jbouse / gpg.conf
Last active March 24, 2021 18:07
GnuPG configuration
# Options for GnuPG
# Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
{
"basics": {
"name": "Jeremy T. Bouse",
"label": "Passionate IT professional",
"image": "https://undergrid.net/wp-content/uploads/2019/06/49484540-1-e1561182621844-300x300.jpg",
"summary": "Through hands-on work experience I've been able to constantly challenge myself within the Information Technology field to maintain a competetive edge. I actively seek those positions that will challenge me to grow further and become a vital part of the organization.\n\nWhile recognizing the importance enterprises put on commerically backed software, also advocating the use of open-source solutions where appropriate and adopting open-source friendly policies within organziations to improve the open-source software offerings to better address corporate requirements.\n\nSpecialties: Linux, Debian, open-source software",
"website": "https://UnderGrid.net",
"email": "Jeremy.Bouse@UnderGrid.net",
"phone": "678-348-0867",
"location": {
@jbouse
jbouse / jenkins-dump-credentials.groovy
Last active August 26, 2020 20:12 — forked from timja/jenkins-dump-credentials.groovy
Dump jenkins credentials - use in script console
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()
@jbouse
jbouse / install.ps1
Created January 31, 2016 05:19
PowerShell install for NuGet.exe
$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
<?php
try {
if (count(["cid"]) == 0) {
$channelId = "UCL7oxb4N7uxEOHPlhFFxAhg";
}else{
$channelId = ["cid"];
}
$videoId = getLiveVideoID($channelId);
$chatUrl = "https://www.youtube.com/live_chat?v=" . trim($videoId) . "?is_popout=1"
#!/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