Skip to content

Instantly share code, notes, and snippets.

View caarlos0's full-sized avatar
๐Ÿ„

Carlos Alexandro Becker caarlos0

๐Ÿ„
View GitHub Profile
@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

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:

GoReleaser Contributor License Agreement

I give GoReleaser permission to license my contributions on any terms they like. I am giving them this license in order to make it possible for them to accept my contributions into their project.

As far as the law allows, my contributions come as is, without any warranty or condition, and I will not be liable to anyone for any damages related to this software or this license, under any kind of legal claim.

#!/bin/sh
for size in XL XXL XS S M L; do
curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/kubernetes/kubernetes/labels/size/$size" |
jq '. | { "name": .name, "color": .color, "description": .description }' |
curl -sfXPOST -d @- -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/$REPO/labels
done
@caarlos0
caarlos0 / five.md
Created November 26, 2019 01:47 — forked from mfridman/five.md
top 5 most common .goreleaser files

10666361bf2ddb7070c9ea6756b1e8ce327a9edb

8 found

builds:
  # List of builds
  - # First Build
    env:
    - CGO_ENABLED=0