Skip to content

Instantly share code, notes, and snippets.

View shuantsu's full-sized avatar

Filipe Teixeira shuantsu

View GitHub Profile
@shuantsu
shuantsu / content.md
Created November 18, 2025 21:57
Segurança no Desenvolvimento de Apps: O Que Realmente Importa

🔒 Segurança no Desenvolvimento de Apps: O Que Realmente Importa

A segurança é ignorada na pressa, mas a maioria das vulnerabilidades vem dos mesmos erros. Veja o que mantém os apps SaaS modernos seguros, segundo o @cryptoviksant.

  • 1. Revisão de Código por IA Pega a Maioria dos Problemas

    • Ferramentas como o Coderabbit (IA) acham injeções SQL, credenciais expostas e falhas de autenticação.
    • Exemplo: Uma IA achou uma falha que dobraria a cobrança de clientes, algo que o teste comum não viu.
  • 2. Rate Limiting Detém Spam (e Economiza Grana)

  • Sem limite, o app toma golpe de milhares de cadastros falsos, o que custa em banda e e-mail.

@shuantsu
shuantsu / prompt.txt
Last active November 17, 2025 13:27
Git Commit Message Generator
Create a semantic commit message in English following these guidelines:
- Use git diff HEAD to analyze the changes
- Format: emoji + type + colon + space + description
- Types: feat, fix, docs, refactor, style, perf, config, remove
- Emojis: ✨ feat, 🐛 fix, 📝 docs, ♻️ refactor, 🎨 style, ⚡ perf, 🔧 config, 🗑️ remove
- First line: max 72 chars
- If needed, add blank line then bullet list with details (use "- " prefix)
- Use present tense ("add" not "added")
- Be specific about what changed and why
@shuantsu
shuantsu / Cargo.toml
Created November 6, 2025 01:39
ververust
[package]
name = "ververust"
version = "0.1.0"
edition = "2024"
[dependencies]
win32-version-info = "0.3"
[profile.release]
opt-level = "z"
@shuantsu
shuantsu / +page.svelte
Last active October 18, 2025 17:11
SVELTE APP
<script>
// @ts-nocheck
let isLogged = $state(false);
let userName = $state('');
function handleSubmit(event) {
event.preventDefault(); // Impede o envio tradicional
// 1. Crie o objeto FormData a partir do elemento <form>
@shuantsu
shuantsu / 3dprinter.md
Last active September 20, 2025 20:12
3d printer / laser -- configs

Ender 3 -- calibragem

XMIN = 25

YMIN = 35


XMAX = 200

@shuantsu
shuantsu / __main__.py
Created September 14, 2025 02:38
encode script
import random
import time
import pprint
import json
bp = json.load(open('bp.json'))
def decode(i):
l = []
[l.extend(o[1::2]) for o in i.split(':')]
return l
@shuantsu
shuantsu / __main__.py
Last active September 12, 2025 02:24
SHAPEZ 2 BLUEPRINTS DECODER
import tkinter as tk
from tkinter import ttk
from tkinter import messagebox
import base64
import gzip
import json
import re
from typing import Any, Dict, Optional
@shuantsu
shuantsu / table.csv
Created August 26, 2025 13:16
sdl codes javascript correpondence
scancode valor javascript_code
SDL_SCANCODE_UNKNOWN 0 Unidentified
SDL_SCANCODE_A 4 KeyA
SDL_SCANCODE_B 5 KeyB
SDL_SCANCODE_C 6 KeyC
SDL_SCANCODE_D 7 KeyD
SDL_SCANCODE_E 8 KeyE
SDL_SCANCODE_F 9 KeyF
SDL_SCANCODE_G 10 KeyG
SDL_SCANCODE_H 11 KeyH
import cv2
import mediapipe as mp
import numpy as np
from PIL import Image, ImageDraw, ImageFont
import screeninfo
import pyautogui # Importa a biblioteca para controle do mouse
# Configurações do PyAutoGUI
pyautogui.FAILSAFE = False # Desabilita o fail-safe para evitar interrupções por movimentação do mouse para os cantos
pyautogui.PAUSE = 0.001 # Define um pequeno atraso entre as ações do mouse
@shuantsu
shuantsu / AndroidManifest.xml
Last active December 11, 2024 09:41
chaquopy snippets
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:usesCleartextTraffic="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"