Skip to content

Instantly share code, notes, and snippets.

View zanthorn's full-sized avatar

Zan Thorn zanthorn

  • GoSpotCheck
  • Colorado
View GitHub Profile
@troyharvey
troyharvey / deployment.yml
Last active April 7, 2026 13:20
Using Kubernetes envFrom for environment variables
# Use envFrom to load Secrets and ConfigMaps into environment variables
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: mans-not-hot
labels:
app: mans-not-hot
spec:
replicas: 1
@mattd
mattd / face-time-party-snoozer.sh
Last active August 9, 2023 20:08
face-time-party-snoozer.sh
#!/bin/bash
sayings=(
"Okay"
"I understand"
"Sure, why not"
"Thanks for coming"
"Sounds good"
)
@bwhaley
bwhaley / gist:6471649
Last active July 22, 2019 23:40
Use this little script as EC2 User Data to install a Sumo Logic collector. Be sure to base64 encode it.
curl -o /tmp/sumo.sh https://collectors.sumologic.com/rest/download/linux/64
sh /tmp/sumo.sh -q -dir "/usr/local/SumoCollector"
/etc/init.d/collector stop
cat > /usr/local/SumoCollector/config/custom_sources.json << END
{
"api.version": "v1",
"sources": [
{
"sourceType": "LocalFile",
"name": "LocalAuth",