Skip to content

Instantly share code, notes, and snippets.

View andrewmeyer's full-sized avatar

Andrew Meyer andrewmeyer

View GitHub Profile
@andrewmeyer
andrewmeyer / clean-stale-config.sh
Created July 25, 2023 19:53
clean up stale fluidd config files
#! /bin/bash
# 1. save this file to ~/printer_data/config
# 2. create a file /etc/cron.d/clean-stale-configs
# add the following line minus the #
# @daily <enter the username that you installed klipper with, this may be pi or some custom name> ~/printer_data/config/clean-stale-config.sh
# The line should look something like this:
# @daily pi ~/printer_data/config/clean-stale-config.sh
# 3. everything should work now. Every day the script will run and delete any config backups older than 30 days.
cd ~/printer_data/config
find -type f -name "printer-*.cfg" -mtime +30 -delete
@andrewmeyer
andrewmeyer / keybase.md
Last active September 22, 2017 15:05
keybase.md

Keybase proof

I hereby claim:

  • I am andrewmeyer on github.
  • I am ameyer (https://keybase.io/ameyer) on keybase.
  • I have a public key whose fingerprint is 0B42 BD67 734A 822C CA35 6D55 B7CE F9B3 44C6 EB5E

To claim this, I am signing this object: