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
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
DOCKER_HOST_IP=IP.OF.YOUR.HOST.MACHINE.FROM.INSIDE.DOCKER
@kzap
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.
DOCKER_HOST_IP=IP.OF.YOUR.HOST.MACHINE.FROM.INSIDE.DOCKER
@kzap
kzap / circleci-trigger.sh
Last active October 23, 2018 04:15
CircleCI Force Run a Workflow via the API
#!/bin/bash
# FROM https://discuss.circleci.com/t/github-outage-on-21-october-2018/25903/8
PROVIDER=github # or bitbucket
ORG=my-project-org-or-user
PROJECT=my-project-name
if [ -z $CIRCLECI_TOKEN ]
then
echo "Create a token at https://circleci.com/account/api and export it as CIRCLECI_TOKEN."
exit 1
@kzap
kzap / Dockerfile
Created April 22, 2019 13:37
PHP Apache Base Dockerfile
FROM php:7.1-apache
MAINTAINER Andre Marcelo-Tanner <andre@examine.com>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y \
git \
wget \
lsb-release \
@kzap
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",