Skip to content

Instantly share code, notes, and snippets.

View kzap's full-sized avatar
Working from home

Andre Marcelo-Tanner kzap

Working from home
View GitHub Profile
kzap / dashboard.json
Created April 29, 2020 08:04
Grafana K8s Resources CPU w/ Throttle Dashboard
"annotations": {
"list": [
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
kzap / Dockerfile
Created April 22, 2019 13:37
PHP Apache Base Dockerfile
FROM php:7.1-apache
MAINTAINER Andre Marcelo-Tanner <>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y \
git \
wget \
lsb-release \
kzap /
Last active October 23, 2018 04:15
CircleCI Force Run a Workflow via the API
PROVIDER=github # or bitbucket
echo "Create a token at and export it as CIRCLECI_TOKEN."
exit 1
kzap / .env
Created August 8, 2018 11:43
Connect to Xdebug running inside your PHP Container by building an image with Xdebug installed and running like this: `docker-compose -f docker-compose.xdebug.yml up`. Then the PHP inside your editor will connect to Xdebug running in your editor.
kzap / .env
Created August 8, 2018 11:41
Connect to XDebug running inside your PHP Container by building an image with XDebug installed and running like this: ```shdocker-compose -f docker-compose.yml -f docker-compose.xdebug.yml up
kzap /
Created June 20, 2018 14:39
How to clean up logs when running MHA on a Master Replica MySQL Setup
# On Master Server purge binary logs up to latest log file
PURGE BINARY LOGS TO 'mysql-bin.010';
# On Slave Servers, clear relay logs
SET GLOBAL relay_log_purge=1;
# wait for relay logs to get deleted
SET GLOBAL relay_log_purge=0;
kzap / docker-compose-sample.yml
Last active March 24, 2018 08:30
Sample Docker Compose V3 File for Docker Stack from the official docs:
version: "3"
image: redis:alpine
- "6379"
- frontend
kzap /
Last active December 8, 2017 13:01
Galleon Tech Culture

Galleon.PH Culture

Galleon.PH is a e-commerce logistics company that enables Filipinos to buy any product from anywhere in the world.

We foster a culture that enables its developers to grow and flourish.

Everyone is Responsible

  • All developers are treated like adults and are responsible for the code they write.

Keybase proof

I hereby claim:

  • I am kzap on github.
  • I am kzap ( on keybase.
  • I have a public key ASDoqnmlxM7JdIPjl7kUb4EbSLl_Q9huvqAWobU60SVavAo

To claim this, I am signing this object:

kzap /
Last active April 20, 2017 19:23
Show Git Commits Across All Branches By Dates in Reverse Order (By Author Date)
# show author date and grep matching dates
git log --pretty=format:"%C(yellow)%h%Creset%C(cyan)%C(bold)%d%Creset %C(cyan)(%cr|%ai)%Creset %C(green)%aE%Creset %s" \
--all --no-merges --reverse --author="Andre" | grep -E "2017-01-(0[1-9]|1[0-9]|2[0-9]|3[0-1])"