Skip to content

Instantly share code, notes, and snippets.

View apolzek's full-sized avatar

Vinícius Batista apolzek

View GitHub Profile
@apolzek
apolzek / LazyVIM.md
Created June 18, 2024 01:23 — forked from danielkec/LazyVIM.md
LazyVIM

Default shortcuts

Ctrl+h        select file tree
Ctrl+l        select file editor
Shift+h       left editor tab
Shift+l       right editor tab
Alt+j         move current line up
Alt+k         move current line down
double space  filename search(telescope) - `Ctrl+d` and `Ctrl+u` to scroll preview
@apolzek
apolzek / grafana-postgres-datasource.yml
Created February 13, 2024 18:51 — forked from wwerner/grafana-postgres-datasource.yml
Example grafana datasource provisioning for postgreSQL
apiVersion: 1
datasources:
- name: Postgres
type: postgres
url: localhost:5432
database: grafana
user: grafana
secureJsonData:
password: "Password!"
@apolzek
apolzek / using-uuid-as-pk.md
Created February 5, 2024 09:22 — forked from rponte/using-uuid-as-pk.md
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

@apolzek
apolzek / server.py
Created November 5, 2021 19:39 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):
@apolzek
apolzek / Makefile
Last active July 15, 2021 11:29 — forked from gomex/Makefile
Makefile example
# import env config
cnf ?= .env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# Get the latest tag
TAG=$(shell git describe --tags --abbrev=0)
GIT_COMMIT=$(shell git log -1 --format=%h)
@apolzek
apolzek / docker-compose.yml
Last active June 5, 2023 18:07 — forked from pantsel/docker-compose.yml
COMPOSE - Kong, Postgres and Konga
version: "3"
networks:
kong-net:
driver: bridge
services:
#######################################
# Postgres: The database used by Kong