Skip to content

Instantly share code, notes, and snippets.

Avatar

Márk Sági-Kazár sagikazarmark

View GitHub Profile
@sagikazarmark
sagikazarmark / curiefense-nginx-ingress-install.md
Last active Dec 23, 2021
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 Aug 26, 2021
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 Jul 15, 2021
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;
}
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 Aug 18, 2021
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 Aug 28, 2019
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
@sagikazarmark
sagikazarmark / cloud-provider-resource-labeling.md
Last active Aug 13, 2019
Cloud Provider Resource Labeling
View cloud-provider-resource-labeling.md

Cloud Provider Resource Labeling

Provider Maximum number Maximum key length Maximum value length Key regex
AWS 50 128 256 ^(?!aws:)[\+\-=\._:\/\@\ a-zA-Z0-9]{1,128}$1
Google Cloud 64 63 63 ^[a-z][-_a-z0-9]{1,62}$
Azure 50 512 256 ^[^<>%&\\\?\/]{1,512}$
@sagikazarmark
sagikazarmark / reval.sh
Created Jul 19, 2019
Reveal.JS download script
View reval.sh
#!/bin/bash
set -e
REVEAL_VERSION="${REVEAL_VERSION:-3.8.0}"
REVEAL_DIR="${REVEAL_DIR:-reveal}"
curl -s "https://api.cdnjs.com/libraries/reveal.js" | jq -r ".assets | .[] | select(.version == \"${REVEAL_VERSION}\") | .files | .[]" | xargs -I {} dirname {} | uniq | xargs -I {} mkdir -p "${REVEAL_DIR}/{}"
curl -s "https://api.cdnjs.com/libraries/reveal.js" | jq -r ".assets | .[] | select(.version == \"${REVEAL_VERSION}\") | .files | .[]" | xargs -I {} curl -qs -o "${REVEAL_DIR}/{}" "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.8.0/{}"