Maven Mirrors

Huawei

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<repositories>
<repository>
<id>hw</id>
<name>hw</name>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
</repository>
</repositories>

<pluginRepositories>
<pluginRepository>
<id>hw</id>
<name>hw</name>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
</pluginRepository>
</pluginRepositories>

SRE 工具箱

guacamole

a client-less remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH over HTML5.

github :临时使用版本,包含了数据,如果使用在 PRD 推荐使用官方的 IMAGE

1
2
3
4
docker run \
-p 8080:8080 \
-v </path/to/config>:/config \
maxwaldorf/guacamole

网易云音乐 IN Liunux

22.04 安装网易云音乐

下载链接

1
2
cd /opt/netease/netease-cloud-music
sudo vim ./netease-cloud-music.bash
1
2
3
4
5
6
7
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
export LD_LIBRARY_PATH="${HERE}"/libs:$LD_LIBRARY_PATH
export QT_PLUGIN_PATH="${HERE}"/plugins
export QT_QPA_PLATFORM_PLUGIN_PATH="${HERE}"/plugins/platforms
cd /lib/x86_64-linux-gnu/
exec "${HERE}"/netease-cloud-music $@

Read More

修复系统

今天遇见2个问题,第一个突然显卡驱动不能安装。

修复 Nv 驱动无法安装的问题

1
LC_MESSAGES=C dpkg-divert --list '*nvidia-340*' | sed -nre 's/^diversion of (.*) to .*/\1/p' | xargs -rd'\n' -n1 -- sudo dpkg-divert --remove\nsudo apt --fix-broken install

修 /usr/lib/x86_64-linux-gnu/ 缺失

1
sudo apt-get install --reinstall `dpkg -S /usr/lib/x86_64-linux-gnu/ \\n| sed 's/,/ /g' | head -c-28`

自建 Confluence Quick Start

Docker 化 Confluence

Dockerfile
1
2
3
4
FROM atlassian/confluence-server:7.13
# 使用 Mysql,PG 默认不需要
ADD mysql-connector-java-8.0.19.jar /opt/atlassian/confluence/lib/
ADD atlassian-agent-v1.3.1/atlassian-agent.jar /opt/atlassian/atlassian-agent.jar

atlassian-agent 点此获取

Docker-Compose

docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
confluence:
build: .
container_name: confluence
depends_on:
- mysql
environment:
JAVA_OPTS: -javaagent:/opt/atlassian/atlassian-agent.jar # 挂入破解插件
JVM_MAXIMUM_MEMORY: 4096m
volumes:
- /mnt/confluence/data/:/var/atlassian/application-data/confluence/
ports:
- "8090:8090"
logging:
driver: "json-file"
options:
max-size: 50m
restart: unless-stopped

Read More