Skip to content

Instantly share code, notes, and snippets.

@bwright86
bwright86 / Convert-StringNumbers.ps1
Created September 16, 2019 11:07
A powershell function to convert a string input of numbers into an array. Handles CSV or ranges.
<#
.Synopsis
Extracts integers from strings, including CSV and ranges.
.DESCRIPTION
A longer description that describes what is being done.
####
# Author: Brent Wright
# Date Created: 09/16/2019
@bwright86
bwright86 / Keymap.txt
Created September 3, 2019 02:51
Planck - Brent Keymap
/* Qwerty
* ,-----------------------------------------------------------------------------------.
* | Q | W | E | R | T | Esc |PrtScn| Y | U | I | O | P |
* |------+------+------+------+------+------+-------------+------+------+------+------|
* | A | S | D | F | G | Caps | Tab | H | J | K | L | ; |
* |------+------+------+------+------+------+------|------+------+------+------+------|
* | Z | X | C | V | B | Ctrl | Ins | N | M | , | . | / |
* |------+------+------+------+------+------+------+------+------+------+------+------|
* | GUI | Alt |Lower |Shift | Bksp | Del |Enter |Space |Shift | Raise| App | " |
* `-----------------------------------------------------------------------------------'
@bwright86
bwright86 / ActiveWindowMonitor.ps1
Last active October 6, 2022 19:33
Powershell - Event Driven ActiveWindow Monitor
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.ComponentModel;
namespace System.Diagnostics
{
@bwright86
bwright86 / 0.2mm_HB-ABS_SQL Badge(Test)_LA.gcode
Last active February 16, 2018 12:46
OctoPrint - MultiMaterial Print Issue
; generated by Slic3r 1.37.2-prusa3d-win64 on 2018-02-13 at 08:04:04
; * Updated output filename
; * Skirt Height = 1 (Default = 3)
; * Outer perimeters printed first for precision
; external perimeters extrusion width = 0.45mm
; perimeters extrusion width = 0.45mm
; infill extrusion width = 0.45mm
; solid infill extrusion width = 0.45mm