Skip to content

Instantly share code, notes, and snippets.

@fixNoobi
fixNoobi / clean_docker_nexus.sh
Created February 21, 2024 13:44 — forked from matzegebbe/clean_docker_nexus.sh
Nexus Repository Manager keep the last X docker images delete all other
#!/bin/bash
REPO_URL="https://repository.xxx.net/repository/"
USER="admin"
PASSWORD="datpassword"
BUCKET="portal-docker"
KEEP_IMAGES=10
IMAGES=$(curl --silent -X GET -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' -u ${USER}:${PASSWORD} "${REPO_URL}${BUCKET}/v2/_catalog" | jq .repositories | jq -r '.[]' )
@fixNoobi
fixNoobi / readme.md
Last active August 4, 2021 20:41
Gen SQL from vars

File: init.sql

create database {{pgsql_payment.db}};
create role {{pgsql_payment.user}} with encrypted password '{{pgsql_payment.password}}' LOGIN;

grant all privileges on database {{pgsql_payment.db}} to {{pgsql_payment.user}};
\c {{pgsql_payment.db}}

File: vars.yaml

@fixNoobi
fixNoobi / arch-linux-gnome-install
Created July 29, 2021 23:04 — forked from thacoon/arch-linux-gnome-install
Install a minimal gnome setup and some more useful things
# Install Gnome and some other useful thins
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# And based on https://wiki.archlinux.de/title/Anleitung_f%C3%BCr_Einsteiger
# I have just copied commands from https://wiki.archlinux.de/title/Anleitung_f%C3%BCr_Einsteiger#Weitere_notwendige_Dienste
# It's just to have it with one view after doing a [fresh installation](https://gist.github.com/thacoon/05d5a39606ab554455d6713e8a714b2c)
# Some useful services
pacman -S acpid ntp dbus cups cronie