Skip to content

Instantly share code, notes, and snippets.

View mcxiaoke's full-sized avatar

Hello World mcxiaoke

  • Earth
View GitHub Profile
@mcxiaoke
mcxiaoke / linux-and-macos-tips.sh
Last active February 16, 2024 12:23
Linux and Macos Tips
# Disable suspend and hibernation
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
# How to run commands at shutdown on Linux
[Unit]
Description=Run mycommand at shutdown
Requires=network.target
DefaultDependencies=no
Before=shutdown.target reboot.target
@mcxiaoke
mcxiaoke / miui-system-apps.md
Created February 27, 2022 08:17
Xiaomi MIUI 13 System Apps (20220227)

MIUI 13 System Apps

标记说明

  • ★ 不能删,MIUI系统核心组件
  • ◉ 不能删,Android系统核心组件

Android系统组件

标记 应用 包名
@mcxiaoke
mcxiaoke / README.md
Last active December 13, 2023 06:07
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 / pokemongo-hook.md
Last active December 5, 2023 10:54
Pokemon Go scripts.
  1. preparing location hook project.
    clone this project: PokemonHook, unzip pokemon_unsigned.zip to Payload/pokemongo.app

  2. preparing your iPhone Distribution Certificates.
    using security find-identity -p codesigning -v find cert

  3. preparing your wildcard AdHoc Provision file, open XCode/Preferences/Accounts/View Details, select a profile, right click show in finder, copy to current dir, rename to embedded.mobileprovision, you can verify provision file using security cms -Di embedded.mobileprovision

Mac自带的Boot Camp程序,可以非常便利地帮助用户在Mac电脑上同时安装一个Windows系统。针对Macbook Air用户,这里记录下在没有光驱的情况下,使用USB制作启动盘来安装Windows的过程。

需要准备的物品:

1、U盘一个(>= 4g) 2、win7镜像文件(.iso) 3、rEFIT.dmg(用于让不支持USB等外设设备启动引导的设备能识别USB设备启动)

制作启动盘

@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
@mcxiaoke
mcxiaoke / apply_patches.bash
Created July 1, 2022 09:59
A script intended to make Genshin Impact run perfectly on Linux using Wine + DXVK. You need to have a Wine installation, Winetricks is automatically installed in this script.
#!/bin/bash
VERSION="151"
PATCHES_DIR="$PWD/patches/$VERSION"
GAME_DIR="$PWD/files/drive_c/Program Files/Genshin Impact/Genshin Impact game"
if ! [ -d "$PWD/patches" ]; then
export WINEPREFIX="$PWD/files"
git clone https://notabug.org/Krock/GI-on-Linux.git patches

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 / PacketOpcodes.java
Created July 23, 2022 15:05
2.8.5x Packet Opcodes
package emu.grasscutter.net.packet;
import java.util.HashSet;
public class PacketOpcodes {
// Empty
public static final int NONE = 0;
// Opcodes
public static final int AbilityChangeNotify = 1155;