Skip to content

Instantly share code, notes, and snippets.

View shuantsu's full-sized avatar
🎮
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You're 100% lucky!! Try again..."

Filipe Teixeira shuantsu

🎮
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You're 100% lucky!! Try again..."
View GitHub Profile
@shuantsu
shuantsu / save_checkpoint.sh
Created July 9, 2026 18:29
SAVE CHECKPOINT (EASY GIT COMMIT)
#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="$(git rev-parse --show-toplevel)"
[ -f "$REPO_ROOT/.env" ] && eval "$(python3 -c "print('\n'.join([f'export {l.strip()}' for l in open('$REPO_ROOT/.env', encoding='utf8') if l.strip() and not l.startswith('#')]))")"
# Verifica se estamos dentro de um repositório git
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "❌ Isto não é um repositório git."
@shuantsu
shuantsu / dabblet.css
Created May 26, 2026 01:19
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@shuantsu
shuantsu / shell.sh
Created May 15, 2026 17:52
0.0.0.0 wifi php server shell script qr code support vscode tasks support
#!/bin/bash
PORTA=8001
IP=$(ip -4 addr show enp34s0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
COMANDO="php -S 0.0.0.0:$PORTA -t ./poc"
status_servidor() {
lsof -Pi :$PORTA -sTCP:LISTEN -t >/dev/null
}
@shuantsu
shuantsu / tabnews.js
Last active May 12, 2026 10:48
make tabnews better
// ==UserScript==
// @name TABNEWS BETTER DESIGN
// @namespace http://tampermonkey.net/
// @version 2026-05-12
// @description try to take over the world!
// @author You
// @match https://www.tabnews.com.br/
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
// ==/UserScript==
@shuantsu
shuantsu / app.py
Created May 4, 2026 13:54
ollama TUI chatbot
import os
import ollama
from rich.console import Console
from rich.markdown import Markdown
from rich.live import Live
from rich.panel import Panel
from rich.prompt import Prompt
# Limpa o terminal ao iniciar
os.system('clear' if os.name == 'posix' else 'cls')
@shuantsu
shuantsu / pwa.json
Last active May 4, 2026 00:19
n8n pwa
{
"nodes": [
{
"parameters": {
"path": "meu-pwa",
"responseMode": "responseNode",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
@shuantsu
shuantsu / whisper-transcricao-kaggle.md
Created April 19, 2026 17:23
whisper-transcricao-kaggle.md

Com base no log do sistema Whisper Turbo que você enviou, aqui está o tempo que o processador levou para transcrever cada arquivo (o tempo de processamento, não a duração do áudio):

Arquivo Duração do Áudio Tempo de Transcrição
RZA (Guitar Center) 3.09 min 0.28 min (16,8 segundos)
Vegeta (O miserável é um gênio) 0.28 min 0.02 min (1,2 segundos)
Fernando Vanucci 2.85 min 0.14 min (8,4 segundos)
Cabo Daciolo vs. Rabo Daciolo 4.66 min 0.28 min (16,8 segundos)

@shuantsu
shuantsu / 000_index.md
Last active April 16, 2026 18:17
Claude Opus 4.7 Benchmarks
@shuantsu
shuantsu / SENTINELA.js
Created April 15, 2026 19:23
Programação diária estudo de A Sentinela
(function() {
const article = document.querySelector('#article');
const body = document.querySelector('.bodyTxt');
// 1. EXTRAÇÃO DOS BLOCOS ORIGINAIS
const blocosBase = [];
let currentSub = "Introdução";
Array.from(body.querySelectorAll('h2, p.qu')).forEach(el => {
if (el.tagName === 'H2') {
@shuantsu
shuantsu / 000_index.md
Last active April 15, 2026 19:21
BOOKMARKLET WOL JW ORG REUNIÕES MEIO DE SEMANA JSON

📖 WOL Meeting Bookmarklet

O que é isso?

É um extrator de dados automático em formato de bookmarklet para as reuniões semanais das Testemunhas de Jeová. Ele transforma a página de texto do site WOL (Watchtower Online Library) em um arquivo de dados organizado (JSON).

Índice remissivo deste GIST

  1. Documentação completa
  2. Bookmarklet Javascript