Skip to content

Instantly share code, notes, and snippets.

View sagikazarmark's full-sized avatar

Márk Sági-Kazár sagikazarmark

View GitHub Profile
sagikazarmark / input.yaml
Last active September 30, 2023 12:00
Generating and ingesting sample data with Benthos
View input.yaml
interval: "50ms" # Generate an event every 50ms
mapping: |
let max_subjects = 100
let event_type = "api-calls"
let source = "api-gateway"
let methods = ["GET", "POST"]
let paths = ["/", "/about", "/contact", "/pricing", "/docs"]
sagikazarmark /
Last active December 6, 2022 15:16
List all repositories on DockerHub

List all repositories on DockerHub

Go to DockerHub, specifically the repository list page.

The easiest way to grab repositories is by sending HTTP requests from the Network page of your inspector.

Look for a request URL like this:

Edit and resend the request (or choose any other way you see fit) to download lists. The results are paginated, so you will have to adjust the page query variable.

sagikazarmark / goci.yaml
Last active November 10, 2022 17:34
Go CI config
View goci.yaml
# Go version?
# Custom container image?
# Execute: goci build
# Runs: Go build
- package: ./cmd/main
output: ./build/ # Write back to filesystem?
sagikazarmark /
Last active December 23, 2021 12:59
Curiefense nginx ingress install

Install Curiefense with NGINX Ingress


  • Kubernetes cluster (I have one running on AWS)
  • Bucket (I'll use S3)

Note: the Kubernetes cluster should be large enough to run all dependencies (including ElasticSearch).

Prepare a bucket

sagikazarmark /
Last active August 26, 2021 22:58
2021-08-26 Banzai Cloud Helm Chart repository incident postmortem
sagikazarmark / folder-icons.css
Created July 15, 2021 19:48
Obsidian folder icons
View folder-icons.css
.nav-folder-title[data-path="archive"] .nav-folder-title-content::before {
content: "🗄️ ";
.nav-folder-title[data-path="areas"] .nav-folder-title-content::before,
.nav-folder-title[data-path="archive/areas"] .nav-folder-title-content::before {
content: "🗂️ ";
sagikazarmark / integration_test.go
Created April 2, 2021 17:48
Go integration tests
View integration_test.go
package main
func TestIntegration(t *testing.T) {
if m := flag.Lookup("").Value.String(); m == "" || !regexp.MustCompile(m).MatchString(t.Name()) {
t.Skip("skipping integration test as execution was not requested explicitly using go test -run")
t.Run("testCase", testCase)
sagikazarmark / docker.yaml
Last active November 30, 2022 14:14
GitHub Actions Docker build complete workflow
View docker.yaml
name: Docker
- master
- v[0-9]+.[0-9]+.[0-9]+

Keybase proof

I hereby claim:

  • I am sagikazarmark on github.
  • I am sagikazarmark ( on keybase.
  • I have a public key ASCe_skDeZVww0VlWbWIoQm1U5OhT-0AqFCM4a9NKa9ZmAo

To claim this, I am signing this object:

sagikazarmark /
Last active August 28, 2019 02:28
GitHub Actions issues

GitHub Actions issues

Use Case: Publish Docker image to Docker registry

As a project owner I would like to publish Docker images in the GitHub Docker registry

When certain refs are pushed to the repository:

  • master branch
  • new tag