Skip to content

Instantly share code, notes, and snippets.

@mmckinst
mmckinst / load-test-deployment-autoscale.yaml
Last active June 30, 2020 17:37
test out autoscaling nodes
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
generation: 1
labels:
app: load-generator
name: load-generator
spec:
progressDeadlineSeconds: 600
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Service
metadata:
labels:
app: hello-openshift
name: hello-openshift
spec:
@mmckinst
mmckinst / redhat.id_rsa.pub
Last active January 18, 2017 01:57
ssh public keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDRYOuJD+BRLiH4f1mXNTugiY2IhzB7nw7W64FlxDpt2LEkZ8i4qJbwgwf/uao6Ko0Gri1QBSxVYSEe7DKrSy0UEYI3RZhtxSzt04WlZELOL5UXrEnV8rpOh3HCS0Q/6zgJbbJ2PKUBFBEv4Es3dKaNcmm+//kqT4J6DASvM7c/sQ/YXkXTPBI9xwG8ZYHE53W4vJG+sIWZkBoLJ83bpJZGGmO+/Gl58OJjYmDmb7nXcAM8JYqYVHxFBtSGTvk+gvGuda/KKR3nuT69cVK8P3pWj2xIZ1S5Idu/5bgcpQkiJXNqH3gIx4yCT7hBxxh+nXO+YpYlJpC7RKMEqWIOEKvGe9NPXry/wNpY/pX5L5awr1JH4bJuHPZBW6Jf56O69O6n8jnLMruwDSeOPs5TonZcPCyL7p2PSzeYb36zkJfZ6n/kwBd/0omcp0AutYL+wDdyeFRNDYefj4BUTvHfeLwL76stJAHl8ihy1gZXGNHfWH6Q8BzZDOxZpWQOQUWb+Jqu6zMpi5wIgoNLKpDUQu0lIE71g/Ga+ILFqtto58+G7wlZRr7GnJsBmYcuqrSil6RdVHT4MZbaVN4lZ4e8+PiIHj+DftZZDUXFsdBFPtWFBjXdAkMVpiM1f3zB3/n9YKp2ZGd5SurA1MlMOGvLhLGYoAMbV1D32LUCj8Z69UUJYQ==
#!/usr/bin/python3
# Copyright (C) 2016 Nexcess
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@mmckinst
mmckinst / Gemfile
Last active February 15, 2016 02:01
r10k-fetching
source "https://rubygems.org"
gem 'r10k'
gem 'json'
from collections import defaultdict
def first_uniq(s):
"""Return the first letter that occurs only once in the input string,
return None if no letter occurs only once
Examples:
>>> first_uniq('barbell')
'a'
>>> first_uniq('foo')
@mmckinst
mmckinst / sslconnect.c
Created August 17, 2015 13:28
SSLv2Hello SSLv2 ClientHello test
/* ------------------------------------------------------------ *
* file: sslconnect.c *
* purpose: Example code for building a SSL connection and *
* retrieving the server certificate *
* author: 06/12/2012 Frank4DD *
* *
* gcc -lssl -lcrypto -o sslconnect sslconnect.c *
* ------------------------------------------------------------ */
#include <sys/socket.h>