Skip to content

Instantly share code, notes, and snippets.

View qmcree's full-sized avatar

Quentin McRee qmcree

  • Austin, TX
View GitHub Profile
@qmcree
qmcree / change_filament_noAMS_P1S_0.4nozzle.v-qm1.gcode
Created April 14, 2025 23:31
Bambu P1S 0.4mm Nozzle - Custom G-code for multi-filament prints without AMS
;===== machine: P1S ========================
; modified gcode from Bambu Studio
;
; original credit: @eukatree
M204 S9000 ; set starting acceleration
G17 ; set CNC workspace plane
G2 Z{max_layer_z + 0.4} I0.86 J0.86 P1 F10000 ; spiral lift
G1 Z{max_layer_z + 3.0} F1200 ; vertical lift
@qmcree
qmcree / ecr_auth.sh
Last active July 19, 2018 20:00
Authenticates to ECR without exposing password to other processes.
#!/bin/bash -e
AWS_ACCOUNT=
AWS_REGION=us-east-1
ECR_URL=https://${AWS_ACCOUNT}.dkr.ecr.${AWS_REGION}.amazonaws.com
# On Mac, replace "base64 -d" with "base64 -D".
aws ecr get-authorization-token --query authorizationData[].authorizationToken --output text | base64 -d | cut -d: -f2 \
| docker login -u AWS --password-stdin ${ECR_URL} \
|| echo "Failed to authenticate to ECR." && exit 1
@qmcree
qmcree / .bash_profile
Created August 30, 2016 05:47
Mac shortcuts for Bash embedded terminal in Jetbrains IDE's (PhpStorm, PyCharm, etc)
export INPUTRC=~/.inputrc
application {
name = "booker"
type = "python"
dependency {
source = "github.com/hashicorp/otto/examples/postgresql"
}
}
customization {
@qmcree
qmcree / l4_raw_output_regex.txt
Last active September 16, 2015 21:10
Regular expression that matches all references to raw-output Blade directives in Laravel 4. I needed it for replacing them to the new raw output directive in Laravel 5.
(?<!\{)\{\{(?!\{|--)(.+)(?<!\}|--)\}\}(?!})