Skip to content

Instantly share code, notes, and snippets.

View jonathanbeber's full-sized avatar

Jonathan Juares Beber jonathanbeber

View GitHub Profile
@jonathanbeber
jonathanbeber / main.go
Last active April 24, 2020 17:00
Playing around with shell and its file descriptors
package main
import "os"
func main() {
my_file := os.NewFile(5, "doesn't matter!")
my_file.Write([]byte("hallo =)\n"))
}

Keybase proof

I hereby claim:

  • I am jonathanbeber on github.
  • I am jonathanbeber (https://keybase.io/jonathanbeber) on keybase.
  • I have a public key ASAhlRvn7e61oXRc-6EdxaYHUIp8usHWC0p6S0nyYnYf2go

To claim this, I am signing this object:

@jonathanbeber
jonathanbeber / debug-deployment.yaml
Last active August 13, 2021 10:03
SMI traffic split with Linkerd2. Resources used on https://jonathanbeber.github.io/post/smi-traffic-split/
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: debug
name: debug
spec:
replicas: 1
selector:
matchLabels:
@jonathanbeber
jonathanbeber / api_test.diff
Created July 11, 2019 15:07
api_test.diff
diff --git a/controller/k8s/api_test.go b/controller/k8s/api_test.go
index 49ce74f2..a917a204 100644
--- a/controller/k8s/api_test.go
+++ b/controller/k8s/api_test.go
@@ -878,11 +878,12 @@ status:
if err != exp.err {
t.Fatalf("api.GetPodsFor() unexpected error, expected [%s] got: [%s]", exp.err, err)
}
-
- sort.Sort(podByUID(pods))