Skip to content

Instantly share code, notes, and snippets.

Márk Sági-Kazár sagikazarmark

Block or report user

Report or block sagikazarmark

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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/{}"
View guzzle#2018
* 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
View gist:85fbd1249967a8620495c1ebee9e07d9
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 Feb 11, 2020
Install the gRPC PHP plugin
View install-grpc-php-on-mac.sh
# 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 Apr 20, 2017
Makefile with Docker support
View Makefile
DOCKER_IMAGE = your/image
.PHONY = target target2 docker
target:
# Do something here
target2:
# Do something here
@sagikazarmark
sagikazarmark / docker-compose.sh
Created Jan 24, 2017
Docker Compose Travis installer
View docker-compose.sh
#!/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
@sagikazarmark
sagikazarmark / liquibase.sh
Created Jan 23, 2017
Liquibase installer
View liquibase.sh
#!/bin/sh
#
# Travis script for installing Liquibase
# http://www.liquibase.org
#
if [ ! -d "$1" -o ! -d "$2" ]; then
echo "The installation and/or binary directory does not exists" 1>&2
exit 1
fi
You can’t perform that action at this time.