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

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

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 August 13, 2019 15:21
Cloud Provider Resource Labeling

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 July 19, 2019 12:13
Reveal.JS download script
#!/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/{}"
* Trying ::1...
* TCP_NODELAY set
* Connection failed
* connect to ::1 port 8080 failed: Connection refused
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /server.php HTTP/1.1
Host: localhost:8080
User-Agent: GuzzleHttp/6.3.0 curl/7.54.0 PHP/5.6.30
1. Open the Firefox advanced preferences at `about:config`.
2. Search for "webauth"
3. Enable (value=True) these two:
- security.webauth.u2f
- security.webauth.webauthn_enable_usbtoken
@sagikazarmark
sagikazarmark / install-grpc-php-on-mac.sh
Last active February 11, 2024 19:29
Install the gRPC PHP plugin
# Install the gRPC PHP plugin on Mac
#
# See: http://www.grpc.io/docs/quickstart/php.html#install-protobuf-plugin
# Source: https://gist.github.com/johndpope/503029706ed56d5375d1e9469f0135d4
# Install build dependencies
brew install automake libtool
## Clone gRPC repo
git clone --recursive -b v1.4.x https://github.com/grpc/grpc
@sagikazarmark
sagikazarmark / Makefile
Last active April 20, 2017 22:29
Makefile with Docker support
DOCKER_IMAGE = your/image
.PHONY = target target2 docker
target:
# Do something here
target2:
# Do something here
@sagikazarmark
sagikazarmark / docker-compose.sh
Created January 24, 2017 23:04
Docker Compose Travis installer
#!/bin/bash
#
# Travis script to install latest Docker Compose
# See: http://elliot.land/post/using-docker-compose-on-travis-ci
#
sudo apt-get update
sudo apt-get install -o Dpkg::Options::="--force-confold" --force-yes -y docker-engine
docker-compose --version
sudo rm /usr/local/bin/docker-compose