Skip to content

Instantly share code, notes, and snippets.


Kayden Althen sharkySharks

View GitHub Profile
View inventory
rizo / Dockerfile
Last active Jan 27, 2021
Alpine (3.6) based docker image with Protocol Buffers compiler supporting Go.
View Dockerfile
# Protobuf Builder
# ================
# This image builds protocol buffers library from source with Go generation
# support. The builder and runner images are produced.
# Builder Image
# -------------
FROM golang:1.8.3-alpine3.6 as builder
lummie / enum.go
Last active May 2, 2021
Golang Enum pattern that can be serialized to json
View enum.go
package enum_example
import (
// TaskState represents the state of task, moving through Created, Running then Finished or Errorred
type TaskState int
miglen /
Last active Apr 28, 2021
Linux networking tools

List of Linux networking tools

netstat (ss)

Displays contents of /proc/net files. It works with the Linux Network Subsystem, it will tell you what the status of ports are ie. open, closed, waiting, masquerade connections. It will also display various other things. It has many different options. Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.

Sample output:

Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4       0      0        ESTABLISHED
mfdj /
Last active Jun 9, 2020
Bash script that uses openssl to generate a wildcard certificate suitable for use in a local testing environment: not vetted for a production/public internet purposes. Usage: `$ ./ yourdomain.local` — generates a private key, certificate request, and ssl certificate.
#!/usr/bin/env bash
if [ -z "$DOMAIN" ]; then
echo -n 'Enter root domain (no www): '
read input_d