Skip to content

Instantly share code, notes, and snippets.

View auyer's full-sized avatar
🐧
Kernel and Debian contributor

Rafael Passos - RCPassos auyer

🐧
Kernel and Debian contributor
View GitHub Profile
@auyer
auyer / devbox2just.py
Created October 19, 2026 18:24
Convert a Devbox.json file into a "justfile". I just got tired of using the json syntax to write scripts.
#!/usr/bin/env python3
"""devbox2just.py - convert a devbox.json project config into a `just` justfile.
Usage:
python3 scripts/devbox2just.py [devbox.json] [--out FILE]
Without --out the justfile is written to stdout.
What is preserved:
* `env` -> `export KEY := "value"` per key. Key names are taken
@auyer
auyer / add_msgpack_struct_tags.py
Created February 8, 2024 20:32
Script for GO files to add msgpack struct tags to every struct that has a Json tag.
import re
import sys
def add_new_text(filename):
with open(filename, "r") as file:
data = file.readlines()
pattern = re.compile(r'json:"([\w,]+)"')
@auyer
auyer / cuncurrenlty_delete_S3files.go
Created August 20, 2020 16:35
Cuncurrently deletes all files in a folder (or with a prefix) in an AWS S3 Bucket. This is usefull for a very large ammount of files.
package main
import (
"fmt"
"sync"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"

Keybase proof

I hereby claim:

  • I am auyer on github.
  • I am auyer (https://keybase.io/auyer) on keybase.
  • I have a public key ASBn9YBZCYVIvMVgnBTn4K0J5wcCHBk_olOZs1JpTSJ5lwo

To claim this, I am signing this object: