Skip to content

Instantly share code, notes, and snippets.

View mcxiaoke's full-sized avatar

Hello World mcxiaoke

View GitHub Profile
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active August 28, 2026 09:32
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@mcxiaoke
mcxiaoke / clash.yaml
Created June 1, 2024 03:26
clash各种协议的配置模板
# DNS 配置可自行修改
port: 7890
allow-lan: true
mode: rule
log-level: info
unified-delay: true
global-client-fingerprint: chrome
dns:
enable: true
listen: :53

Hardware specs

Chinese Brand "ITworks" , Model TW891, distributed in France and Belgium by Darty

  • CPU: Intel(R) Atom(TM) CPU Z3735F @ 1.33GHz
  • Video: Intel® HD Graphics for Intel Atom® Processor Z3700 Series
  • Screen: 1280x800
  • WiFi + BT: Realtek RTL8723BS_BT
  • Disks: mmcblk1: mmc1:0001 DF4032 29.1 GiB
  • RAM: 2GB DDR3 @ 1333 MHz
@mcxiaoke
mcxiaoke / README.md
Last active June 11, 2026 18:44
test checkpoints, a custom script for AUTOMATIC1111 / stable-diffusion-webui.

Test Checkpoints

introduction

test your checkpoints,

creating images for selected checkpoints,

a custom script for AUTOMATIC1111 / stable-diffusion-webui.

@mcxiaoke
mcxiaoke / wine-retina.md
Last active April 4, 2026 08:58
Wine and CrossOver Retine Support on macOS. from http://ielk.blogspot.com/2017/02/wine-20-on-macos-10122.html

Blurry font issue with Wine 2.0 on macOS 10.12.2

After installing the latest Wine release, which currently is 2.0 (I chose the development branch) on XQuartz 2.7.11, I was having problems with blurry text in both winecfg, regedit and other programs launched through Wine. After trying to enable font smoothing and font replacements (source) with only slight changes I found someone trying to solve the same issues (source), albeit compiling everything from scratch which I don't want to do. It turns out that the Retina display on my MacBook Pro was causing the issues with blurry fonts because Wine was not using the "real" resolution, only the reported "lower resolution".

To enable Retina support in Wine open the registry editor via a terminal, preferably through Wine Devel.app installed with Wine:
$ wine regedit

Then find the folder/key:

@mcxiaoke
mcxiaoke / AutoVersionSampleVisualStudio.csproj
Created March 18, 2026 12:11
visual studio 2019/2022/2026 auto version using git commit hash and date time and auto increment config sample csproj file 自动版本号使用日期时间和Git提交Hash值
<Project Sdk="Microsoft.NET.Sdk">
<!-- ================================================ -->
<!-- ================ 项目基本设置 ================= -->
<!-- ================================================ -->
<PropertyGroup>
<!-- 项目类型(控制台应用示例,你可以改成 WinExe / Library 等) -->
<OutputType>Exe</OutputType>
<!-- .NET 版本(VS 2026 默认支持 .NET 9 / .NET 10,这里用 .NET 9 示例,改成 net10.0 也行) -->
@mcxiaoke
mcxiaoke / cn.txt
Created February 27, 2026 08:10
Here is a list of singers from various countries categorized by region. 这里是按地区分类的各国歌手名字列表 地域別に分類された各国の歌手名リストです。 지역별로 분류된 각국의 가수 이름 목록입니다. (2026.02)
$唐老师
$ailor谷启航
$NGK
1.ToNE
2-DO
2eight 小茶
2Night夜里
3A别拖啦
3anyu
3ASiC
@mcxiaoke
mcxiaoke / index.html
Created July 3, 2014 03:53 — forked from davidwkeith/index.html
detect app installed in browser
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!-- iframe used for attempting to load a custom protocol -->
<iframe style="display:none" height="0" width="0" id="loader"></iframe>
@mcxiaoke
mcxiaoke / gist:7e6f4ba777a97121bd99
Created January 13, 2016 02:43 — forked from mgmilcher/gist:5eaed7714d031a12ed97
Nginx, PHP-FPM, MySQL and phpMyAdmin on OS X

This is my take on how to get up and running with NGINX, PHP-FPM, MySQL and phpMyAdmin on OSX Yosemite.

This article is adapted from the original by Jonas Friedmann. Who I just discovered is from Würzburg in Germany. A stonesthrow from where I was born ;)

Xcode

Make sure you have the latest version of XCode installed. Available from the Mac App Store.

Install the Xcode Command Line Tools:

xcode-select --install

@mcxiaoke
mcxiaoke / nginx-gitweb.md
Created January 18, 2016 02:54
Set up Gitweb + Nginx from scratch on Debian Wheezy

This guide offers the least time-consuming way of setting up Nginx for serving Git repositories over HTTP using Gitweb. The stuff here has been tested with Git 1.9.1 and Nginx 1.6.0 on Debian Wheezy. Probably also works for Ubuntu, etc.

Total time ~ 10 minutes.

Install

Enable wheezy-backports by adding this line to /etc/apt/sources.list:

deb http://http.debian.net/debian wheezy-backports main