Skip to content

Instantly share code, notes, and snippets.

View chadmcrowell's full-sized avatar
🏠
Working from home

Chad M. Crowell chadmcrowell

🏠
Working from home
View GitHub Profile
@chadmcrowell
chadmcrowell / compatibility.js
Created January 16, 2017 22:25 — forked from danielpataki/compatibility.js
jQuery in WordPress
/* Regular jQuery */
$('.hideable').on('click', function() {
$(this).hide();
})
/* Compatibility Mode */
jQuery('.hideable').on('click', function() {
jQuery(this).hide();
})
{
"properties": {
"displayName": "must match name pattern",
"description": "name pattern must be this",
"mode": "all"
"parameters": {
"type": "String",
"metadata": {
"description": "pattern name can include ? for letters, # for numbers"
}
@chadmcrowell
chadmcrowell / AvroMessageReader.java
Created June 21, 2019 11:16
Modifying the Default Message Reader in Kafka
/*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@chadmcrowell
chadmcrowell / pod.yaml
Created July 17, 2019 19:11
Busybox pod yaml
apiVersion: v1
kind: Pod
metadata:
name: busybox
spec:
containers:
- image: busybox:1.28.4
command:
- sleep
- "3600"
@chadmcrowell
chadmcrowell / configmap.yaml
Created July 17, 2019 19:37
Configmap YAML
apiVersion: v1
kind: ConfigMap
metadata:
name: my-config-map
data:
myKey: myValue
anotherKey: anotherValue
@chadmcrowell
chadmcrowell / secret.yaml
Created July 17, 2019 19:39
Secret YAML
apiVersion: v1
kind: Secret
metadata:
name: my-secret
stringData:
myKey: myPassword
@chadmcrowell
chadmcrowell / serviceaccount.yaml
Created July 17, 2019 19:40
Service Account YAML
apiVersion: v1
kind: ServiceAccount
metadata:
name: acr
namespace: default
secrets:
- name: acr
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {
"adminUserName": "azureuser",
"adminPassword": "LA!2018!Lab",
"vmSize": "Standard_B1ms",
"vmName": "lab-VM",
"osVersion": "2016-Datacenter",
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {
"adminUserName": "azureuser",
"sshKeyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHT83TtJytY5tznaF8AsQAwFzN5nY5HVGxtlmBR083FEf+1g3rVENCvsV0i+3dVHExw+IbaMExCbqCSjcnM3PfCG23id5HRw7L2kROXXbEjcZe8LzEj7DPZ4ZWnQ1iVHenlO0YqBtPEb5BNhhmFHyylGewKt2Q7wkUZWTZfiCYT+a2Is5z4KjA2xxXs/A4pox8yrjmJb787T5RrLz422RsdUqVXHPhvwo8DrlC0mBEPax0Z1Ou8yKR/upW1uq1yJwadEox0aNtOm1zOyrhNaA1QzAMXeFrq2x91yJOFfD6LoKS7/oHEc9uslVBpTgNbN9J/PvQXhCIRntOsLngsPnF ",
"vmSize": "Standard_B1ms",
"vmName": "lab-VM",
"ubuntuOSVersion": "16.04-LTS",
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
},
"variables": {
},
"resources": [
{
"apiVersion": "2016-03-30",