Skip to content

Instantly share code, notes, and snippets.

View SuperCoolAlan's full-sized avatar

Alan Sandoval SuperCoolAlan

View GitHub Profile
@SuperCoolAlan
SuperCoolAlan / creality-print-k2-plus-end-print.gcode
Created August 13, 2025 23:59
This Creality K2 Plus Machine G-Code is configured in Creality Print > Printer Settings > Machine G-code > Machine end G-code
G91 ; Set relative positioning mode
G1 E-5 F600 ; Retract the filament slightly to relieve pressure
G1 Z+0.5 E-5 X-20 Y-20 F9000 ; Move Z axis up, retract filament further, move X and Y axes to min endstops
G28 X0 Y0 ; Home the X and Y axes to get the hotend out of the way
G1 Y150 F5000 ; Move the bed forward for easier print removal (adjust Y value as needed for your printer and part size)
M104 S0 ; Turn off the extruder heater
M140 S0 ; Turn off the heated bed
M106 S0 ; Turn off the cooling fan
M84 ; Disable all stepper motors
G90 ; Set absolute positioning mode (important for the next print)
@SuperCoolAlan
SuperCoolAlan / DockerBuildxArm64MacOSFix.md
Created June 16, 2025 19:41 — forked from Aeonitis/DockerBuildxArm64MacOSFix.md
[SOLVED] - Fixing Docker Buildx Plugin Issue on MacOS with Symlink Creation

Solution - Fix Docker Buildx Plugin for Apple Silicon by Symlink Creation

When installing/using Docker Buildx on Apple Silicon macs, an issue occurs for arm64 macOS.

The solution involves creating a symlink to your Docker CLI plugins directory using a shell script shown below.

Short answer

Run this script:

#!/bin/bash
@SuperCoolAlan
SuperCoolAlan / dockerNats.md
Last active June 7, 2024 18:08
Developing on localhost with NATS in Docker
title author date
Developing on localhost with NATS in Docker
Alan Sandoval <[email protected]>
Dec 6, 2023

Developing with NATS without Kubernetes

Kubernetes is very complex, so let's get around it for development of applications. In this guide, you will learn to:

  1. run a NATS server with Docker
#Abbreviated BinaryTree class taken from parsetreeDAS.py
#Parent reference has been added
from pythonds.pythonds.basic.stack import Stack #Project04.py
class BinaryTree:
def __init__(self, rootObj):
self.key = rootObj
self.leftChild = None
self.rightChild = None