ubuntu 22.04 设置 DNS

  1. 修改 /etc/resolvconf/resolv.conf.d/head
1
2
3
4
5
6
7
vim /etc/resolvconf/resolv.conf.d/head

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 114.114.114.114

Read More

Tab Sync Pro 无法登录

https://chrome.google.com/webstore/detail/jdlfehkflgfmniokcligbfdjobgapehn

点击插件,然后Debug,会发现发送一个 Account 请求,但是没有携带 Bearer Token,所以无法登录。根据请求的发起地方,设置一个断点。

1
2
3
4
5
6
7
8
async function Q(t, e) {
const s = new URLSearchParams(e);
return (await fetch(`${F}/api/${t}` + (s ? `?${s}` : ""), {
headers: {
Authorization: `Bearer ${K}`
}
})).json()
}

设置一个断点,等一会就好,应该是没有等待拿到值。

Read More