Skip to content

Instantly share code, notes, and snippets.

View NicholasWon47's full-sized avatar

Nicholas Won NicholasWon47

View GitHub Profile
@NicholasWon47
NicholasWon47 / printer.cfg
Created August 5, 2025 16:01 — forked from justheath/printer.cfg
ender 3 pro klipper config - creality silent board 4.2.7, tough extruder, EZABL
# This file came from https://github.com/Klipper3d/klipper/blob/master/config/generic-creality-v4.2.7.cfg
# This file contains pin mappings for the Creality "v4.2.7" board. To
# use this config, during "make menuconfig" select the STM32F103 with
# a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication.
# Flash this firmware by copying "out/klipper.bin" to a SD card and
# turning on the printer with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# that was flashed.
@NicholasWon47
NicholasWon47 / encrypt_password_to_dyndb.py
Created November 18, 2023 08:29 — forked from JohnPreston/encrypt_password_to_dyndb.py
Generates, encrypt and store password in DynamoDB
import base64
import uuid
import httplib
import urlparse
import json
import boto3
import string
import random
@NicholasWon47
NicholasWon47 / README.md
Created February 8, 2023 07:29 — forked from twolfson/README.md
Toggling between `alembic` databases

alembic is great but lacks an out of the box way to set up running migrations against a specific database (e.g. development, test, production). The following adjustments to its env.py and alembic.ini allow us to target a specific database:

Example:

alembic -x db=development upgrade head

env.py: