Skip to content

Instantly share code, notes, and snippets.

View DarkOnion0's full-sized avatar
❄️
NixOS is awesome !

Alexo DarkOnion0

❄️
NixOS is awesome !
View GitHub Profile
@DarkOnion0
DarkOnion0 / delete_ghcr_dangling_images.sh
Last active February 9, 2022 20:15 — forked from ferferga/delete_ghcr_dangling_images.sh
Deletes untagged images from GitHub Container Registry package using curl and jq
#!/bin/bash
set -e
# Simple script to remove dangling images from GHCR.
# You need to have installed jq for this script to work properly
container="adztbotv2"
temp_file="ghcr_prune.ids"
rm -rf $temp_file
@DarkOnion0
DarkOnion0 / README.md
Last active June 3, 2023 12:29
Basic android nix-shell

Android nix-shell

This is a basic sample of a nix-shell for android flashing

Installation

curl --progress-bar \
 https://gist.githubusercontent.com/DarkOnion0/44493c8786460d6464c1375c25fb3343/raw/16fcc1133e752aaaeeb30bf07fda90812fde4cd5/default.nix > /tmp/android-shell.nix \
 && nix-shell /tmp/android-shell.nix