Win 10

Clean log files

C:\Windows\System32\winevt\Logs
按Ctrl+A全选后使用 Shift + Delete 删除,一些正被services使用的文件无法被删除。

Open Administrator Powershell:

1
2
Get-EventLog -List
Remove-EventLog -LogName "some Log from list"

ps-eventlog.png

禁用休眠

休眠会将系统内存保存到磁盘文件hiberfil.sys中。可以通过

1
powercfg /hibernate off

关闭休眠功能

Linux

Refer to https://billystudio.github.io/2018/05/16/Command-of-the-day-May-sixteenth-2018/

新建一个Spring Boot项目

添加Swagger-ui和Swagger依赖

@EnableSwagger2

更改docker镜像源为阿里云

1
2
sudo vim /etc/docker/daemon.json
cat /etc/docker/daemon.json

{
“registry-mirrors”: [“https://gvv1xf6d.mirror.aliyuncs.com"]
}

拉取系统镜像并运行:

1
2
docker pull debian
docker run -it debian bash

更改debian镜像源

1
2
3
4
5
6
7
8
9
10
cd /etc/apt
cp sources.list sources.list.bak
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" > sources.list.tsinghua
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free" >> sources.list.tsinghua
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free" >> sources.list.tsinghua
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free" >> sources.list.tsinghua
mv sources.list.tsinghua sources.list
apt install apt-transport-https ca-certificates
sed -E -i 's/http/https/' sources.list
apt update

docker commit e7f167a49946 wsd/testimg:1 # container id
docker run -it wsd/testimg:1 bash

Several extensions that I use frequently.

Ad-block plus

屏蔽百度热搜

1
2
3
www.baidu.com##div[tpl="right_toplist1"]
www.baidu.com##div[tpl="right_toplist"]
www.baidu.com##div[class="cr-content"]

屏蔽知乎热搜

1
www.zhihu.com##div[class="Card TopSearch TopSearch--new"]

补:一些常用快捷键

Alt+Left/Right 用于单标签浏览时回退到前一条和快进到后一条
Alt+Tab 切换标签页
Alt+W 关闭当前标签页

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×