Skip to content

Instantly share code, notes, and snippets.

View kellerkindt's full-sized avatar

kellerkindt

View GitHub Profile
@mortensteenrasmussen
mortensteenrasmussen / cleanupManifestsWithoutTags.sh
Last active March 15, 2023 12:47
Clean up untagged manifests in private docker registry
#!/bin/bash
REGISTRY_DIR=YOUR_REGISTRY_DIR/data/docker/registry/v2/repositories
REGISTRY_URL=http://10.10.10.10:5000
#add --insecure to the curl command on line 17 if you use https with self-signed certificates
cd ${REGISTRY_DIR}
count=0
manifests_without_tags=$(comm -23 <(find . -type f -name "link" | grep "_manifests/revisions/sha256" | grep -v "\/signatures\/sha256\/" | awk -F/ '{print $(NF-1)}' | sort) <(for f in $(find . -type f -name "link" | grep "_manifests/tags/.*/current/link"); do cat ${f} | sed 's/^sha256://g'; echo; done | sort))
@vancluever
vancluever / gnome-tracker-disable.md
Last active April 16, 2024 04:57
GNOME Tracker Disable

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/

After discovering it chowing 2 cores, I decided to go about disabling it.

Directories

@aladuca
aladuca / gist:854b78585c2bba961386
Created October 5, 2015 16:44
virt-install w/ virtio-scsi disk (discard)
virt-install \
-n gerbil \
--memory 1024 \
--cpu host-model \
-l http://mirror.cc.columbia.edu/pub/linux/centos/7/os/x86_64 \
--controller=scsi,model=virtio-scsi \
--disk path=/dev/datavg/rhel7.0_test,bus=scsi,discard=unmap \
--graphics spice \
--noautoconsole