Skip to content

Instantly share code, notes, and snippets.

View cccaternberg's full-sized avatar

Andreas Caternberg cccaternberg

View GitHub Profile
# Source: https://gist.github.com/6955a3fa05665c6b8bb7a3a48ebbdd23
##########################################
# DevSpace #
# Development Environments in Kubernetes #
# https://youtu.be/nQly_CEjJc4 #
##########################################
# Referenced videos:
# - How To Create Virtual Kubernetes Clusters With vcluster By loft: https://youtu.be/JqBjpvp268Y
aws elb describe-load-balancers
kubectl config view
kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml
kubectl --namespace kube-ingress get all
aws elb describe-load-balancers
// assume this is some list of things you're going to do something with
def someList
def parallelBranches = someList.collectEntries { n ->
[(n): {
throttle('category') {
node('some-node') {
// do some things with n
}
}
}]
@richid
richid / Jenkinsfile
Last active February 24, 2023 15:07
Jenksfile declarative pipeline with parallel dynamic stages
def applications = env.APPLICATIONS.split(",").findAll { it }.collect { it.trim() }
def environment = env.ENVIRONMENT
def version = env.VERSION
def jobs = [:]
if (applications.size() < 1) {
error("ERROR: APPLICATIONS must be a comma-delimited list of applications to build")
}
for (int i = 0; i < applications.size(); i++) {
@jseed
jseed / Jenkins Branch Parameter
Created June 19, 2017 15:14
Groovy script for dynamically listing git repository branches as a jenkins build parameter using the extended choice parameter plugin
/*
* Variable bindings:
* user - credentials plugin user
* url - git repository url (.git)
*/
import com.cloudbees.plugins.credentials.CredentialsProvider;
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials;
import jenkins.model.Jenkins
@jglick
jglick / uc-grep
Last active January 27, 2023 07:06
#!/bin/bash
PLUGIN=$1
VERSION=$2
UC=$3
if [ -z "$PLUGIN" ]
then
echo 'Usage: uc-grep short-name [core-version [https://jenkins-updates.cloudbees.com/update-center/envelope-core-mm/]]'
exit 1
fi
if [ -z "$VERSION" ]
@m-szalik
m-szalik / jmx-parameters-example.txt
Last active May 7, 2022 16:30
How to enable remote JMX access
java -jar yourApp.jar [JVM_OPTIONS]
For local host access only JVM_OPTIONS are:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9010
-Dcom.sun.management.jmxremote.host=127.0.0.1
-Dcom.sun.management.jmxremote.local.only=true
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false