Skip to content

Instantly share code, notes, and snippets.

@goshlanguage
goshlanguage / golang-tls.md
Created October 18, 2016 23:51 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
    
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
openssl ecparam -genkey -name secp384r1 -out server.key

Keybase proof

I hereby claim:

  • I am ryanhartje on github.
  • I am xoxodeadbeef (https://keybase.io/xoxodeadbeef) on keybase.
  • I have a public key ASCr0RbezG2lUnHobZMtgl2MBse-_JwoF7aw9lCInszy6wo

To claim this, I am signing this object:

@goshlanguage
goshlanguage / docker-compose.yaml
Last active August 9, 2019 00:25
Simple docker-compose for LEMP
version: "3"
services:
# Uncomment for DNS Server
# bind:
# image: resystit/bind9
# ports:
# - 53:53/udp
# restart: always
# volumes:

Keybase proof

I hereby claim:

  • I am goshlanguage on github.
  • I am xoxodeadbeef (https://keybase.io/xoxodeadbeef) on keybase.
  • I have a public key ASC24FhW5wuBzEn6QQcDpZGcHlLezvCgUwGY9V6U_i2Wxwo

To claim this, I am signing this object:

@goshlanguage
goshlanguage / kubernetes-real-quick.md
Last active April 16, 2021 18:11
Kubernetes Quickstart

Kubernetes

Kubernetes is a container orchestrator driven by a robust API. It is known for being the basis of resilient systems, "bin packing" or more efficiently colocating workloads to efficiently use system resources, and being extensible.

It does so at the cost of having somewhat of a barrier of entry. This guide will assume some level of familiarity with containers, apis, and some tooling. Feel free to leave comments for clarification.

Command Line Tools

@goshlanguage
goshlanguage / fun.asm
Last active March 9, 2022 02:06
A fun typo in C.
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 12, 0 sdk_version 12, 1
.intel_syntax noprefix
.globl _main ## -- Begin function main
.p2align 4, 0x90
_main: ## @main
.cfi_startproc
## %bb.0:
push rbp
.cfi_def_cfa_offset 16