Skip to content

Instantly share code, notes, and snippets.

View LeandroBarral's full-sized avatar
🎯
Focusing

Leandro Barral LeandroBarral

🎯
Focusing
View GitHub Profile
@LeandroBarral
LeandroBarral / .gitconfig
Last active June 20, 2021 17:08
gitconfig
[alias]
sts = status -s
st = !git fetch && git status
cm = commit
co = checkout
am = commit --amend --no-edit
w = whatchanged
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%C(62)\\ [%cn]\\ %ce" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%C(62)\\ [%cn]\\ %ce" --decorate --numstat
cls = clean -xdf
@LeandroBarral
LeandroBarral / SqlCacheFree
Created January 29, 2016 13:15
Run SQL query without cache
DBCC FREESYSTEMCACHE('All')
DBCC FREESESSIONCACHE
DBCC FREEPROCCACHE
DBCC DROPCLEANBUFFERS
--select ... from ... join ... where ... order by ...
OPTION (RECOMPILE)
@LeandroBarral
LeandroBarral / docker-compose.yml
Created May 1, 2020 15:04
Medium: Traefik 2 - Setup Reverse Proxy with Let's Encrypt and Cloudflare Support
version: '3'
services:
traefik-reverse-proxy:
container_name: traefik
image: traefik:v2.2.1
command:
- --api=true
- --api.dashboard=true
- --entrypoints.web.address=:80
@LeandroBarral
LeandroBarral / gist:f62bb92739b1f51985572d2594392fe9
Created June 20, 2021 17:05
cleanup local merged branches
git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d