每次 push 时都让输入用户名和密码是因为 https 传输时,GitHub 并不会记住用户名和密码,报错信息类似于下面这样:
E:\personal-projects\notes> git push
发送请求时出错。
fatal: HttpRequestException encountered.
发送请求时出错。
Username for 'https://github.com': xxx
Password for 'https://[email protected]... 阅读全文
先看看 react blog, 看官方怎么说的
In React blog post:
URLs starting with javascript: are a dangerous attack surface because it’s easy to accidentally include unsanitized output in a tag like <a href> and create a security hole.
In React 16.9, this pattern ... 阅读全文
Windows 查找占用端口 12345 的进程:
netstat -ano |findstr 12345
查看进程映像名称为 qbittorrent 的信息:
tasklist |findstr qbittorrent
查看进程 pid 为 3777 的映像名称:
tasklist |findstr 3777
杀掉 pid 为 3777 的进程:
taskkill -f -pid 3777
杀掉进程名(比如 java.exe ):
taskkill -f -t -im java.exe
end.
在macOS 10.15.1下测试。
mac 下有很多用 IINA 看影视资源的朋友。在倍速播放的时候,默认的快捷键是 command + ] command + [ 和 option + command + [ option + command + ]
默认的倍速规则是乘以 X 倍(X = 1.1 or X = 0.9 等)。
我建议改成自增 0.1 或者自减 0.1,win 下的 potplayer 默认设定就是这样的。对应 potplayer 的 c 和 x 快捷键。实现 0.9 1.0 ... 阅读全文
k2p的荒野无灯老毛子固件使用AP模式时,必须定义LAN网中的DNS,否则k2p本身无法上网,但是它发射出来的WiFi还是可以的~
设置方法有两种:
①编辑/etc/resolv.conf 在domain padavan的下一行添加「nameserver 10.10.10.1」即可。
[hardRouter /home/root]# cat /etc/resolv.conf
domain padavan
nameserver 10.10.10.1
②管理网页:http://10.10.10.2... 阅读全文