Skip to content

Instantly share code, notes, and snippets.

View cesarmarinhorj's full-sized avatar

Cesar Marinho cesarmarinhorj

View GitHub Profile
@phanlyhuynh
phanlyhuynh / gist:e07c4933421380779e8ac8def2268c7c
Last active October 16, 2020 20:50
Error System limit for number of file watchers reached
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

[WIP]Juliana Dias Rules

Algumas frases com pensamentos que me guiam no desenvolvimento de software

1 - Se está difícil, provavelmente tem algo errado, o código deveria ser mais fácil de codificado e lido.
2 - Você é seu melhor termômetro, se algo não te agrada é provável que precise refatorar, tal qual o item 1.
3 - Se o erro não faz sentido, provavelmente é algum typo, refaça todos os passos com bastante atenção.
4 - Tenha preferência em fazer funcionar com um código com a maior qualidade possível dentro do prazo dado, tendo feito um código que funcione, refatore (siga o TDD e o Make it works, Make it Beauty).
5 - É tudo sobre responsabilidades, clareza e objetividade, isso é orientação a objetos, isso é SOLID.
6 - Testes foram feitos para quebrar, isso é que te dá segurança sobre o que você está desenvolvendo. Se o teste não falha com a sua alteração no código, pode ser que o teste não esteja testando o que deve.
7 - O código é apenas um sintoma, um reflexo de você e ou ambiente em que

@Teguh010
Teguh010 / crud-table-editing-quasar.markdown
Created November 1, 2019 06:10
Crud Table Editing Quasar
@denizssch
denizssch / XpSerials.txt
Created July 21, 2019 00:13
Windows XP ALL Serial Keys :) (For testing purpose [Ex: VM or PenTest])
FCKGW-RHQQ2-YXRKT-8TG6W-2B7Q8
Windows XP PRO Corporate serial number S/N: Key: MQPWW-PGVKX-YPMKG-8DH3G-KC8PW
windows xp home edition serial number S/N: 034634-262024-171505-828316-729010-413531-800424-400442
Windows XP 64 serial number S/N: B2RBK-7KPT9-4JP6X-QQFWM-PJD6G
Windows XP serial number S/N: K6C2K-KY62K-DQR84-RD4QV-QB74Q
Windows XP Professional 64-bit Corporate Edition 5.2.3790.1830 serial number S/N: VCFQD-V9FX9-46WVH-K3CD4-4J3JM
Microsoft Windows XP Professional SP2 serial number S/N: YY8F2-3CKVQ-RKTRG-6JMDR-9DTG6
Windows XP Professional Service Pack 1 sp1 serial number S/N: F46YY - 2R8VQ - R8GMY - 926VK - 6BQ73
Windows XP Pro serial number S/N: KBWR7-76BD8-J7MDQ-KKG&C-V9Q2J
@ryanatkn
ryanatkn / tsconfig.json
Last active October 26, 2024 21:45
A TypeScript 3.5 tsconfig.json with all options organized and with documentation comments
{
// Commented-out options have their default values.
"include": ["src/**/*"],
"exclude": ["node_modules/*"],
// "files": [], // A list of relative or absolute file paths to include.
// "extends": "", // A string containing a path to another configuration file to inherit from.
// "references": [], // An array of objects `{"path": "./to/dirOrConfig"}` that specifies projects to reference.
// "compileOnSave": false, // Signals to the IDE to generate all files for a given tsconfig.json upon saving.
"compilerOptions": {
@darkn3rd
darkn3rd / docker.tf
Last active December 30, 2020 18:25
Terraform Docker Solution
provider "docker" {}
variable wordpress_port {
default = "8080"
}
resource "docker_volume" "db_data" {}
resource "docker_network" "wordpress_net" {
name = "wordpress_net"
@darkn3rd
darkn3rd / docker.tf
Created May 30, 2019 02:44
Terraform Docker Sample
provider "docker" {}
# declare any input variables
# create docker volume resource
# create docker network resource
# create db container
resource "docker_container" "db" {
@darkn3rd
darkn3rd / container_test.rb
Last active December 30, 2020 17:48
Test WordPress Docker Containers
PORT = attribute('port', default: '8080', description: 'port set by user')
control 'cont-01' do
impact 1.0
title 'Containers Running'
desc "MySQL 5.7 container should running and have correct environment"
describe docker_container 'db' do
it { should exist }
it { should be_running }
@nhymxu
nhymxu / README-python-framework-benchmark.md
Last active April 3, 2025 09:58
Flask vs Falcon vs FastAPI benchmark
gunicorn run:app --workers=9
gunicorn run:app --workers=9 --worker-class=meinheld.gmeinheld.MeinheldWorker

Macbook Pro 2015 Python 3.7

Framework Server Req/s Max latency +/- Stdev