This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Safely replace the two Rockchip boot logos in a Snapmaker U1 boot slot. | |
| The script uses only the Python standard library. By default it performs a | |
| dry-run: the source boot image or selected boot partition is read, validated, | |
| patched in memory, and written to a regular staging file. A block device is | |
| written only when --apply is supplied. | |
| """ | |
| from __future__ import annotations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Example file on how to configure the Bambu/Creality tag processors. | |
| [bambu_lab_tag_processor] | |
| key = 9A759CF2C4F7CAFF222CB9769B41BC96 | |
| [creality_tag_processor] | |
| key = 713362755e74316e71665a2870662431 | |
| encryption_key = 484043466b526e7a404b4174424a7032 | |
| [elegoo_tag_processor] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| creality_key: 713362755e74316e71665a2870662431 | |
| creality_encryption_key: 484043466b526e7a404b4174424a7032 | |
| bambu_key: 9A759CF2C4F7CAFF222CB9769B41BC96 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;===== date: 20250109 ===================== | |
| M400 ; wait for buffer to clear | |
| M140 S0 ;Turn-off bed | |
| M106 S255 ;Cooling nozzle | |
| M83 | |
| G92 E0 ; zero the extruder | |
| G2 I1 J0 Z{max_layer_z+0.5} E-1 F3000 ; lower z a little | |
| G90 | |
| {if max_layer_z > 50}G1 Z{min(max_layer_z+50, printable_height+0.5)} F20000{else}G1 Z100 F20000 {endif}; Move print head up | |
| M204 S5000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/1.1.40.txt b/1.1.42.txt | |
| index 9e11fbd..5eb391e 100644 | |
| --- a/1.1.40.txt | |
| +++ b/1.1.42.txt | |
| @@ -1,3 +1,4 @@ | |
| +ptcE | |
| /lib/ld-linux-armhf.so.3 | |
| librt.so.1 | |
| _ITM_deregisterTMCloneTable | |
| @@ -100,12 +101,15 @@ pthread_join |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv, sys, datetime, numpy | |
| if len(sys.argv) <= 1: | |
| print(f"{sys.argv[0]} data.csv step[default=0.1] reference_sensor[default=None]") | |
| exit() | |
| csv_file_path = sys.argv[1] | |
| step = float(sys.argv[2]) if len(sys.argv) >= 3 else 0.1 | |
| first = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json, os, sys, uuid | |
| option_latest = "--latest" in sys.argv | |
| with open("css_mappings.json") as fp: | |
| mappings = json.load(fp) | |
| with open("webpack.json") as fp: | |
| webpack = json.load(fp) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Based on https://gist.github.com/PartyWumpus/b1bc83b5b29b155e40742d0aa290f0db | |
| # https://github.com/steamdatabase/steamtracking | |
| # git diff HEAD~1 HEAD --unified=0 --no-color "*.css" > diff | |
| # then | |
| from collections import Counter | |
| import cssselect | |
| import json | |
| import uuid | |
| import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Warning. Shit code ahead | |
| # Solidify text using Control + T | |
| bl_info = { | |
| "name": "Text Solidify", | |
| "blender": (2, 80, 0), | |
| "category": "Object", | |
| } | |
| import bpy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Version: NX-9.2.0_exFAT | |
| NcaCount: 216 | |
| Titleid: 0100000000000006 | |
| - Nca: a42ef448765278babf876b9e5516dd63.nca >> ID: 0100000000000006, Type: Meta | |
| - Nca: ca3a59f9213844544a5efeff0d956bd0.nca >> ID: 0100000000000006, Type: Program | |
| Titleid: 0100000000000007 | |
| - Nca: 10a435329a0f6581045c325e7da544cd.nca >> ID: 0100000000000007, Type: Meta | |
| - Nca: 2a51b12998666fea37bb2a03237eb52f.nca >> ID: 0100000000000007, Type: Program |