Skip to content

Instantly share code, notes, and snippets.

View chenshaoju's full-sized avatar
🏠
Working from home

Chen Shaoju chenshaoju

🏠
Working from home
View GitHub Profile
@chenshaoju
chenshaoju / Windows 7.ini
Last active October 31, 2019 02:31
MacType Settings
[General]
Name=Windows 7
HintingMode=2
AntiAliasMode=2
NormalWeight=10
BoldWeight=1
ItalicSlant=1
EnableKerning=1
GammaMode=-1
LcdFilter=2
@chenshaoju
chenshaoju / gist:ec18f2081cb12f85752f4c8259b54b9a
Last active February 3, 2024 15:32
Force Enable VoLTE for LineageOS by build.prop
# It's may out of the day.
# Source: https://forum.xda-developers.com/showpost.php?p=73608658&postcount=28
# Debug Options
persist.dbg.ims_volte_enable=1
persist.dbg.volte_avail_ovr=1
persist.dbg.vt_avail_ovr=1
persist.dbg.wfc_avail_ovr=1
# Radio Options
@chenshaoju
chenshaoju / 111918-10078-01.dmp
Created November 19, 2018 07:20
Windows 10 1809 BSOD Dump Analysis (2)
Microsoft (R) Windows Debugger Version 10.0.17134.12 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\ShareFiles\111918-10078-01.dmp]
Mini Kernel Dump File: Only registers and stack trace are available
************* Path validation summary **************
@chenshaoju
chenshaoju / 111718-11937-01.dmp
Created November 17, 2018 01:24
Windows 10 1809 BSOD Dump Analysis
Microsoft (R) Windows Debugger Version 10.0.17134.12 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [D:\ShareFiles\111718-11937-01.dmp]
Mini Kernel Dump File: Only registers and stack trace are available
************* Path validation summary **************
@chenshaoju
chenshaoju / PhysicalDrive3.vmdk
Created October 15, 2018 03:50
VirtualBox PhysicalDrive disk file.
# Disk DescriptorFile
# This file not tested, You need to take your own risks.
version=1
# Change the CID below if you want.
CID=012ef9ef
parentCID=ffffffff
createType="fullDevice"
# Get your disk number in /dev/ or Disk Management, And change the 3 number below.
RW 2004991 FLAT "\\.\PhysicalDrive3" 0
@chenshaoju
chenshaoju / checkportconn.sh
Last active September 30, 2018 08:28
Check Service Port Connection Status
#!/bin/sh
#
# Change "currentserverport" Port 443 if not correct.
currentsship=$(w |grep pts/0 |awk '{print $3}')
currentserverip=$(ifconfig eth0 |grep broadcast |awk '{print $2}')
currentserverport="443"
currentserveripport=$currentserverip":"$currentserverport
### Important
This manual only applicable on the non-SIP003 standard plugin, if your using plugin is in compliance with the SIP003 standard, read plugin manual or README file to config.
### Environment Variables
In Shadowsocks for Windows, can use 3rd plugins without [SIP003](https://github.com/shadowsocks/shadowsocks-org/wiki/Plugin) standard support.
Shadowsocks for Windows provided 4 environment variables for plugin config:
`%SS_LOCAL_HOST%` `%SS_LOCAL_PORT%` `%SS_REMOTE_HOST%` `%SS_REMOTE_PORT%`
@chenshaoju
chenshaoju / 加密 Oracle 修正.reg
Last active June 13, 2018 01:11
修复远程桌面连接客户端提示“要求的函数不受支持”问题。
Windows Registry Editor Version 5.00
;出于安全考虑,不建议长期使用此参数覆盖CredSSP安全设置。
;For security reasons, it is not recommended to use this parameter for long-term coverage of CredSSP security settings
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters]
"AllowEncryptionOracle"=dword:00000002
@chenshaoju
chenshaoju / gist:c819d48ef68544a484751dc3f8cb28e1
Last active September 1, 2018 04:43
Android portal server config
settings put global captive_portal_mode 1
settings put global captive_portal_use_https 1
settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
settings put global captive_portal_fallback_url http://captive.v2ex.co/generate_204
settings put global captive_portal_other_fallback_urls http://www.google.cn/generate_204
@chenshaoju
chenshaoju / clean.sh
Last active April 7, 2018 13:27
OnePlus 5T Firmware Clean/Flash bash script
#!/sbin/sh
#
# In some case, you may need use "sh ./clean.sh" to run this script.
dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/oem_stanvbk bs=4096
dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib64 bs=4096
dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/cmnlib bs=4096
dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/hyp bs=4096
dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/pmic bs=4096
dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/tz bs=4096
dd if=/dev/zero of=/dev/block/platform/soc/1da4000.ufshc/by-name/devcfg bs=4096