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 / checkdb_php456.php
Last active July 26, 2019 07:18
In php,Check MySQL working or not.
<?php
$link=mysql_connect("SERVER_ADDRESS","MYSQL_USERNAME","MYSQL_PASSWORD");
if($link) echo "OK";
else header('HTTP/1.1 500 Internal Server Error');
?>
@chenshaoju
chenshaoju / .bashrc
Created April 5, 2019 10:13
Set tty as English.
if [ "$TERM" = "linux" ];then
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
export LANGUAGE="en_US"
fi
@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 May 8, 2026 08:35
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