Skip to content

Instantly share code, notes, and snippets.

View onovaes's full-sized avatar

Gabriel Novaes onovaes

View GitHub Profile
@renizgo
renizgo / default.vcl
Created October 3, 2017 14:13
Varnish VCL 4 - With Cookies Languages
vcl 4.0;
import std;
import directors;
# probe health {
# # Url de consulta, padrao eh "/"
# # .url = "/";
# # Especifica uma requisicao completa de HTTP usando multiplas strings
# .request =
# "HEAD / HTTP/1.1"
# "Host: homolog.opac.scielo.org"
@dtiemann83
dtiemann83 / gitautotag.sh
Last active June 12, 2023 13:58
A quick BASH script to automatically add a git tag by incrementing --major --minor --bug version, based on (most recent) previous tag.
#!/bin/bash
CURTAG=`git describe --abbrev=0 --tags`;
CURTAG="${CURTAG/v/}"
IFS='.' read -a vers <<< "$CURTAG"
MAJ=${vers[0]}
MIN=${vers[1]}
BUG=${vers[2]}
@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active July 19, 2024 16:11
tmux Cheat Sheet