Skip to content

Instantly share code, notes, and snippets.

View ayr-ton's full-sized avatar
⛩️
In the zone

Ayrton ayr-ton

⛩️
In the zone
  • Thoughtworks
  • Belo Horizonte
View GitHub Profile
@ayr-ton
ayr-ton / leitos-hospitalares-em-tempo-real.ipynb
Created March 18, 2021 14:04
Leitos hospitalares em tempo real.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ayr-ton
ayr-ton / README.md
Created August 19, 2021 01:34
Agile Snippets

Agile Snippets

Jira

bug

{panel:title = *Business Context*}
Xxx
{panel} 
@ayr-ton
ayr-ton / sync-workspaces.py
Last active February 13, 2025 12:22
Sync workspaces
#!/usr/bin/env python3
import os
import subprocess
import argparse
SYNC_SERVER = ""
SYNC_DIRS = {
"~/workspace": "workspace",
}
@ayr-ton
ayr-ton / keys.sh
Last active April 4, 2022 12:27
Configuring your keys in a new SSH server
touch ~/.ssh/authorized_keys
curl https://github.com/ayr-ton.keys >> ~/.ssh/authorized_keys
@ayr-ton
ayr-ton / README.md
Last active June 27, 2022 13:21
U2F sudo with Yubikey or Ledger Nano

Install for your distribution

MacOS:

brew install pam-u2f

For Arch Linux:

pacman -S pam-u2f
@ayr-ton
ayr-ton / load_dotenv.sh
Last active April 4, 2022 18:08 — forked from mihow/load_dotenv.sh
Load environment variables from dotenv / .env file in Bash
function load-env() {
if [ -e .env ]
then
export $(cat .env | xargs)
echo ".env exported with success! 🥄"
else
echo "There's no spoon 🐲"
fi
}
@ayr-ton
ayr-ton / ai-create.sh
Last active October 14, 2025 19:30
ai_stuff
#!/usr/bin/env bash
set -euo pipefail
# This script uses an AI model to generate file content based on a prompt and context from other files.
# It requires Ollama to be installed and accessible in the system's PATH.
#
# Usage:
# ai-create.sh <output_file> "<prompt>" <context_file1> [context_file2 ...]
#
# Environment Variables:
@ayr-ton
ayr-ton / guia-emissao-certificado-aig.md
Created June 13, 2026 23:52
Reemissão de Seguro Viagem Mastercard Black 2026

Guia de Emissão de Novo Certificado de Seguro AIG/Mastercard

Problema: Ao tentar emitir um novo bilhete de seguro, o sistema redireciona para a página de "Bilhetes Existentes" quando detecta um bilhete vencido, impedindo a emissão de um novo certificado.

Solução: Existe um fluxo alternativo escondido que permite emitir um novo certificado sem cair no loop de pesquisa de bilhetes vencidos.


Passo a Passo para Emitir Novo Certificado

@ayr-ton
ayr-ton / ddrescue-live-usb-clone.md
Created June 30, 2026 00:51
Clone LUKS-encrypted NX-1TB 2280 with ddrescue from live USB

Clone LUKS-encrypted NX-1TB 2280 to USB-C SSD with ddrescue

Use this guide from a Linux live USB with the computer powered off. This clones the entire disk byte-for-byte, keeping LUKS encryption intact.

1. Boot from the live USB

  1. Power off the computer.
  2. Insert the live USB.
  3. Power on and open the boot menu (F2, F10, F12, or Esc).