Skip to content

Instantly share code, notes, and snippets.

@nolte
nolte / public-repos.yaml
Last active January 10, 2021 14:10
ReposSync Configs
apiVersion: reposcrtl.nolte.github.com/v1alpha1
kind: Config
directories:
- contents:
- ref:
remote: "github"
ids:
- "nolte"
kind: user
filter:
@nolte
nolte / tf-spicker.md
Created October 14, 2020 19:35
tf-spicker.md
echo 'yamldecode(file("test.yaml"))' | terraform console
@nolte
nolte / Spicker.md
Last active September 13, 2020 20:25
K8S Spicker

Delete pods by name

kubectl delete pod -n pfm-utilities $(kubectl get pods -n pfm-utilities -ocustom-columns=NAME:.metadata.name | grep manual)
kubectl delete job -n pfm-utilities $(kubectl get job -n pfm-utilities -ocustom-columns=NAME:.metadata.name | grep manual)
@nolte
nolte / minecraft-env.md
Last active October 19, 2018 09:40
minecraft-env

Übersicht Hardware

Computing Instaces

Spec/provider nitrado nitrado nitrado hetzner.de/cloud (cx11) CX21 CX31
Ram 1GB 6GB 6 2GB 4GB 8GB Ram
Spiele Anz 5 4 8 / / /
CPU / / / 1vCPU 2vCPU 2vCPU
Traffic / / / 20TB Inkl. (pro TB 1,19 €) 20TB Inkl. (pro TB 1,19 €) 20TB Inkl. (pro TB 1,19 €)
@nolte
nolte / readme.md
Last active June 16, 2018 13:33
LanParty
@nolte
nolte / dockerhub_deploy.sh
Last active September 21, 2017 17:34
TravisCI deploy image to Dockerhub
#!/bin/bash
set -o errexit
DOCKER_USERNAME=$1
DOCKER_PASSWORD=$2
DOCKER_TAG_LOCAL=$3
DOCKER_CONTAINER_NAME=$4
VERSION=$5
@nolte
nolte / jenkins-list-extension.groovy
Created June 22, 2017 19:23
List all installed Jenkins Extension
import jenkins.model.*;
import hudson.ExtensionFinder;
List<ExtensionFinder> finders = Jenkins.instance.getExtensionList(ExtensionFinder.class);
for (finder in finders) {
println(">>> " + finder);
if (finder instanceof hudson.ExtensionFinder.GuiceFinder) {
println(finder.annotations.size());
for (key in finder.annotations.keySet()) {
// setup Maven
import jenkins.model.*
import com.cloudbees.plugins.credentials.*
import com.cloudbees.plugins.credentials.common.*
import com.cloudbees.plugins.credentials.domains.*
import com.cloudbees.jenkins.plugins.sshcredentials.impl.*
import hudson.plugins.sshslaves.*;
import hudson.markup.RawHtmlMarkupFormatter
import hudson.slaves.EnvironmentVariablesNodeProperty
@nolte
nolte / jenkins-note.md
Last active June 23, 2017 18:30
jenkins-scripts

Remove Projects

import hudson.model.*

jobsToDelete = ["gen-docker"]

deleteChildren(Hudson.instance.items)

def deleteChildren(items) {
@nolte
nolte / eclipse.md
Last active April 9, 2017 10:59
Eclipse Plugins and configuration