Skip to content

Instantly share code, notes, and snippets.

View zachomedia's full-sized avatar

Zachary Seguin zachomedia

View GitHub Profile
diff --git a/hack/tools/go.mod b/hack/tools/go.mod
index 3ed02f823..52ca1cacc 100644
--- a/hack/tools/go.mod
+++ b/hack/tools/go.mod
@@ -11,6 +11,7 @@ require (
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7 // indirect
github.com/golang/mock v1.2.0
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
+ github.com/mattn/goveralls v0.0.8 // indirect
github.com/mitchellh/gox v1.0.1
@zachomedia
zachomedia / aks-engine.diff
Last active April 21, 2021 20:15
AKS-Engine Patches
diff --git a/parts/k8s/addons/azure-network-policy.yaml b/parts/k8s/addons/azure-network-policy.yaml
index 065e541ca..c86364366 100644
--- a/parts/k8s/addons/azure-network-policy.yaml
+++ b/parts/k8s/addons/azure-network-policy.yaml
@@ -75,10 +75,15 @@ spec:
spec:
priorityClassName: system-node-critical
tolerations:
+ - operator: "Exists"
+ effect: NoExecute
@zachomedia
zachomedia / admin-ds.yaml
Created August 23, 2020 18:08
Kubernetes Node Shell
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: sh
namespace: kube-system
spec:
selector:
matchLabels:
app: sh
template:
// Based on https://codegists.com/snippet/javascript/indexjs_aljs_javascript
// (found from https://forums.developer.apple.com/thread/103790)
// npm install jsonwebtoken
"use strict";
const fs = require("fs");
const jwt = require("jsonwebtoken");
❯ curl -v4 https://external.fyyc1-1.fna.fbcdn.net
* Rebuilt URL to: https://external.fyyc1-1.fna.fbcdn.net/
* Trying 209.148.161.81...
* TCP_NODELAY set
* Connected to external.fyyc1-1.fna.fbcdn.net (209.148.161.81) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.fyyc1-1.fna.fbcdn.net
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
> GET / HTTP/1.1
@zachomedia
zachomedia / JOptionPaneExample.java
Last active December 1, 2018 21:52
Example demonstrating how to get the return value from a confirm dialog.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class JOptionPaneExample
{
public static void main(String [] args)
{
int returnValue = 0;
returnValue = JOptionPane.showConfirmDialog(null, "Are you sure you want to exit?", "Are you sure?", JOptionPane.YES_NO_OPTION);
@zachomedia
zachomedia / JTableTest.java
Created June 7, 2012 02:37
A small application demonstrating JTable.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
* A sample application showing a JTable.
*
* @author Zachary Seguin
* @version 1.0 (6/6/2012)
*/