Skip to content

Instantly share code, notes, and snippets.

View zebpalmer's full-sized avatar
🛩️

Zeb Palmer zebpalmer

🛩️
View GitHub Profile
@zebpalmer
zebpalmer / Makefile.base
Created February 15, 2026 01:33
UV Python Project — Standard Makefile (self-updating)
## ===========================================================================
## UV Python Project — Standard Makefile
## Source: https://gist.github.com/zebpalmer/3026294e7d0f0db1e5e643ae94b9aa3d
## Update: `make self-update` to pull the latest version
##
## Project configuration variables (set above this banner or in project.mk):
## DOCS_TOOL - Documentation tool: mkdocs, sphinx, or empty (default: empty)
## SETUP_EXTRAS - Extra setup steps: uv-self-update, clean-venv (default: empty)
##
## Usage:
@zebpalmer
zebpalmer / start.gcode.txt
Created October 18, 2025 22:18
Prusa Core One - Custom Start G-code for nozzle wipe mod
M17 ; enable steppers
M862.1 P[nozzle_diameter] A{(filament_abrasive[0] ? 1 : 0)} F{(nozzle_high_flow[0] ? 1 : 0)} ; nozzle check
M862.3 P "COREONE" ; printer model check
M862.5 P2 ; g-code level check
M862.6 P"Input shaper" ; FW feature check
M115 U6.3.4+10511
M555 X{(min(print_bed_max[0], first_layer_print_min[0] + 32) - 32)} Y{(max(0, first_layer_print_min[1]) - 4)} W{((min(print_bed_max[0], max(first_layer_print_min[0] + 32, first_layer_print_max[0])))) - ((min(print_bed_max[0], first_layer_print_min[0] + 32) - 32))} H{((first_layer_print_max[1])) - ((max(0, first_layer_print_min[1]) - 4))}
G90 ; use absolute coordinates

openpgp4fpr:B02EBFBC5B4FBD105F523AABAEE76B3CBEB653C2

@zebpalmer
zebpalmer / helm_kubectl_example.yaml
Created January 10, 2021 05:11
Ansible tasks for installing helm and kubectl
# Quick example of how to install specific versions of kubectl / helm without giant collections/roles
#
# need the following vars set wherever appropriate
# helm_version: "v3.4.1"
# kubectl_version: "v1.20.0"
- name: get current helm version
command: "helm version"
register: helm_current_version
changed_when: false
@zebpalmer
zebpalmer / keyscan.yml
Last active March 15, 2020 01:31
Ansible SSH Keyscan Playbook
- name: Get SSH keys
hosts: all
gather_facts: no
connection: local
vars:
- known_hosts: "~/.ssh/known_hosts"
tasks:
- name: Get all host keys
delegate_to: "{{ jump_host|default('localhost') }}"
# access host's ansible_host explicitly as 'ansible_host' will change to localhost or jump_host if not defined
@zebpalmer
zebpalmer / pandemic_geo.yaml
Created January 6, 2019 01:12
Pandemic Map. Cities, Links, Colors. (YAML)
# PANDEMIC MAP YAML
#
# I wanted to run a network simulation on the city links from the map in the game Pandemic.
# But, the thought of pulling out the game board and writing out all the link info
# made me cringe. Thankfully, tedious, mind-numbing tasks such as that are like
# some form of meditation to my wife. She's amazing. So, here you go, she threw all the
# cities, their colors, and links to other cities in a basic yaml strcuture. Enjoy.
#
Atlanta:
@zebpalmer
zebpalmer / keybase.md
Last active August 29, 2015 14:12
keybase.md

Keybase proof

I hereby claim:

  • I am zebpalmer on github.
  • I am zebpalmer (https://keybase.io/zebpalmer) on keybase.
  • I have a public key whose fingerprint is 1F07 6072 5B59 0909 5C53 7A24 0729 2616 7EAF EB27

To claim this, I am signing this object: