Skip to content

Instantly share code, notes, and snippets.

View caarlos0's full-sized avatar
:shipit:

Carlos Alexandro Becker caarlos0

:shipit:
View GitHub Profile
@caarlos0
caarlos0 / go-msix-authenticode.patch
Created September 5, 2026 21:16
Candidate fix for digitalxero/go-msix#3: Authenticode encoding and package digests; Windows validation pending
diff --git a/blockcompress.go b/blockcompress.go
index eda3452799b9c9b7ae5ea5a0c3413eb64e999a5e..50be5500625aa9e7bf992515ac1efb8c96a84af0 100644
--- a/blockcompress.go
+++ b/blockcompress.go
@@ -5,8 +5,6 @@ import (
"bufio"
"compress/flate"
"crypto/sha256"
- "encoding/binary"
- "fmt"
@caarlos0
caarlos0 / progressive-overload-without-sacrificing-health.md
Created July 2, 2026 18:08
Evidence-based workout techniques for increasing overload without sacrificing health — research compendium (~140 sources), companion to Carlos's personal-trainer agent

Workout Science: Increasing Weight Overload Without Sacrificing Health

Evidence-based research compendium for the personal-trainer agent. Synthesised from 9 parallel research passes covering ~140 primary sources (peer-reviewed journals, ISSN/ACSM/AHA/IOC position stands, systematic reviews & meta-analyses). Every substantive claim is footnoted. Ready to append to agents/personal-trainer.agent.md.


Executive Summary

@caarlos0
caarlos0 / personal-trainer.agent.md
Created June 1, 2026 20:16
Personal trainer agent for GitHub Copilot CLI — evidence-based hypertrophy coach with hevy integration
name personal-trainer
description Carlos's personal trainer. Knows his lifting history, preferred split, favorite exercises, working weights, and training style from his Hevy log. Use whenever Carlos asks about workouts, programming, exercise selection, weight progression, deloads, plateaus, "what should I train today", "design me a session", "swap an exercise", "am I doing too much volume", or wants coaching/critique on his lifting. Pulls live data via `hevy` when fresh numbers are needed.

Personal Trainer for Carlos

You are Carlos's personal trainer. You know how he actually trains because you've read his log. Coach from data, not vibes.

Who you're training

@caarlos0
caarlos0 / gh-unsubscribe-org
Last active July 1, 2026 12:47
Unsubscribe (and optionally close own PRs) from all issues/PRs you're involved in within a GitHub org
#!/bin/sh
#
# Unsubscribe from every issue and PR you are involved in within a GitHub org.
#
# Uses `involves:@me`, which covers issues/PRs you authored, were assigned to,
# were @mentioned in, or commented on. PRs are included (GitHub's search API
# treats PRs as a kind of issue).
#
# Subscriptions are set to ignored=true so future activity won't re-subscribe.
#

Golang YAML/JSON custom Marshal and Unmarshal

@caarlos0
caarlos0 / .goreleaser.yaml
Created March 26, 2022 02:06
reproducible builds with goreleaser
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
name: goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/Project",
"definitions": {
"Announce": {
"properties": {
"twitter": {
"$schema": "http://json-schema.org/draft-04/schema#",
"$ref": "#/definitions/Twitter"
}
@caarlos0
caarlos0 / list-git-branches.groovy
Last active May 14, 2025 03:05 — forked from ThabetAmer/list-git-branches.groovy
Jenkins Groovy script to read Git repo branches and list them in an array, can be suited with Active Choice Jenkins Plugin
#!/usr/bin/env groovy
/**
* List all Git branches of a repo.
* @author thabet.amer@gmail.com
* @since Jenkins 2.204.1
* @params String url for Git repo URL, String credentialID, Bool activeChoice if ActiveChoice plugin used, String defaultBranch
* @return String array of branch names
*
* Dependencies: