Skip to content

Instantly share code, notes, and snippets.

View justindag's full-sized avatar

Justin Dagostino justindag

View GitHub Profile
@justindag
justindag / circuit-breakers.md
Last active March 26, 2020 22:30
Circuit Breaker Discussion

Circuit Breakers

The Circuit Breaker

  • Sony's GoBreaker implementation
  • GoBreaker is easy to use
  • GoBreaker allows us more direct access to state, and the transitions to and from states
  • GoBreaker gives us the ability to fully customize circuit breaker trip conditions.
  • Go Hystrix was also evalutated, but proved to be more difficult to control and more difficult to examine state

Go Breaker Settings

@justindag
justindag / quizzes.go
Last active May 21, 2018 13:20
Cheney Go Quizzes
package main
import (
"fmt"
)
func main() {
const n = 7
var a = []uint{n:n}
fmt.Println(cap(a)) // prints: 8
@justindag
justindag / keybase.md
Created October 16, 2017 16:57
Keybase Verification

Keybase proof

I hereby claim:

  • I am justindag on github.
  • I am justindag (https://keybase.io/justindag) on keybase.
  • I have a public key ASDWDjMKgm9foBIKPawmKRdamB4VmSZqk7v2w0a0rWji-Ao

To claim this, I am signing this object:

@justindag
justindag / keybase.md
Created October 16, 2017 16:52
Keybase Verification

Keybase proof

I hereby claim:

  • I am justindag on github.
  • I am justindag (https://keybase.io/justindag) on keybase.
  • I have a public key ASDcXNFdkp6vXDLhwfBXUqtyy-waOg9PM5o4L-b3uEsMKwo

To claim this, I am signing this object:

@justindag
justindag / goexample_redux_meeting.md
Created November 11, 2016 20:51
PP Go-Example Redux Meeting Notes

#PP Gophers Meeting

##Agenda

  • Request for items
  • PP Go-Example Redux code walk-through
  • PP Go-Example Redux discussion
  • Next meeting lead

##PP Go-Example Redux

  • restate goals:
FROM centurylink/ca-certs
MAINTAINER Justin Dagostino
LABEL version="0.1" name="SuperService" description="Super as a Service"
WORKDIR /app
COPY ./etc/config/config.json /app/
COPY ./superservice /app/
ENTRYPOINT ["./superservice"]
@justindag
justindag / gosearch_bulk_index_grafana_panel.json
Created August 31, 2015 19:47
GoSearch Bulk Index Grafana Panel
{
"bars": true,
"y-axis": true,
"links": [],
"nullPointMode": "null as zero",
"y_formats": [
"ms",
"ms"
],
"linewidth": 3,
@justindag
justindag / go_runtime_stats_panel.json
Last active October 31, 2015 17:30
Grafana Go Runtime Stats Panel
{
"title": "Runtime Memory Stats",
"error": false,
"span": 5,
"editable": true,
"type": "graph",
"id": 8,
"datasource": null,
"renderer": "flot",
"x-axis": true,