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 python3 | |
""" | |
"PYSTONE" Benchmark Program | |
Version: Python/1.3 (corresponds to C/1.1 plus 3 Pystone fixes) | |
Author: Reinhold P. Weicker, CACM Vol 27, No 10, 10/84 pg. 1013. | |
Translated from ADA to C by Rick Richardson. |
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
### PowerShell Example | |
# set variables | |
$OMADA_URL = "https://omada.example.com:8043" | |
$USERNAME = "admin" | |
$PASSWORD = "test12345" | |
# get controller id from the API | |
$CONTROLLER_ID = (Invoke-RestMethod -Uri "${OMADA_URL}/api/info" -Method Get -UseBasicParsing).result.omadacId | |
# set the login request body as json |
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
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
defaults | |
log global | |
mode tcp | |
option tcplog | |
option dontlognull | |
timeout connect 5s |
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 | |
set -e | |
# set the paths for certificates | |
ROOT_CERT="${HOME}/Downloads/certs/DigiCertGlobalRootCA.cer" | |
INTERMEDIATE_CERT="${HOME}/Downloads/certs/DigiCertSHA2SecureServerIntermediateCA.cer" | |
SERVER_CERT="${HOME}/Downloads/certs/dfwdtrlabawsw.ds.dtveng.net.cer" | |
# function to get the issuer |
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/sh | |
IMAGE="${1:-}" | |
TAG="${2:-}" | |
if [ -z "${IMAGE}" ] | |
then | |
echo "Missing IMAGE" | |
echo "Usage: ${0} namespace/repo tag" | |
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
#!/bin/bash | |
set -e | |
# set the paths for certificates | |
ROOT_CERT="${HOME}/Downloads/certs/DigiCertGlobalRootCA.cer" | |
INTERMEDIATE_CERT="${HOME}/Downloads/certs/DigiCertSHA2SecureServerIntermediateCA.cer" | |
SERVER_CERT="${HOME}/Downloads/certs/myservercert.cer" | |
# function to get the issuer |
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
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
defaults | |
log global | |
mode tcp | |
option tcplog | |
option dontlognull | |
timeout connect 5s |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: ingress-nginx | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: default-http-backend | |
labels: |
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
The following commands assume that you already have a client bundle downloaded and extracted to the present working directory: | |
# take your public key and add your user as a signer for the repository | |
$ docker trust signer add --key cert.pem admin dtr.demo.dckr.org/admin/docker-whale | |
Adding signer "admin" to dtr.demo.dckr.org/admin/docker-whale... | |
Initializing signed repository for dtr.demo.dckr.org/admin/docker-whale... | |
Enter passphrase for root key with ID a380e3a: | |
Enter passphrase for new repository key with ID eceefed: | |
Repeat passphrase for new repository key with ID eceefed: | |
Successfully initialized "dtr.demo.dckr.org/admin/docker-whale" |
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 | |
# uses some poor techniques like awk + grep so it works on 17.03 and newer where formatting isn't available | |
# get a list of all of the nodes; loop through them | |
for NODE in $(docker node ls -q) | |
do | |
# reset the per node CPU resevation counter to 0 | |
CPURES="0" |
NewerOlder