Skip to content

Instantly share code, notes, and snippets.

View derekslenk's full-sized avatar

Derek Slenk derekslenk

View GitHub Profile
derekslenk /
Created July 14, 2023 20:53
I had a folder of printing models that all had images, but were all in individual subfolders and named funny. This pulls out the name of all the image files in a list so you can browse/do with as you please
import sys
import re
from pathlib import Path
# Copyright (c) 2023 Derek Slenk. All rights reserved.
INVALID_FILENAME_PATTERN = re.compile(r"\d+[\w]+\.\w+")
ALLOWED_CHARS_PATTERN = re.compile(r"[^\d_-]")
derekslenk / start.gcode
Last active January 22, 2024 22:45
Cura Custom Start G-Code Ender 3 / BLTouch / SKR Mini E3 v2
; Ender 3 Custom Start G-code
; Script based on an original created by tjjfvi (
; An up-to-date version of the tjjfvi's original script can be found
; here:
; Note - This script will only work in Cura V4.2 and above!
; --- Global Settings
; layer_height = {layer_height}
; smooth_spiralized_contours = {smooth_spiralized_contours}
; magic_mesh_surface_mode = {magic_mesh_surface_mode}
derekslenk /
Last active March 30, 2020 04:51 — forked from nrollr/
Install PHP 7.3 and NGINX on Amazon Linux 2 AMI
## Install NGINX
$ sudo amazon-linux-extras install nginx1.12 -y
## Install PHP and PHP-FPM
# this package include php-fpm
$ sudo amazon-linux-extras install php7.3 -y
## Configure NGINX (see below)
$ sudo nano /etc/nginx/conf.d/default.conf

Keybase proof

I hereby claim:

  • I am derekslenk on github.
  • I am slenk ( on keybase.
  • I have a public key ASATHMnbNbiXdiEn8xLAYSF4DZNkJfHR1o3XdEJj_YOWMwo

To claim this, I am signing this object:

derekslenk / pihole.yml
Last active May 9, 2019 00:09
For setting up pihole and cloudflared for DNS over HTTPs
version: '2'
# More info for pihole: and
# More info for cloudflared: and
container_name: "cloudflared"
image: visibilityspots/cloudflared:amd64
network_mode: "host"