Skip to content

Instantly share code, notes, and snippets.

View Cryolitia's full-sized avatar
🏳️‍⚧️
三天摸鱼,两天晒网

PukNgae Cryolitia Cryolitia

🏳️‍⚧️
三天摸鱼,两天晒网
View GitHub Profile
@Cryolitia
Cryolitia / lecoo-mini-pro-control-center.py
Created October 27, 2025 07:53
lecoo-mini-pro-control-center
# uncompyle6 version 3.9.3
# Python bytecode version base 3.6 (3379)
# Decompiled from: Python 3.10.18 (main, Jun 4 2025, 08:17:53) [GCC 14.3.0 20250523 (AOSC OS, Core)]
# Embedded file name: ControlCenter.py
import multiprocessing, os, platform, random, signal, sys, time
from ctypes import *
from ftplib import FTP
from multiprocessing import Queue, Process
import clr, psutil, urllib3, wmi
from PyQt5 import QtCore
[8月13 11:46] Linux version 6.12.33-amd64-desktop-rolling (root@deepinci-amd7) (gcc (Deepin 12.3.0-17deepin8) 12.3.0, GNU ld (GNU Binutils for Deepin) 2.41) (c279d034c) #25.01.01.01 SMP PREEMPT_DYNAMIC Thu Jun 12 14:20:38 CST 2025
[ +0.000000] Command line: BOOT_IMAGE=/live/vmlinuz.efi boot=live union=overlay locales=zh_CN.UTF-8 console=tty splash --
[ +0.000000] KERNEL supported cpus:
[ +0.000000] Intel GenuineIntel
[ +0.000000] AMD AuthenticAMD
[ +0.000000] Hygon HygonGenuine
[ +0.000000] Centaur CentaurHauls
[ +0.000000] zhaoxin Shanghai
[ +0.000000] x86/split lock detection: #AC: crashing the kernel on kernel split_locks and warning on user-space split_locks
[ +0.000000] BIOS-provided physical RAM map:
@Cryolitia
Cryolitia / extension.js
Last active May 27, 2025 18:01
clash-verge-rev lazycat config
// Define main function (script entry)
const newRules = [
// 自定义规则
"DOMAIN-SUFFIX,uniontech.com,DIRECT",
"DOMAIN-SUFFIX,deepin.com,DIRECT",
"DOMAIN-SUFFIX,deepin.org,DIRECT",
"DOMAIN-SUFFIX,heiyu.space,DIRECT",
"DOMAIN-SUFFIX,lazycat.cloud,DIRECT",
"DOMAIN-SUFFIX,lazycatmicroserver.com,DIRECT",
@Cryolitia
Cryolitia / youdao-dict-deepin.patch
Created April 27, 2025 01:36
youdao-dict-deepin-patch
diff --git a/app/plugins/youdao/pyquery/pyquery.py b/app/plugins/youdao/pyquery/pyquery.py
index 0d2e781..c24de0f 100644
--- a/app/plugins/youdao/pyquery/pyquery.py
+++ b/app/plugins/youdao/pyquery/pyquery.py
@@ -12,6 +12,8 @@ import inspect
import types
import sys
+if not hasattr(inspect, 'getargspec'):
+ inspect.getargspec = inspect.getfullargspec
@Cryolitia
Cryolitia / linux-font-analytics.py
Last active April 15, 2025 09:05
linux-font-analytics
#! /usr/bin/python3
# Usage:
# fc-list --format "%{family[0]} %{familylang}\n" > <file_path>
# python3 process.py <file_path>
import sys
import json
import re
#! /usr/bin/python3
resistance = [1,1,1,1.2,1.3,1.5,1.6,1.8,2,2.2,2.4,2.7,3,3.2,3.3,3.6,3.9,4.3,4.7,5.1,5.6,6.2,6.8,7.5,8.2,9.1,10,11,12,13,15,16,18]
target_voltage = 8.4
result = {}
def output_voltage(r1, r2):
return ((r1/r2)+1)*1.222
if __name__ == '__main__':

openpgp4fpr:1C3C6547538D7152310C0EEA84DD0C0130A54DF7

@Cryolitia
Cryolitia / solve.cpp
Created January 16, 2024 00:09
Solving Sudoku puzzles based on customized information entropy
//
// Created by cryolitia on 24-1-16.
//
#include <iostream>
#include <vector>
#include <utility>
#include <unordered_set>
#include <cassert>
#include <memory>
@Cryolitia
Cryolitia / RegexUTF-8.c
Last active October 12, 2023 12:59
Regex single UTF-8 Character in std::string
#include <iostream>
#include <regex>
int main() {
std::string input = "你好,world!";
std::smatch matches;
auto regex = std::regex("([\\x00-\\x7F]|([\\xC0-\\xF7][\\x80-\\xBF]*))");
std::sregex_iterator begin(input.begin(),input.end(),regex);
std::sregex_iterator end;
for (auto i = begin;i!=end;++i) {
@Cryolitia
Cryolitia / hash_table.c
Created October 22, 2021 11:41
Verify Goldbach's conjecture
//
// Created by Neuron on 2021/10/20.
//
#include "hash_table.h"
HashTable *initHashTable(uint64_t size) {
HashTable *hashTable = (HashTable *) malloc(sizeof(HashTable));
hashTable->count = size;
hashTable->node = (Node **) calloc(size, sizeof(Node *));