This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3.8 | |
import ipaddress | |
decip = 2887123457 # Example for 172.22.2.1 | |
ip = str(ipaddress.IPv4Address(decip)) | |
print(ip) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ## BEGIN INIT INFO | |
# Provides: Firewall | |
# Required-Start: $all | |
# Required-Stop: | |
# Should-Start: S | |
# Should-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CONTEUDO PARA O 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Id": "Policy1556318075116", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1556317630862", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::cdn.example/videos/*" |
NewerOlder