Skip to content

Instantly share code, notes, and snippets.

View vantonney-maker's full-sized avatar

vantonney-maker

  • Joined Apr 29, 2026
View GitHub Profile
@vantonney-maker
vantonney-maker / n8n-resumo-diario.json
Created May 7, 2026 13:11
Box 21 — n8n: resumo diário via Telegram
{
"name": "Box 21 — Resumo diário do dia anterior (09h)",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{ "field": "cronExpression", "expression": "0 0 9 * * *" }
]
}
@vantonney-maker
vantonney-maker / n8n-alerta-estoque.json
Created May 7, 2026 13:11
Box 21 — n8n: alerta estoque baixo via Telegram
{
"name": "Box 21 — Alerta estoque baixo (a cada 6h)",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{ "field": "cronExpression", "expression": "0 0 */6 * * *" }
]
}
@vantonney-maker
vantonney-maker / n8n-backup-sheets.json
Created May 7, 2026 12:35
Box 21 — n8n workflow: backup vendas diário pra Google Sheets
{
"name": "Box 21 — Backup vendas diário (Google Sheets)",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{ "field": "cronExpression", "expression": "0 0 23 * * *" }
]
}
@vantonney-maker
vantonney-maker / sync-agent-v2.ps1
Created May 7, 2026 01:08
Box 21 Games — sync.ps1 v2 (agente Shoficina <-> box21games.com.br)
# sync.ps1 v2 -- Agente de sincronizacao Shoficina <-> box21games.com.br
#
# Roda em PowerShell 32-bit (driver ODBC do Access e 32-bit).
# Le C:\SHARMAQ\SHOficina\Dados.MDB.
#
# Fluxo de cada ciclo:
# 1. PULL: GET /api/agent/pull-writes (Bearer). Se houver writes pendentes
# enfileirados pelo /admin, aplica via UPDATE no MDB e POST a confirmacao.
# 2. PUSH: le ORDEMS+CLIENTES+SITUACOES, calcula diff por hash e POST mudancas
# pra /api/sync (fluxo original, igual antes).