Skip to content

Instantly share code, notes, and snippets.

View mcxiaoke's full-sized avatar

Hello World mcxiaoke

  • Earth
View GitHub Profile
@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
@mcxiaoke
mcxiaoke / ffmpeg_examples.sh
Created April 29, 2024 14:19 — forked from visualblind/ffmpeg_examples.sh
FFmpeg CLI Examples with Comments (transcoding, remuxing, metadata stuff, thumbnail generation, nvidia hw-accel cuda h264_nvenc, bash looping, etc)
############################ FFmpeg CLI Examples ############################
-metadata[:metadata_specifier] key=value (output,per-metadata)
For example, for setting the title in the output file:
ffmpeg -i in.avi -metadata title="my title" out.flv
To set the language of the first audio stream:
ffmpeg -i INPUT -metadata:s:a:0 language=eng OUTPUT
@mcxiaoke
mcxiaoke / ffmpeg-cuda-preset-test.txt
Last active April 25, 2024 09:25
ffmpeg hevc_nvenc cuda preset speed/bitrate/filesize simple test resutls
ffmpeg -hide_banner -n -v error -stats -hwaccel cuda -hwaccel_output_format cuda -i "ptest.mp4" -c:v hevc_nvenc
-cq 26 -c:a libfdk_aac -b:a 72k -preset p1 p1.mp4 35.9x 16s 283m
ffmpeg -hide_banner -n -v error -stats -hwaccel cuda -hwaccel_output_format cuda -i "ptest.mp4" -c:v hevc_nvenc
-cq 26 -c:a libfdk_aac -b:a 72k -preset p2 p2.mp4 27.1x 22s 253m
ffmpeg -hide_banner -n -v error -stats -hwaccel cuda -hwaccel_output_format cuda -i "ptest.mp4" -c:v hevc_nvenc
-cq 26 -c:a libfdk_aac -b:a 72k -preset p3 p3.mp4 25x 24s 248m
ffmpeg -hide_banner -n -v error -stats -hwaccel cuda -hwaccel_output_format cuda -i "ptest.mp4" -c:v hevc_nvenc
根据Unicode5.0整理如下:
1)标准CJK文字
http://www.unicode.org/Public/UNIDATA/Unihan.html
2)全角ASCII、全角中英文标点、半宽片假名、半宽平假名、半宽韩文字母:FF00-FFEF
http://www.unicode.org/charts/PDF/UFF00.pdf
3)CJK部首补充:2E80-2EFF
http://www.unicode.org/charts/PDF/U2E80.pdf
@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 / disabled.txt
Created September 1, 2023 06:37
miui 14 packages disabed 20230901
adb shell pm disable-user com.miui.accessibility
adb shell pm disable-user com.miui.daemon
adb shell pm disable-user com.android.carrierdefaultapp
adb shell pm disable-user com.android.traceur
adb shell pm disable-user com.miui.miservice
adb shell pm disable-user com.xiaomi.mi_connect_service
adb shell pm disable-user com.xiaomi.mirror
adb shell pm disable-user com.android.stk
adb shell pm disable-user com.goodix.fingerprint.setting
adb shell pm disable-user com.android.cellbroadcastservice
@mcxiaoke
mcxiaoke / README.md
Created December 8, 2022 09:55 — forked from sukesh-ak/README.md
How to Convert OVA to VHDX

How to convert OVA to VHDX

  • Rename .OVA file to .7z
  • Use winrar to extract .vmdk out of it

Read here and install qemu (extract zip file)

https://cloudbase.it/qemu-img-windows/

qemu-img convert "D:\VirtualBox\Open-disk001.vmdk" -O vhdx -o subformat=dynamic "D:\VirtualBox\Open.vhdx"

@mcxiaoke
mcxiaoke / vmdk_vhdx.md
Created December 8, 2022 09:18 — forked from rahilwazir/vmdk_vhdx.md
Convert VMWare to Hyper-V (vmdk to vhdx)
@mcxiaoke
mcxiaoke / README.md
Created December 4, 2022 14:33 — forked from pklaus/README.md
README and manual page from Intel Linux Driver e1000e v3.0.4.1

e1000e Linux* Base Driver for Intel® Network Connection

================================================================================

January 13, 2014

================================================================================

@mcxiaoke
mcxiaoke / backup.env
Created November 20, 2022 12:02 — forked from ryankurte/backup.env
Linux backup automation
# Systemd environment file for backup.sh daily backup service
# Place in /etc/backup.env
# Destination for rsync file system clone
BACKUP_DEST=/media/large1/backups/raw
# Destination for restic repository
RESTIC_REPOSITORY=/media/large1/backups/restic
# Restic password file