Skip to content

Instantly share code, notes, and snippets.

View JuninhoFreitas's full-sized avatar
🤠
Buenas!

João de Freitas B Junior (Juninho) JuninhoFreitas

🤠
Buenas!
View GitHub Profile
@JuninhoFreitas
JuninhoFreitas / wezterm-herdr-teclado-quebra-linha.md
Created May 19, 2026 02:37
WezTerm + Herdr: Alt+Enter e Shift+Enter para quebra de linha

WezTerm + Herdr: Alt+Enter e Shift+Enter para quebra de linha

Guia rápido para o Alt+Enter e o Shift+Enter funcionarem como nova linha no prompt do agente (harness / input do agente), em vez de fullscreen ou enviar mensagem.

Contexto

  • Alt+Enter no WezTerm, por padrão, aciona ToggleFullScreen; o emulador intercepta o atalho e o Herdr não recebe Enter com Alt.
  • Shift+Enter e Enter costumam chegar ao aplicativo como o mesmo byte \r (carriage return) no modo legado de teclado; o harness trata os dois como enviar.
  • O Herdr já pede keyboard enhancement no client (PushKeyboardEnhancementFlags), mas o WezTerm só honra o protocolo estilo Kitty se isso estiver habilitado na config.
// Aperta F12 -> clique na aba console -> copie e cole esse texto lá e aperte enter
// No canto inferior direito vai surgir um botão de exportar dados das ultimas 50 corridas
(function () {
'use strict';
const PAGE_SIZE = 50;
// ─── Estado global ────────────────────────────────────────────────────────
let allRows = [];
let currentCursor = null;
@JuninhoFreitas
JuninhoFreitas / Text.txt
Created March 29, 2025 15:41
Thayssa Emilly Brizolla, Juninho
140602
{
"language": "pt",
"tab": "agenda",
"title": "Unidos Jovem",
"url": "https://calendar.google.com/calendar/ical/c5c9e35e43d68f781eacad316f82149d23f6b563e1240aeecc2482e26fdf9723%40group.calendar.google.com/public/basic.ics"
}
@JuninhoFreitas
JuninhoFreitas / countries.json
Created November 20, 2023 00:16
Countries with Flag JSON
[
{
"name": "Afghanistan",
"topLevelDomain": [".af"],
"alpha2Code": "AF",
"alpha3Code": "AFG",
"callingCodes": ["93"],
"capital": "Kabul",
"altSpellings": ["AF", "Afġānistān"],
"subregion": "Southern Asia",
@JuninhoFreitas
JuninhoFreitas / node-api-mock.js
Created May 9, 2023 13:39
An endpoint just to return what u have sent, using only native features.
const http = require('http');
const port = 3349
const routes = {
'/': handlePostReq
}
const server = http.createServer((req, res) => {
routes[req.url](req, res);