Skip to content

Instantly share code, notes, and snippets.

@virtuman
virtuman / gitlab-docker-registry-cleanup-old-tags.php
Created January 29, 2018 22:28
gitlab docker registry cleanup through API + screen scraping
<?php
# Accepts command line arguments:
# -url=https://gitlab.example.com/
# -token=GITLAB_TOKEN
# -debug=false | true
# -dryrun=false | true
# -keep=2 day
@janeczku
janeczku / 00-cloud-config.yml
Last active December 2, 2024 01:28
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher