Skip to content

Instantly share code, notes, and snippets.

View matjack1's full-sized avatar

Matteo Giaccone matjack1

View GitHub Profile
@matjack1
matjack1 / clean_packages.sh
Last active December 31, 2024 11:58 — forked from ferferga/delete_ghcr_dangling_images.sh
Deletes untagged images from GitHub Container Registry package using gh cli
#!/bin/bash
set -eux
# Simple script to remove dangling images from GHCR.
# You need to have installed gh cli and jq for this script to work properly
# You need to be logged to 'gh' first
org=$1
container=$2
temp_file="ghcr_prune.ids"
rm -rf $temp_file
#!/bin/bash
# Set a new vhost in lamp for Linux.
# .vhostrc is adaptable for LAMPP: just add in your
# /opt/lampp/etc/httpd.conf a section like this:
#
# # Virtual hosts
# Include etc/extra/sites-enabled/*
#
# and create such dir:
# $sudo mkdir /opt/lampp/etc/extra/sites-enabled/