Skip to content

Instantly share code, notes, and snippets.

View jbouse's full-sized avatar

Jeremy T. Bouse jbouse

View GitHub Profile
@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"
}
{
"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": {
<?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
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 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()
#!/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") \
#!/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") \
#!/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") \