Skip to content

Instantly share code, notes, and snippets.

View virtualroot's full-sized avatar
🖤

Alejandro Lazaro virtualroot

🖤
View GitHub Profile
@virtualroot
virtualroot / constraints.md
Last active April 23, 2025 18:18
GitHub constraints

List of constraints and other surprises.

GitHub Packages

  • Packages can't be deleted from public repositories. A quick solution is to make the repository private, delete the packages and make it public again.
  • You need github token to be able to get packages from public repositories (like a docker image)

GitHub Actions

  • Environment variables must have _PATH when a path is set in them. This may make this dificult if you have to set a environment variable for XDG
@virtualroot
virtualroot / clean-backups.sh
Created October 6, 2017 12:43
Delete old backups from S3 compatible object storage
#!/usr/bin/env ash
# shellcheck shell=dash
set -eo pipefail
command -v mc >/dev/null 2>&1 || { echo >&2 "I require mc but it's not installed. Aborting."; exit 1; }
usage() {
echo
echo "Usage: $(basename "$0") <bucketname/directory/> <days>"
echo
@virtualroot
virtualroot / .muttrc
Last active September 18, 2017 20:50
The following macros will submit spam to sp@mnesty.com [Ctrl-X]
macro index \cx ":set autoedit=no fast_reply=yes editor=\"/bin/true\"\n<forward-message>sp@mnesty.com\n<send-message>\n:set autoedit=yes fast_reply=no editor=\"/usr/bin/editor\"\n"
macro pager \cx ":set autoedit=no fast_reply=yes editor=\"/bin/true\"\n<forward-message>sp@mnesty.com\n<send-message>\n:set autoedit=yes fast_reply=no editor=\"/usr/bin/editor\"\n"

Keybase proof

I hereby claim:

  • I am virtualroot on github.
  • I am virtualroot (https://keybase.io/virtualroot) on keybase.
  • I have a public key whose fingerprint is 3E1F DDFD 9846 474D CC28 5603 0AC0 45D6 6333 7A5C

To claim this, I am signing this object: