启动Linux
阻塞控制算法BBR
。
Nginx 启用HTTP2
指定默认端口443
、传输加密ssl
、http2
等;
指定SSL
版本为目前安全的TLSv1.2
。
1 |
# cat /etc/nginx/conf.d/default.conf |
Nginx 安装
Debian
Install the prerequisites:
1 |
sudo apt install curl gnupg2 ca-certificates lsb-release |
To set up the apt repository for stable nginx packages, run the following command:
1 |
echo "deb http://nginx.org/packages/debian `lsb_release -cs` nginx" \ |
If you would like to use mainline nginx packages, run the following command instead:
1 |
echo "deb http://nginx.org/packages/mainline/debian `lsb_release -cs` nginx" \ |
Next, import an official nginx signing key so apt could verify the packages authenticity:
1 |
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - |
Verify that you now have the proper key:
1 |
sudo apt-key fingerprint ABF5BD827BD9BF62 |
The output should contain the full fingerprint 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62 as follows:
1 |
pub rsa2048 2011-08-19 [SC] [expires: 2024-06-14] |
To install nginx, run the following commands:
1 |
sudo apt update |
1 |
apt install nginx -y |
Centos
1 |
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm |
Android Captive Portal
Android
Captive Portal setting。
1 |
settings put global captive_portal_https_url https://www.noisyfox.cn/generate_204 |
Android Wake Lock
Android
凑合地控制唤醒锁。
唤醒与休眠可以通过 /sys/power/
下的 wake_lock
与 wake_unlock
文件临时性地控制系统休眠与否。在两个文件中分别追加写入字符相当于获得或抵消锁,锁不会重复。
1 |
echo 'deemedlock' > /sys/power/wake_lock |
Portable VS Code 便携模式
开启
安装目录创建 data
文件夹开启 Portable
模式。
1 |
|- VSCode-win32-x64-1.25.0-insider |
迁移
1 |
%APPDATA%\Code ---> data\user-data |
1 |
|- VSCode-win32-x64-1.25.0-insider |