This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"access": "/var/log/v2ray/access.log", | |
"error": "/var/log/v2ray/error.log", | |
"loglevel": "warning" | |
}, | |
"inbound": { //理论最安全的方式 ws,有条件加上TLS | |
"port": 20080, //开启的端口,建议实用caddy加上TLS加密 | |
"protocol": "vmess", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#新建库并推送到远端 | |
git remote add origin [email protected]:junex/heartdrop.git #添加远端 | |
git push -u origin master #推到远端 | |
#其他 | |
git branch -a #查看所有分支 | |
git branch -b dev orignal/dev #迁出远端dev并跟踪 | |
git checkout . #还原当前的更改 | |
git clean -xdf #删除未跟踪的文件,不加x,则忽略.gitignore的文件 | |
git stash #贮藏更改 | |
git stash list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rktools.exe | |
instsrv 服务名 srvany.exe完整路径 | |
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\服务名 | |
直接在注册表中改,不需要双斜杠 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Shadowsocks\Parameters] | |
"Application"="C:\\Python27\\Scripts\\ssserver.exe" | |
"AppDirectory"="C:\\Python27\\Scripts\\" | |
"AppParameters"="-c C:\\Python27\\Scripts\\shadowsocks.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
系统目录下只建议用root explorer更改 | |
/etc/mcd.conf | |
/vendor/bin/init.qcom.post_boot.sh | |
#echo "0,100,200,750,900,906" > /sys/module/lowmemorykiller/parameters/adj | |
echo "14746,18432,22118,25805,40000,55000" > /sys/module/lowmemorykiller/parameters/minfree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set password = password('password'); | |
use mysql; | |
update user set Host='%' where User='root'; | |
flush privileges; | |
grant all privileges on *.* to 'user'@'host' with grant option; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powercfg /devicequery wake_armed | |
powercfg /deviceenablewake "Logitech HID-compliant Gaming Mouse G90/G100/G100s (001)" | |
powercfg /devicedisablewake "Logitech HID-compliant Gaming Mouse G90/G100/G100s (001)" | |
powercfg /devicequery wake_from_S1_supported | |
nircmd standby | |
修改休眠文件位置 | |
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup\Power Management | |
休眠文件大小 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* ^(?=.*httplog)(?=.*command).* 同时包含httplog和command | |
* ^(?!.*httplog).* 不包含httplog的日志 | |
* svn co https://github.com/LuckJC/pro-mk/trunk/packages/apps/PermissionControl | |
everything C:\Windows\System32 size:<1kb parents:3 | |
gradlew processDebugResources --debug | |
Linux | |
查看默认的target,执行:systemctl get-default | |
开机以命令模式启动,执行: systemctl set-default multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/BACKUP_SYSTEM | |
sudo tar -jpcvf ~/BACKUP_SYSTEM/Ubuntu-16.04-20170128-home-z170ud3.tar.bz2 \ | |
--exclude=/home/sj/BACKUP_SYSTEM \ | |
--exclude=/proc \ | |
--exclude=/lost+found \ | |
--exclude=/sys \ | |
--exclude=/mnt \ | |
--exclude=/tmp \ | |
--exclude=/media \ | |
--exclude=/dev \ |