bGZo / 2022

Track my last year activities on issues, I posted trashing here instead of social media. Actually GA will output issues labelled & comments into readme, with style of TOC & Anchors, which make could search and find it fast. NOTICE: You Need Setting G_T(token) In Repo Environment If You Want It Works Well.
http://bgzo.github.io/2022
MIT License
1 stars 3 forks source link

log(bug) #7

Open bGZo opened 2 years ago

bGZo commented 2 years ago

Stage

image

bGZo commented 2 years ago

整理房间

bGZo commented 2 years ago

English QuickRef

Meme 和 Memo 是两个单词

前者是表情包, 后者是备忘. 之前一直混着用😭

YMMV.

(also ymmv) written abbreviation for your mileage may vary: used, for example on social media and in text messages and emails, to mean that you understand people may have a different opinion or experience to yours: Their first album is better, but of course YMMV.

bGZo commented 2 years ago

传播已出版书籍内容的视频算侵权吗? 多少算?

bGZo commented 2 years ago

吃人条款

bGZo commented 2 years ago

Windows


bGZo commented 2 years ago

RSS


昨天类似的翻译的项目找了很久也没有找到, 不限于已经停更或关站的

当然这也看得出还是活跃在Github比较好, 起码项目不做了, 记录都还留着, 服务器一清理了什么都没了; 而且貌似技术社区中掘金还算好的? 淦噢😂

痛点

bGZo commented 2 years ago

电脑

[前者] 我觉得这是基本的道德良心吧,毕竟DC口插三孔插座有接地,typeC往往是插二孔插座就没接地了. via: https://www.zhihu.com/question/381287746/answer/1637537271


这里今天翻到一个电脑牌子推荐的帖子, 回复如下:

DELL - 入门商务 Vostro ,进阶 Inspiron ,高级 Latitude ,顶级 XPS/Precision

联想 - 入门 Yoga/ThinkBook/Thinkpad L14 ,进阶 Thinkpad T14/T14s ,高级 T15p ,顶级 Thinkpad X1 Carbon / X1 Extreme / P1 / P15 / P17

HP - 入门 Pavilion ,进阶 Probook/Zhan66 ,高级 EliteBook ,顶级 ZBook / ZBook Studio / ZBook via: https://www.v2ex.com/t/830186#87

电源口救援

笔电要在合盖实现开机可以说是有点难了, Thinkpad 拓展坞自带电源键, 或是其他品牌自带解决方案

小白用户(自己)能做的已经算是很少了...

bGZo commented 2 years ago

取消所有 star => unstar all repo

也不是小气, 只是发现自己的 star 已经失去控制了, 太广泛了, 有的可能已经不再需要了, 但是再筛自己需要的又太多太难了, 简直是大海捞针, 索性全取消从头来过. 专注自己真正用到的几个仓库才是王道, 把精力放在刀刃上...

当然一开始想自己写的, 抓包发现发送的居然是 post, 而不是 delete 有点意外, 当然被 REST 思想弄得有点魔怔了. posthttps 下似乎更加安全..

image

然后发现自己开启了 Authy 二部验证真的 py 不知道怎么实现, 放弃了, 发现 GithubAPI 取关居然是 delete请求, 真的是不怎么理解啊😂

最后发现了 npm 得 user-unstar, 问题解决...

via:

  1. https://docs.github.com/en/get-started/exploring-projects-on-github/saving-repositories-with-stars
  2. https://stackoverflow.com/questions/50183402/github-api-how-to-get-list-of-users-who-have-starred-a-repo-and-cloned-it
  3. https://stackoverflow.com/questions/42503179/how-to-remove-github-repository-stars-older-than-two-years
bGZo commented 2 years ago

scoop 拉不到最新的版本

安装哈希校验失败, 但是搜 issue 发现版本已经落后作者更新的 json 了, 执行安装该版本发现还是可以安装的...

因为 scoop 依赖 git, 所以我之前翻过对应的 repo, 可能不小心修改过文件, 都会让 git pull 不下来仓库信息, 所以放弃更改就行了. 具体为以下报错信息

# error: Your local changes to the following files would be overwritten by merge:
#          /xxxx/xxxx.json
git reset --hard
git pull

遗留问题

image

拉不下来.

scoop config proxy 127.0.0.1:7890
scoop config aria2-enabled false
bGZo commented 2 years ago

[PP] 远程控制

一度认为 TeamViewer 是最优解, 但是今天发现国区也需要绑定 +86 的手机号... 之后发现手机号绑到另一个号上了, 得嘞, 上另外一个号, excuse me??? You have no switches left??? 合着我这辈子就只能在这个账户下用两台设备是吗??? 官方也没个回复, 嫖不到服务, delete account, 走了...

笑死, 挂了 SG 的节点, todesk 不让注册了(表现为那个滑块纹丝不动), tmd, 也是必须绑定 +86 手机号, 然后发现 V2-安全漏洞 的帖子, 啼笑皆非.

最终确定了 VNC Viewer(从 这里 拿到了专业版试用) & Windows Remote Desktop 两个软件, 但是前者无法传输 Audio 后者无法跨平台使用都挺操蛋的. 唯一都不识别的键位就是 win 了, 需要单独调出虚拟键盘拿到, 有点繁琐.

Diff

两个软件的差别现在列举如下

优化 RD 显示及帧率

走完一遍下来基本感觉稳在 50-60 之间了,反正比之前30帧舒服得多。

  1. 显卡支持: gpedit.msc -> 计算机配置->管理模板->Windows组件->远程桌面服务->远程桌面会话主机->远程会话环境 -> enable 硬件图形适配器应用于所有远程桌面服务会话
  2. 添加注册表 -> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations -> DWORD (32位) -> DWMFRAMEINTERVAL -> 15 (十进制)
  3. reboot.

via https://blog.csdn.net/csdn_life18/article/details/108250846 & https://v2ex.com/t/746154

注意不要用 UDP 代替 TCP, 连接有时会断得很离谱. via: https://www.v2ex.com/t/507173 & https://www.nextofwindows.com/troubleshoot-and-improve-rdp-connections-with-udp

bGZo commented 2 years ago

链路改装,刷固件

改装链路

  1. 如下我叙述的那样,将远程路由变成中继

  2. 静态路由, 设置遇到另一个网段的地址, 直接转发到目的网段的路由器处理,此处类似转发的操作无需端口转发,直接用静态路由去做。

  3. Lan To Lan, 实现网络的拓展,本质还是中继(PS:Wan To Lan 的路由器连接方法需要关闭 Lan 入口路由器的 DHCP功能,并设置网关为 Wan 出口路由 IP)

via: wikihow & https://zhuanlan.zhihu.com/p/85129768https://www.zhihu.com/question/26598324

更多链接:

今天发现没办法用远程桌面了, 才意识到去年搬家网络链路也变了(之前我电脑做服务器是直接连接交换机的, 现在电脑已经成了三级设备), 虽然知道网络层已经把两个网络独立开了, 还是傻逼般折腾了好一会儿, 换局域网的 IP, 用小米路由的转口转发什么的, 都不成. 中途关了 DHCP 直接连后台都进不去了, 最后还是走的重置路由. 真🐶.

所以现在要么是复现当时的链路连接方法, 要么另寻他法, 因为自己没有找到合适的解决方案. 而且官方路由无法单独设置子网掩码, 永远是255.255.255.0, 所以产生了要刷路由固件的想法.

刷固件

个人买路由器是在 2006 的时候, 所以固件版本为 1.0.14-stable 也不用折腾去降级了, 直接跟着 B站视频 做, 一个小时连拆带刷, 再带探索, 一气呵成, 最后实现了也就是 对指定 IP(设备) 科学上网 和 去广告这两个馋了我好久的功能了...

大概流程也就是像它那个 脑图 那样.

另外 安山的旧蓝奏的链接一般都是 lanzous.com, 用的时候全换成 lanzoux.com 就能用了

家里还有台之后买的 ac2100, 回头有机会也一并刷上去吧

突然发现小米路由器有中继功能, 什么都不用设置, 直接在网络连接里开启中继, 本来想着用 lan to lan + DHCP, 没想到小米直接可以, 太棒了. 最后后台变成了 192.168.2.164. 在考虑 IP 冲突的问题 这样不会冲突吧

一点概念

电脑开始裸奔

因为刷固件的时候把火绒卸载了, 现在就出现了另一个问题,我不想装回去了。

bGZo commented 2 years ago

Git

bGZo commented 2 years ago

Jekyll 整修记

可能会用到的 CSS 代码

类 github 表格 CSS.

/* via: typora github theme */ 
table {
  padding: 0;
  word-break: initial;
  border-collapse: collapse;
}

table tr {
  border: 1px solid #dfe2e5;
  margin: 0;
  padding: 0;
}

table tr:nth-child(2n), 
thead {
  background-color: #f8f8f8;
}

table th {
  background:#bec1c4;
  font-weight: bold;
  border: 1px solid #dfe2e5;
  border-bottom: 0;
  margin: 0;
  padding: 6px 13px;
}

table td {
  border: 1px solid #dfe2e5;
  margin: 0;
  padding: 6px 13px;
}

table th:first-child,
table td:first-child {
  margin-top: 0;
}

table th:last-child,
table td:last-child {
  margin-bottom: 0;
}

tr:nth-child(n):hover td {
  background:#D7C4BB;
}

目录 Css

/* via: sspai.com */
.contents{
  font-size: 16px;
  overflow: auto;
  max-height: 400px;
  max-width: 300px;
  border: 1px solid #a2a9b1;
  background-color: #f8f9fa;
  padding: 10px;
}

.contents>ul{
  list-style: none;
  margin-left: -20px;
}

Math Latex Supported.

8

Comment Jmp to Github Issues

via: Variables | Jekyll • Simple, blog-aware, static sites

bGZo commented 2 years ago

Samsung

Galaxy App Booster

via: https://www.youtube.com/watch?v=riWyEKS4d-M

using android feature via https://android-developers.googleblog.com/2019/04/improving-app-performance-with-art.html

bGZo commented 2 years ago

Virtualbox

腾讯会议 在 win7虚拟机 下绘制图形失败, 必须重启电脑

就算是开启3d加速, 显卡拉到 256M 还是收效甚微. 所以打算换个系统 win11.

配置的时候记得开启如下选项

  1. 分配硬盘一定要 100G(动态), 要不容易卡在安装蓝屏.
  2. 系统 -> 主板 -> 内存4G & 启用EFI
  3. 系统 -> 处理器 -> 处理器数4 & 启用PAE/NX
  4. 显示 -> 屏幕 -> 硬件加速 & 256M

进去系统在安装前 shief+F10 打开 cmdregedit

HKEY_LOCAL_MACHINE\SYSTEM\Setup 下新建一个 LabConfigkey, 其下新建 BypassTPMCheck, BypassRAMCheck, BypassSecureBootCheck 三个 DWORD (32位) 值,赋值均为 1. 骗过校验之后就能直接安装了.

之后发现还是很卡, 在 系统 -> 硬件加速 -> Hype-V(win) / KVM(linux) 会有所好转. Mac 则有 PD备胎 可选

而且硬件居然显示的不是 SSD, 而是HDD. 暂时不知道要怎么做....

Refs

  1. https://www.zhihu.com/question/58179981
  2. https://www.zhihu.com/question/309295881
  3. https://www.zhihu.com/question/63156851
  4. https://www.v2ex.com/t/805490
  5. https://www.v2ex.com/t/623493
  6. https://www.v2ex.com/t/284666
bGZo commented 2 years ago

TTRSS Shortcuts, ttrss 快捷键

I'm sorry that I couldn't found any related from offical wiki and other site. The only I found helpful site is unavailable now(via https://www.isitdownrightnow.com/ttrss.info.html).

And I found some shortcuts by myself except arrow keys and j/k/n(j = previous category. · k = next category. · n = next unread article). 😂

Shortcuts Mean
Shift + q Mark All Readed.
o Open Origin Url in new tab
space Scroll
bGZo commented 2 years ago

Get Windows WLAN IP

netsh interface ip show address "WLAN" | findstr "IP Address" | Select-String -Pattern '([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*)' | %{ $_.matches.Value }

via: networking - How to get network ip address via windows command prompt? - Super User

After I learn some usage of windows command line, It's weird that man xxx/Get-Help xxx useless than xxx ?, like following:

PS C:\Users\15517> man netsh

NAME
    Netsh-Lan

SYNTAX
    Netsh-Lan

PARAMETERS
    None

INPUTS
    None

OUTPUTS
    System.Object

ALIASES
    None

REMARKS
    None

PS C:\Users\15517> netsh ?

Usage: C:\windows\system32\netsh.exe [-a AliasFile] [-c Context] [-r RemoteMachine] [-u [DomainName\]UserName] [-p Password | *]
             [Command | -f ScriptFile]

The following commands are available:

Commands in this context:
?              - Displays a list of commands.
add            - Adds a configuration entry to a list of entries.
advfirewall    - Changes to the `netsh advfirewall' context.
branchcache    - Changes to the `netsh branchcache' context.
bridge         - Changes to the `netsh bridge' context.
delete         - Deletes a configuration entry from a list of entries.
dhcpclient     - Changes to the `netsh dhcpclient' context.
dnsclient      - Changes to the `netsh dnsclient' context.
dump           - Displays a configuration script.
exec           - Runs a script file.
firewall       - Changes to the `netsh firewall' context.
help           - Displays a list of commands.
http           - Changes to the `netsh http' context.
interface      - Changes to the `netsh interface' context.
ipsec          - Changes to the `netsh ipsec' context.
lan            - Changes to the `netsh lan' context.
mbn            - Changes to the `netsh mbn' context.
namespace      - Changes to the `netsh namespace' context.
netio          - Changes to the `netsh netio' context.
p2p            - Changes to the `netsh p2p' context.
ras            - Changes to the `netsh ras' context.
rpc            - Changes to the `netsh rpc' context.
set            - Updates configuration settings.
show           - Displays information.
trace          - Changes to the `netsh trace' context.
wcn            - Changes to the `netsh wcn' context.
wfp            - Changes to the `netsh wfp' context.
winhttp        - Changes to the `netsh winhttp' context.
winsock        - Changes to the `netsh winsock' context.
wlan           - Changes to the `netsh wlan' context.

The following sub-contexts are available:
 advfirewall branchcache bridge dhcpclient dnsclient firewall http interface ipsec lan mbn namespace netio p2p ras rpc trace wcn wfp winhttp winsock wlan

To view help for a command, type the command, followed by a space, and then
 type ?.
bGZo commented 2 years ago

手机📱

bGZo commented 2 years ago

为什么对她这么不好

她有没有曾为我做些什么 为什么总是要我去做她做不来的事情 自己去做不就好了 不要什么事情都找我 很烦

我不想听别人的废话 太费我的精力了

一点点的东西就把我的精力打散了 好无奈

怎么破除这样脆弱的状态

果然应该为明天做更加具体的计划吗

当然计划应该有剩余

bGZo commented 2 years ago

Wget Here

via: https://www.youtube.com/watch?v=Oe40pxcjPpM

wget --mirror --page-requisites --convert-link --no-clobber --no-parent --domains (root-domain) (url you want)
bGZo commented 2 years ago

Python

Uninstall Package I do not need

Using pip-date · PyPI make sure what you want to uninstall.

pip freeze > requirements.txt
pip uninstall -r requirements.txt [-y]

Look where you install it

python -m site

Install Env Here

pip install -r requirements.txt -t .

Pipenv

#pip.ini
trusted-host = pypi.python.org
               pypi.org
               files.pythonhosted.org
proxy = <proxy:port>
http_proxy = xxx
https_proxy = xxx

# pipfile
[[source]]
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
bGZo commented 2 years ago

Java

Basic

Maven

via: 廖雪峰

bGZo commented 2 years ago

WSL

bGZo commented 2 years ago

android browser download file cannot open(cannot find

bGZo commented 2 years ago

Http-sever Video Sound Strange

bGZo commented 2 years ago

Win10

Open Hibernate

# open administer power
powercfg.exe /hibernate on

Power Option (Battery Plan) -> Choose what the power button do -> Change settings that are currently unavailable -> Hibernate.

via: https://adersaytech.com/kb-article/enable-hibernate-mode.html

bGZo commented 2 years ago

USB 接线图

via: http://www.usbzh.com/article/detail-206.html

bGZo commented 2 years ago

Gtihub Page -> Index Directory

bGZo commented 2 years ago

Github Action

bGZo commented 2 years ago

人体工程学, 表面解决腰酸背痛问题

via: 机の高さと椅子の座面の高さの関連性 | Bauhütte®

bGZo commented 2 years ago

Productivity Pron

bGZo commented 2 years ago

抓包

bGZo commented 2 years ago

Fuck Inner Mongolia DNS

PS C:\Users\xxx\Desktop\review> nslookup.exe github.com 222.74.1.200
Server:  200.1.74.222.broad.hh.nm.dynamic.163data.com.cn
Address:  222.74.1.200

Non-authoritative answer:
Name:    github.com
Addresses:  ::
          0.0.0.0

PS C:\Users\xxx\Desktop\review> nslookup.exe github.com 222.74.126.230
Server:  230.126.74.222.broad.tl.nm.dynamic.163data.com.cn
Address:  222.74.126.230

Non-authoritative answer:
Name:    github.com
Addresses:  ::
          0.0.0.0

PS C:\Users\xxx\Desktop\review> nslookup.exe github.com 222.74.59.65
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  222.74.59.65

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
PS C:\Users\xxx\Desktop\review> nslookup.exe github.com 219.148.162.31
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  219.148.162.31
PS C:\Users\xxx\Desktop\review> nslookup.exe github.com 219.148.162.31
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  219.148.162.31

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out
PS C:\Users\xxx\Desktop\review> nslookup.exe github.com 222.74.39.50
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  222.74.39.50

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
*** Request to UnKnown timed-out

Change Public DNS

via: 如何选择适合的公共 DNS

DNSPod Anycast Export Address TCP DoT DoH ECS Mark
腾讯 上海 / 天津 / 广州 / 香港 同左 119.29.29.29 / 119.28.28.28 国内
阿里云 成都 / 深圳 / 杭州 同左 223.6.6.6 / 223.5.5.5
南京信风 南京 / 济南 / 芝加哥 N/A 114.114.114.114 / 114.114.115.115
CNNIC 北京 / 杭州 / 香港 CNNIC / 阿里云 1.2.4.8 / 210.2.4.8
百度 北京 / 南京 / 深圳 同左 180.76.76.76
Google 36+ 数据中心 边缘网络 8.8.8.8 / 8.8.4.4 国外
OpenDNS 32+ 数据中心 N/A 208.67.222.222 / 208.67.220.220
Cloudflare DNS 160+ 数据中心 同左 1.0.0.1 / 1.1.1.1
Freenom World Transit 80.80.80.80 / 80.80.81.81
DNS.sb SB Network 185.222.222.222 / 185.184.222.222
bGZo commented 2 years ago

Powershell

Background Task

(xxx) > task.log 2>&1 &
# 最后一个 & 需要注意

access %TEMP directory

cd $env:temp
bGZo commented 2 years ago

C

bGZo commented 1 year ago

Spotify

bGZo commented 1 year ago

Cloudflare Forward Request

  1. DNS whatever: set type A, Name \@, Content 8.8.8.8 and proxy
  2. Rules: jingrong.wang/*, Forwarding URL (Status Code: 301 - Permanent Redirect, Url: http://blog.bgzo.cc)
  3. Done!

via: 使用CloudFlare进行域名重定向-月光博客 & Understanding and configuring Cloudflare Page Rules (Page Rules Tutorial) – Cloudflare Help Center