- XDebug v3+ inside Docker (e.g. php:7.3-apache Docker image)
- Running Docker v20.10+
- VSCode with PHP Debug Extension (Felix Becker)
- Using Docker Compose for orchestration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex | |
export TEST_CLUSTER_NAME=quick-test | |
export CERT_MANAGER_VERSION=v1.3.1 | |
export KIND_IMAGE=kindest/node:v1.20.2 | |
# Create test cluster | |
echo "Creating test cluster..." | |
kind create cluster --name="$TEST_CLUSTER_NAME" --image="$KIND_IMAGE" | |
until kubectl --timeout=120s wait --for=condition=Ready pods --all --namespace kube-system; do sleep 1; done |
.env
file for me sparing me the need to pollute my session with environment variables.
I've been using Fish shell for years which is great and all, but one thing that has got me frustrated is using it with .env
files.
When attempting to run source .env
in a project, I usually encounter this problem:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
or 1=1 | |
or 1=1-- | |
or 1=1# | |
or 1=1/* | |
admin' -- | |
admin' # | |
admin'/* | |
admin' or '1'='1 | |
admin' or '1'='1'-- | |
admin' or '1'='1'# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Serialize all form data into a JSON string. | |
* https://gist.github.com/kieranbarker/98f8dadbf824236e42820419b1da58eb | |
* @param {HTMLFormElement} form The form to serialize. | |
* @returns {string} The serialized form data. | |
*/ | |
function serializeJSON (form) { | |
// Create a new FormData object | |
const formData = new FormData(form); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2020 Sendanor. All rights reserved. | |
import Ansible, {AnsibleTask as Task} from "../utils/Ansible"; | |
import Build from "../utils/Build"; | |
import Tag from "../types/Tag"; | |
import Play from "../types/Play"; | |
import {FileTaskState} from "../types/FileTask"; | |
enum InstallWpVariable { |
Trabalha com Terraform?
Costuma reforçar o uso de terraform fmt
nos Pull Requests do seu time?
Cansou de validar se os arquivos do Pull Request seguem corretamenta a sintaxe?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load_module "modules/ngx_http_perl_module.so"; | |
http { | |
perl_modules perl/lib; | |
perl_set $jwt_value "sub { | |
use strict; | |
use warnings; | |
my $r = shift; | |
my $jwt = $r->header_in('Authorization'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4-fpm-alpine | |
WORKDIR /var/www/html | |
# Setup GD extension | |
RUN apk add --no-cache \ | |
freetype \ | |
libjpeg-turbo \ | |
libpng \ | |
freetype-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" TODO: split up config into multiple files | |
" source $HOME/.config/nvim/vim-plug/plugins.vim | |
" source $HOME/.config/nvim/<category>/<sub-category-filename>.vim | |
" source $HOME/.config/nvim/<plug-config>/<plugin-name>.vim | |
set nocompatible | |
filetype off | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs |