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
sagikazarmark / input.yaml
Last active September 30, 2023 12:00
Generating and ingesting sample data with Benthos
View input.yaml
input:
generate:
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
sagikazarmark / README.md
Last active December 6, 2022 15:16
List all repositories on DockerHub
View README.md

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: https://hub.docker.com/v2/repositories/ORGNAME/?page_size=25&page=1&ordering=last_updated

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
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
builds:
# CLI
- package: ./cmd/main
output: ./build/ # Write back to filesystem?
@sagikazarmark
sagikazarmark / curiefense-nginx-ingress-install.md
Last active December 23, 2021 12:59
Curiefense nginx ingress install
View curiefense-nginx-ingress-install.md

Install Curiefense with NGINX Ingress

Prerequisites

  • 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
sagikazarmark / 2021-08-26-banzai-cloud-helm-chart-repository-incident-postmortem.md
Last active August 26, 2021 22:58
2021-08-26 Banzai Cloud Helm Chart repository incident postmortem
View 2021-08-26-banzai-cloud-helm-chart-repository-incident-postmortem.md
@sagikazarmark
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: "🗄️ ";
font-size:1.3em;
}
.nav-folder-title[data-path="areas"] .nav-folder-title-content::before,
.nav-folder-title[data-path="archive/areas"] .nav-folder-title-content::before {
content: "🗂️ ";
font-size:1.3em;
}
@sagikazarmark
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("test.run").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
sagikazarmark / docker.yaml
Last active November 30, 2022 14:14
GitHub Actions Docker build complete workflow
View docker.yaml
name: Docker
on:
push:
branches:
- master
tags:
- v[0-9]+.[0-9]+.[0-9]+
pull_request:
View keybase.md

Keybase proof

I hereby claim:

  • I am sagikazarmark on github.
  • I am sagikazarmark (https://keybase.io/sagikazarmark) on keybase.
  • I have a public key ASCe_skDeZVww0VlWbWIoQm1U5OhT-0AqFCM4a9NKa9ZmAo

To claim this, I am signing this object:

@sagikazarmark
sagikazarmark / issues.md
Last active August 28, 2019 02:28
GitHub Actions issues
View issues.md

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