Skip to content

Instantly share code, notes, and snippets.

View carlisia's full-sized avatar
:octocat:
🎉 ‼️ 🙋‍♀️ 😜 👀 🌟 🌈 ☀️ 💯

Carlisia Campos carlisia

:octocat:
🎉 ‼️ 🙋‍♀️ 😜 👀 🌟 🌈 ☀️ 💯
View GitHub Profile
git clone https://github.com/knative/serving.git
git clone https://github.com/knative/networking.git
git clone https://github.com/knative-sandbox/net-istio.git
git clone https://github.com/knative-sandbox/net-contour.git
git clone https://github.com/knative-sandbox/net-http01.git
git clone https://github.com/knative-sandbox/net-certmanager.git
git clone https://github.com/knative-sandbox/net-kourier.git
git clone https://github.com/knative-sandbox/net-gateway-api.git
@nrb
nrb / gke-install.sh
Last active September 20, 2018 18:30
A helper scrip to spin up GKE clusters
#!/usr/bin/env sh
# This script lives in ~/bin
# It mostly automates the instructions found on https://heptio.github.io/ark/v0.9.0/gcp-config, except that creating the bucket and service account has already been done.
# Source the variables since they're private information
# Defines $PROJECT, $CREDS_FILE, $SERVICE_ACCOUNT_EMAIL, and $BUCKET.
source ~/bin/gke-vars.sh
# Spin up a GKE cluster and get the credentials for kubeconfig
@joepie91
joepie91 / wildcard-certificates.md
Last active September 16, 2023 18:11
Why you probably shouldn't use a wildcard certificate

Recently, Let's Encrypt launched free wildcard certificates. While this is good news in and of itself, as it removes one of the last remaining reasons for expensive commercial certificates, I've unfortunately seen a lot of people dangerously misunderstand what wildcard certificates are for.

Therefore, in this brief post I'll explain why you probably shouldn't use a wildcard certificate, as it will put your security at risk.

A brief explainer

It's generally pretty poorly understood (and documented!) how TLS ("SSL") works, so let's go through a brief explanation of the parts that are important here.

The general (simplified) idea behind how real-world TLS deployments work, is that you:

# These filters are based on email that Tim Hockin sent to kubernetes-dev a
# while ago on how to bring some sanity to github notifications with Kubernetes.
#
# https://groups.google.com/forum/#!msg/kubernetes-dev/5qU8irU7_tE/aZov0LpCBwAJ
#
# This file can be processed with https://github.com/mesozoic/gmail-yaml-filters
# Mark all k8s email
- match:
any:
@campoy
campoy / settings.json
Created July 24, 2017 21:11
My vscode settings
{
"window.zoomLevel": 0,
"go.lintOnSave": "package",
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": false,
"workbench.iconTheme": "vs-seti",
"go.addTags": {
"tags": "json",
"options": "json=omitempty",
"promptForTags": true,
@mattetti
mattetti / go.json
Created April 7, 2016 22:20
VSCode custom settings - nothing fancy really
"test case": {
"prefix": "test",
"body": [
"func Test_$1(t *testing.T) {",
" testCases := []struct {",
" input string",
" output string",
" }{",
" {\"\",\"\"},",
" }",
@netbrain
netbrain / mazestring
Last active September 9, 2015 12:06
/*
Converts a maze to a string of the format:
▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜▛▀▜
▌· · ·▐▌· ·▐▌· · · · ·▐▌· · · ·▐▌·▐
▙ ▟▙▄▟▙ ▟▙ ▟▙ ▟▙ ▟▙ ▟▙▄▟▙▄▟▙ ▟▙▄▟▙ ▟▙▄▟▙ ▟▙ ▟
▛ ▜▛▀▜▛ ▜▛ ▜▛ ▜▛ ▜▛ ▜▛▀▜▛▀▜▛ ▜▛▀▜▛ ▜▛▀▜▛ ▜▛ ▜
▌· ·▐▌· ·▐▌· ·▐▌·▐▌· ·▐▌· ·▐▌· ·▐▌· ·▐
▙▄▟▙ ▟▙▄▟▙▄▟▙▄▟▙ ▟▙▄▟▙ ▟▙ ▟▙▄▟▙ ▟▙▄▟▙ ▟▙▄▟▙ ▟
▛▀▜▛ ▜▛▀▜▛▀▜▛▀▜▛ ▜▛▀▜▛ ▜▛ ▜▛▀▜▛ ▜▛▀▜▛ ▜▛▀▜▛ ▜
▌· ·▐▌· ·▐▌· ·▐▌· ·▐▌· ·▐▌· ·▐▌· ·▐▌·▐
@maryrosecook
maryrosecook / ...
Last active September 13, 2018 18:17
Reminders to myself to help me get better at programming. I don't always manage to do these things, but I try. Please feel free to add your own reminders to yourself in the comments below!
We couldn’t find that file to show.
package main
import (
"encoding/json"
"github.com/codegangsta/negroni"
"github.com/gorilla/mux"
"log"
"net/http"
"strconv"
)