Skip to content

Instantly share code, notes, and snippets.

Working from home

Esli Silva Esl1h

Working from home
Block or report user

Report or block Esl1h

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Esl1h / sysctl.conf
Last active Jun 14, 2019
A hardening/tunning to sysctl.conf to Linux servers (tested on Debian, CentOS, Amazon Linux and Ubuntu). Otimização para o sysctl.conf em servidores linux
View sysctl.conf
# Aumentar o num. max de conex tcp orfans
# Conexões que foram encerrados e já não têm um identificador de arquivo anexado a eles
net.ipv4.tcp_max_orphans = 262144
# Aumentar o número de conexões
net.core.somaxconn = 16384
# Aumentar o número de conexões de entrada backlog
Esl1h / policy.json
Last active Apr 29, 2019
AWS S3 bucket policy example - one bucket (public, to a cloudfront distribution) and restrict permissions on some folders by username.
View policy.json
"Version": "2012-10-17",
"Id": "Policy1556318075116",
"Statement": [
"Sid": "Stmt1556317630862",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::cdn.example/videos/*"
You can’t perform that action at this time.