Skip to content

Instantly share code, notes, and snippets.

View JohnRoesler's full-sized avatar
💭
want to talk? send me an email!

John Roesler JohnRoesler

💭
want to talk? send me an email!
View GitHub Profile
@JohnRoesler
JohnRoesler / bench.go
Created November 11, 2023 21:06
Benchmark unhandled error vs. ignored explicitly in defer
package local
import "fmt"
func returnsError() error {
return fmt.Errorf("error")
}
func unhandledError() {
defer returnsError()
version: "2"
services:
# Jaeger
jaeger-all-in-one:
image: jaegertracing/all-in-one:latest
restart: always
ports:
- "16686:16686"
- "14268"
@JohnRoesler
JohnRoesler / Intellij Golang formatting.md
Last active February 3, 2022 22:35
Setup Intellij with automatic Golang formatting

Single Project

Install the File Watchers plugin

image

Configure format and imports

Select go fmt and goimports from the + drop down

@JohnRoesler
JohnRoesler / supermarket_release.md
Last active February 18, 2019 21:28
How to release cookbooks

So, you want to release a cookbook

First things first, you need to be a collaborator on the cookbook in the supermarket for which you wish to release

Basic setup

  • Have an account setup on https://supermarket.chef.io
  • Have the pem key associated with your supermarket account saved locally (if you are just setting up, it will output the pem for you)
  • stove installed
@JohnRoesler
JohnRoesler / 1_New Computer Setup.md
Last active February 8, 2024 17:03
New Computer Setup

This is my gist for storing all the things I like to have installed when I setup a new computer. Maybe some day I'll make it into a script...maybe!

@JohnRoesler
JohnRoesler / keybase.md
Last active October 14, 2019 19:55
keybase.md

Keybase proof

I hereby claim:

  • I am johnroesler on github.
  • I am johnroesler (https://keybase.io/johnroesler) on keybase.
  • I have a public key ASBKhL5UFNTyRmP5eLd-k5zgnjBoCD1W9hihQMHincaawAo

To claim this, I am signing this object: