Skip to content

Instantly share code, notes, and snippets.

Avatar

Lari Hotari lhotari

  • DataStax
  • Espoo, Finland
  • 09:40 (UTC +02:00)
  • Twitter @lhotari
View GitHub Profile
@lhotari
lhotari / clean_microk8s_registry.sh
Created Apr 21, 2021 — forked from Kevinrob/clean.md
Clean up microk8s registry
View clean_microk8s_registry.sh
#!/bin/bash
registry=localhost:32000
repositories=$(curl ${registry}/v2/_catalog)
for repo in $(echo "${repositories}" | jq -r '.repositories[]'); do
echo $repo
tags=$(curl -sSL "http://${registry}/v2/${repo}/tags/list" | jq -r '.tags[]')
for tag in $tags; do
echo $tag
curl -v -sSL -X DELETE "http://${registry}/v2/${repo}/manifests/$(
curl -sSL -I \
@lhotari
lhotari / smx8fancontrol
Last active Dec 17, 2020 — forked from ikus060/smx8fancontrol
Python script to edit the X8DTU-F Registry to control fan speed.
View smx8fancontrol
#!/usr/bin/env python3
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0