Skip to content

Instantly share code, notes, and snippets.

View amaralhcarlos's full-sized avatar
🏠
Working from home

Carlos Henrique do Amaral amaralhcarlos

🏠
Working from home
View GitHub Profile
@rponte
rponte / using-uuid-as-pk.md
Last active March 10, 2025 16:29
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

@teocomi
teocomi / .gitignore
Created September 13, 2016 15:01
Gitignore for Unity projects
# =============== #
# Unity generated #
# =============== #
[Tt]emp/
[Oo]bj/
[Bb]uild
/[Bb]uilds/
/[Ll]ibrary/
sysinfo.txt
*.stackdump
@groundwalker
groundwalker / snmpwalk.go
Last active March 7, 2023 16:13
snmpwalk by golang!
package main
// usage: ./snmpwalk oid
//
// build: go build snmpwalk.go
//
// do like this
// snmpwalk -v 2c -c private 127.0.0.1 .1.3.6.1.4.1.2021.11
import (
@rponte
rponte / gist:1051135
Last active March 10, 2023 00:08
A test is not a unit test if
A test is not an unit test if:
* it talks to the database
* it communicates across the network
* it touches the file system
* it can’t run at the same time as any of your other unit tests
* you have to do special things to your environment (such as editing config files) to run it
Tests that do these things aren’t bad. Often they are worth writing, and they can be written in a unit test harness. However, it is important to keep them separate from true unit tests so that we can run the unit tests quickly whenever we make changes.
--
by Michael Feathers