Skip to content

Instantly share code, notes, and snippets.

@cameroncondry
cameroncondry / a1-mini-start.gcode
Last active November 7, 2025 06:58
A1 Mini quick-start G-code: early home, single wipe, level at final bed temp, fast & quiet flow calibration.
; Optimized start routine: Provides a single drop-in script
; for an optimized startup routine. Faster, safer, & easier
;===== machine: A1 Mini ===================================
;===== date: 20251013 =====================================
;===== version: 1.3.3 =====================================
;===== modified by: Cascade Media LLC =====================
;===== changelog: =========================================
;===== 1.3.3 - Enabled quick vibration compensation
;===== 1.3.2 - Disabled vibration compensation
; - Shows signs of underextrusion when enabled
@cameroncondry
cameroncondry / performance.js
Created August 17, 2020 06:59
Simple JavaScript benchmarking function for simple comparisons
/**
* A straightforward Node benchmarking script for performance testing
* using a similar method to jsPerf.
*
* Usage: `node ./performance.js`
*
* Can support any number of tests, with optional startup and teardown.
*/
const Benchmark = require('benchmark');
@cameroncondry
cameroncondry / example.sh
Created February 18, 2018 23:39 — forked from shakefu/example.sh
Bash Script with Short and Long Options
# Option defaults
OPT="value"
# getopts string
# This string needs to be updated with the single character options (e.g. -f)
opts="fvo:"
# Gets the command name without path
cmd(){ echo `basename $0`; }