Skip to content

Instantly share code, notes, and snippets.

View jsteenb2's full-sized avatar

Johnny Steenbergen jsteenb2

  • CrowdStrike
  • Thousand Oaks, CA
View GitHub Profile
@jsteenb2
jsteenb2 / go_learning_rubric.md
Last active November 7, 2024 18:13
Go Learning Rubric

Go Learning Rubric

This rubric will be a fanciful place for sharing really excellent content. This content is a list of high quality resources that have stood tall. However, it is not meant to be exhaustive. There is much to learn beyond here! Let's dig in.

LEGEND:

  • 🎥 - video
  • 💾 - source code
  • 📕 - book
  • 📑 - blog
@jsteenb2
jsteenb2 / systems_thinking.md
Last active May 14, 2024 22:09
Systems Thinking resources

Systems Thinking - go beyond the JIRA ticket

Systems thinking has been the single most impactful topic I've ever endured. It has changed the way I view the world, not just my job. This is a detailing of some of the best ways to start learning systems thinking. My perspective is that of an engineer and someone who obsesses over problem solving in its most general form. I suggest starting with the Primer by Dr. Ackoff. From there explore as you must. Its ordered in level of depth and understanding, but feel free to bounce around as you see fit.

  1. Primer - If Russ Ackoff had given a TED talk
    • Dr. Ackoff is quite the story teller! You'll see him listed quite a bit here
  2. Thinking in Systems - By Dr. Meadows
    • a gentle intro to systems thinking from Dr. Meadows, an incredible teacher ❤️
  • a summarized video format given by Dr. Meadows can be found [here](https://www.yo
{ "date": "11-07-22", "rates": { "USD": "1.0163", "JPY": "138.05", "BGN": "1.9558", "CZK": "24.614", "DKK": "7.4424", "GBP": "0.84585", "HUF": "402.45", "PLN": "4.7630", "RON": "4.9431", "SEK": "10.6665", "CHF": "0.9913", "ISK": "139.50", "NOK": "10.2630", "HRK": "7.5190", "TRY": "17.6026", "AUD": "1.4871", "BRL": "5.4345", "CAD": "1.3201", "CNY": "6.8095", "HKD": "7.9769", "IDR": "15210.73", "ILS": "3.5325", "INR": "80.5280", "KRW": "1321.61", "MXN": "20.8477", "MYR": "4.4992", "NZD": "1.6464", "PHP": "56.882", "SGD": "1.4228", "THB": "36.602", "ZAR": "17.1922" }}
@jsteenb2
jsteenb2 / mempool.go
Last active July 16, 2022 19:43
Tendermint Mempool Example
package mempool
import (
"context"
"fmt"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/types"
)
@jsteenb2
jsteenb2 / cobra_completions.go
Last active November 29, 2021 23:39
Add shell completions to your cobra CLI with ease
func completionCmd(cliName string) *cobra.Command {
return &cobra.Command{
Use: "completion [bash|fish|oh-my-zsh|powershell|zsh]",
Short: "Generates shell completions",
Args: cobra.ExactValidArgs(1),
ValidArgs: []string{"bash", "fish", "oh-my-zsh", "zsh", "powershell"},
DisableFlagsInUseLine: true,
Long: fmt.Sprintf(`
Outputs shell completion for the given shell (bash, fish, oh-my-zsh, or zsh)
OS X:
@jsteenb2
jsteenb2 / helpers.sh
Created August 17, 2020 18:10
helper dotfile
alias srcz='source ~/.zshrc'
alias vimz='vim ~/.zshrc'
alias gitcop='git co master && git fap && git pull'
alias ggui='git gui'
alias poof='git poof'
whoseport () {
lsof -i ":$1" | grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn} LISTEN
}
@jsteenb2
jsteenb2 / meta.yml
Last active August 6, 2020 19:33
view of multiple installations
project-name: downsampling
templates:
- template_file: buckets.yml
- template_file: dashboard.yml
- template_file: monitoring_task.yml
- template_file: all_inputs/downsampling_tasks.yml
- template_file: all_inputs/telegraf.yml
- template_file: default_inputs/downsampling_tasks.yml
- template_file: default_inputs/telegraf.yml
- template_file: internal_inputs/downsampling_tasks.yml
@jsteenb2
jsteenb2 / pkger_stack_use_cases.md
Last active March 24, 2020 23:36
Description of Pkger Stacks

Pkger: the What and How

Responsibilities

  • Translating a declarative package file (either JSON | Yaml | Jsonnet) into resources in the platform
  • Exporting existing resources in the form of a pkg (either JSON | Yaml)
  • Managing the state of a pkg's side effects via a stack

Anatomy of a package

@jsteenb2
jsteenb2 / shrink.sh
Created February 16, 2020 04:49
shell script to run ffmpeg on screencast vids macos
shrink () {
FILE=$(basename -- "$1")
local mp4="${FILE%%.*}.mp4"
docker run -v $HOME/Desktop:/import jrottenberg/ffmpeg:3.3-alpine -i /import/$FILE /import/mp4ed/$mp4
}
@jsteenb2
jsteenb2 / rate.flux
Created February 12, 2020 20:14
reusable rate func for flux
v1Measurement = (tables=<-, measurement) =>
tables
|> filter(fn: (r) => r._measurement == measurement)
v1Fields = (tables=<-, fields=[]) =>
if length(arr: fields) == 0 then
tables
else