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()
}

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

자세히 보기

Linux 测速

互联网测速

1
2
3
4
5
6
wget https://raw.github.com/sivel/speedtest-cli/master/speedtest.py
chmod a+rx speedtest.py
mv speedtest.py /usr/local/bin/speedtest
chown root:root /usr/local/bin/speedtest

speedtest

节点间测速

1
2
3
4
5
6
7
8
sudo apt install iperf

# service
iperf -s

# client

iperf -c <SERVER_IP>

Docker Tips

ofelia - a job scheduler

一个基于 Label 的 docker job 工具

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
version: "3"
services:
ofelia:
image: mcuadros/ofelia:latest
depends_on:
- nginx
command: daemon --docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
labels:
ofelia.job-local.my-test-job.schedule: "@every 5s"
ofelia.job-local.my-test-job.command: "date"

nginx:
image: nginx
labels:
ofelia.enabled: "true"
ofelia.job-exec.datecron.schedule: "@every 5s"
ofelia.job-exec.datecron.command: "uname -

guacamole

一个 SSH 的 Web 平台,不过有个中文问题需要解决,解决的是 guacd 部分,不是 guacamole 部分,参考 快速搭建基于Docker的Guacamole环境并实现中文显示

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
guacd:
container_name: guacd_compose
image: guacamole/guacd
restart: always
volumes:
- $PWD/data/guacd/drive:/drive:rw
- $PWD/data/guacd/record:/record:rw
guacamole:
image: guacamole/guacamole
container_name: guacamole_compose
depends_on:
- mysql
environment:
GUACD_HOSTNAME:
MYSQL_DATABASE:
MYSQL_USER:
MYSQL_PORT:
MYSQL_HOSTNAME:
MYSQL_PASSWORD:
links:
- guacd
ports:
- 8080/tcp
restart: always