Skip to content

Instantly share code, notes, and snippets.

View Disappear9's full-sized avatar
🤔
→_→

Disappear9

🤔
→_→
View GitHub Profile

Keybase proof

I hereby claim:

  • I am disappear9 on github.
  • I am disappear9 (https://keybase.io/disappear9) on keybase.
  • I have a public key ASDBQrFYJyc1dWzant8uL0SWn8-NuvJkfoYZH6-Iw6EIpAo

To claim this, I am signing this object:

@Disappear9
Disappear9 / Serial-to-Syslog.ino
Created May 26, 2025 07:31
ESP32 Serial-logging to Syslog Server
#include <Arduino.h>
#include <Syslog.h>
#include <WiFi.h>
#include <ESPmDNS.h>
#include <WiFiUdp.h>
// Syslog
#define SYSLOG_SERVER "192.168.1.200" // IP of Syslog-server
#define SYSLOG_PORT 514 // Port of Syslog-server
#define DEVICE_HOSTNAME "ESP-Debug" // How this client appears at Syslog-server
@Disappear9
Disappear9 / dns_service.yaml
Created April 18, 2025 08:04
自建DNS配置
version: "3"
networks:
dns_service:
enable_ipv6: true
ipam:
config:
- subnet: 172.100.0.0/16
gateway: 172.100.0.1
@Disappear9
Disappear9 / ZipPass.java
Created March 1, 2024 07:27
non-ascii characters for passwords in zip file
//https://github.com/srikanth-lingala/zip4j/blob/c4c993cb143db99832eadd03699bd8228a9793b8/src/main/java/net/lingala/zip4j/util/Zip4jUtil.java#L217
public class ZipPass {
public static void main(String[] args) throws Throwable {
String password = "克拉拉";
System.out.println(password.toCharArray());
byte[] encbytes = new byte[password.toCharArray().length];
for (int i = 0; i < password.toCharArray().length; i++) {
@Disappear9
Disappear9 / screenshot.py
Created July 23, 2023 10:30
Add screenshot for the file downloaded from the booth, filename format: [ {booth id} {name}.zip/7z... ]
# -*- coding: UTF-8 -*-
import os
import re
import time
from selenium import webdriver
from selenium.webdriver import Chrome,ChromeOptions
# Settings
path = r"E:\unitypackage\Archive"
@Disappear9
Disappear9 / pins_MKS_GEN_L_V21.h
Created June 22, 2022 07:15
Marlin HEADER MOD for MKS_GENL_V2 CXY TMC2208 DUAL Z
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@Disappear9
Disappear9 / Configuration_adv.h
Created June 22, 2022 07:11
Marlin CFG_ADV MKS_GENL_V2 CXY TMC2208 DUAL Z REPRAP_DISCOUNT_FULL_GRAPHIC LCD
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@Disappear9
Disappear9 / Configuration.h
Created June 22, 2022 07:09
Marlin CFG MKS_GENL_V2 CXY TMC2208 DUAL Z REPRAP_DISCOUNT_FULL_GRAPHIC LCD
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@Disappear9
Disappear9 / printer.cfg
Created January 19, 2022 07:05
KLIPPER MKS_GENL_V2 CXY TMC2208 DUAL Z REPRAP_DISCOUNT_FULL_GRAPHIC LCD
# MKS Gen l V2.1
#=============================================================================#
[stepper_x]
step_pin: PF0
dir_pin: !PF1
enable_pin: !PD7
microsteps: 16
full_steps_per_rotation: 200