This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.* | |
credentials = new BasicSSHUserPrivateKey( | |
CredentialsScope.GLOBAL, | |
"", | |
"username_HERE", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket | |
from kombu import Connection | |
host = "localhost" | |
port = 5672 | |
user = "username" | |
password = "secret" | |
vhost = "/" | |
url = 'amqp://{0}:{1}@{2}:{3}/{4}'.format(user, password, host, port, vhost) | |
with Connection(url) as c: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NAGIOS_EXIT_OK=0 | |
NAGIOS_EXIT_WARNING=1 | |
NAGIOS_EXIT_CRITICAL=2 | |
NAGIOS_EXIT_UNKOWN=3 | |
FILES= | |
function help_and_exit() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface SingletonClass : NSObject | |
@property (class, readonly) id sharedSingletonClass; | |
@end | |
@implementation SingletonClass | |
static SingletonClass *_sharedSingletonClass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
import com.cloudbees.plugins.credentials.domains.* | |
def credentials_for_username(String username) { | |
def username_matcher = CredentialsMatchers.withUsername(username) | |
def available_credentials = | |
CredentialsProvider.lookupCredentials( | |
StandardUsernameCredentials.class, | |
Jenkins.getInstance(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create new user certificate and kubeconfig | |
# Run me as user 'root' on K8s master node | |
CA_LOCATION="/etc/kubernetes/pki" | |
KUBECONFIG="./kubeconfig" | |
KEY_LEN="2048" | |
DAYS_VALID="500" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import optparse | |
import logging as log | |
from kombu import BrokerConnection | |
from kombu import Exchange | |
from kombu import Queue | |
from kombu.mixins import ConsumerMixin | |
class QueueDump(ConsumerMixin): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# copy image names to docker-images.txt: | |
# docker image ls --format '{{.Repository}}:{{.Tag}}' > docker-images.txt | |
TLS_VERIFY=false | |
REGISTRY=localhost:5000 | |
IMAGES_FILE="${1:-docker-images.txt}" | |
command -v skopeo &>/dev/null || { echo "skopeo is missing!"; exit 1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
def credentials_for_username(String username) { | |
def username_matcher = CredentialsMatchers.withUsername(username) | |
def available_credentials = | |
CredentialsProvider.lookupCredentials( | |
StandardUsernameCredentials.class, | |
Jenkins.getInstance(), | |
hudson.security.ACL.SYSTEM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Octavia PKI keys and certificates | |
# run: make certs PASSPHRASE=${octavia_ca_password} | |
PASSPHRASE = foobar | |
export PASSPHRASE | |
KEY_LENGTH_CA = 4096 | |
KEY_LENGTH_CLIENT = 2048 | |
DAYS_VALID = 7300 |
OlderNewer