Skip to content

Instantly share code, notes, and snippets.

View coalaura's full-sized avatar
:shipit:
The grind never stops

Laura coalaura

:shipit:
The grind never stops
View GitHub Profile
@coalaura
coalaura / update.sh
Last active July 21, 2025 15:39
linux maintenance
function update() {
(
function print_time() {
echo "[$(date '+%H:%M:%S')] - $1"
}
function get_space() {
df --output=used,avail -B1 / | tail -n1
}
package main
import (
"fmt"
"net"
"os"
"strconv"
"time"
)
@coalaura
coalaura / uninstall.sh
Created February 24, 2025 11:23
Fully uninstall netdata
!#/bin/bash
# completely uninstall / purge and remove all configs for netdata
# Netdata installed through Kickstarter.sh has a different directory structure from apt-get install netdata.
# this file gets them both gone, as well as any cloud affililations
sudo killall netdata
sudo wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --uninstall --non-interactive