Skip to content

Instantly share code, notes, and snippets.

@spotlesscoder
spotlesscoder / ceph-commands.txt
Created May 21, 2022 07:17 — forked from pertoft/ceph-commands.txt
Ceph command cheatsheet
ceph -w
ceph health detail
ceph osd df
ceph osd find
ceph osd blocked-by
ceph osd pool ls detail
ceph osd pool get rbd all
ceph pg dump | grep pgid
ceph pg pgid
@spotlesscoder
spotlesscoder / framework_powerled_color.sh
Created August 27, 2023 13:40 — forked from thejevans/framework_powerled_color.sh
script to change the framework laptop power led color based on battery/charging status. I use it as a cron job
#!/bin/bash
# takes desired critical percentage as first argument and
# charged percentage as second, both with default values.
# example usages:
#
# framework_powerled_color.sh
# framework_powerled_color.sh 10
# framework_powerled_color.sh 10 98
#
import time
import board
import neopixel
import math
import rotaryio
import board
import digitalio
import adafruit_rgbled
import busio
import adafruit_midi
import time
import board
import neopixel
import math
import rotaryio
import board
import digitalio
import adafruit_rgbled
import busio
import adafruit_midi
@spotlesscoder
spotlesscoder / gist.sh
Created June 2, 2024 20:51 — forked from kparms/gist.sh
Install Virtualbox Guest Additions on Crunchbang
#Get the repo up to date
sudo apt-get update
sudo apt-get upgrade
#Mount the disk in Virtual Box
#Right click on the drive and click, "Open with Root Terminal"
#Install Prereqs
apt-get install build-essential module-assistant