Skip to content

Instantly share code, notes, and snippets.

View shuantsu's full-sized avatar
😃

Filipe M. Teixeira shuantsu

😃
View GitHub Profile
@shuantsu
shuantsu / build-apk.yml
Created October 27, 2026 17:09
github actions expo
name: Build Android App (Local Gradle)
on:
push:
branches: [ main, master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
@shuantsu
shuantsu / gist:4c19693206ad2094d131669fc5b359f2
Last active October 22, 2026 16:15
Minha jornada com a IA generativa (WIP)

Meu primeiro contato com a IA generativa foi em 2020 com o vídeo do Felipe Deschamps

https://www.youtube.com/watch?v=pbVwH8o837A

Eu lembro que na época a gente achava que o vídeo era fake pois ele gerava código apenas usando palavras em linguagem humana, o que parecia magia.

Na época esse era o gpt-3 e era necessário convite para usar. Eu pedi meu convite pelo codex e levou alguns meses para eu ter acesso.

Nesse meio tempo já era possivel usar o chatgpt 3.5 e conversar em texto com a IA. Mas era bastante limitado e um pouco tontinha.

@shuantsu
shuantsu / SKILL.md
Created October 15, 2026 20:13
open code skill download youtube video as mp3, edit id3 tags and attach on telegram
name yt-download-telegram
description Use when user asks to download YouTube/other video/audio (yt-dlp) and attach/send via Telegram (Bot API) to the owner chat. Use ONLY for download-media + Telegram tasks.

YT Download + Telegram

Download media with /tmp/yt-dlp_linux and send to the owner's Telegram chat via Bot API (see skill telegram-send).

Environment

@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)