JAVA String.format()

JAVA String.format() flags flags是可选参数,用于控制输出的格式,比如左对齐、金额用逗号隔开。 ‘-’ 在最小宽度内左对齐,不可以与"用0填充"同

systemd-networkd

systemd-networkd dhcp networkd 内置了 dhcp client。 如果需要更新 resolv.conf, 需要启动 systemd-resolved.service 配置文件存放在 /usr/lib/systemd/network (上游提供的配置) /run/systemd/network (运行时配置) /etc/systemd/network (本地配置) 其中 /etc/systemd/network 优先级最高 networkd 有三类

tee command

tee command 1 tail -f foo.log |grep bar | tee bar.log 命令说明: 双向重定向, 从标准输入读取数据, 输出到屏幕上, 同时保存成文件。 格式: tee [-a] file 参数说明: -a: 以累加的方式, 将数据加

chroot

chroot https://www.ibm.com/developerworks/cn/linux/l-cn-chroot/ 什么是 chroot chroot,即 change root directory (更改 root 目录)。在 linux 系统中,系统默认的目录结构都是以 `/`,即是以根 (root) 开始的。而在使用 chroot 之后,系统的目录结

autojump

autojump https://linux.cn/article-3401-1.html 在命令行中切换目录是最常用的操作,不过很少有比一遍又一遍重复"cd ls cd ls cd ls ……“更令人沮丧的事情了。如果你不是百

spring restful, spring boot, maven,gradle

spring restful, spring boot, maven,gradle spring-boot-starter-parent 1 2 3 4 5 6 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.6.2</version> </parent> 表示当前pom文件从spring-boot-starter-parent继承下来,在spring-boot

agile backlog

agile backlog 积压列表的优先级选择必须权衡以下方面: 客户价值 (解决正确的问题) 业务价值 (产生的收益) 技术价值 (可以促进学习,减少风险,有牢靠的解决方案

homelab

homelab 新二级域名 在阿里云控制台添加新域名 等域名生效 drill jenkins.wiloon.com 在 wiloon.com 更新证书加入新域名, ssh aliyun podman stop nginx certbot ssh root@nginx sh /data/cert/cert.sh ssh router vi /etc/hosts /etc/init.d/dnsmasq restart DNS 192.168.50.1 Nginx 192.168.50.130 更新 nginx 在内网有梯子的机器 podman

cad 旋转

cad 旋转 旋转命令快捷键: 【RO】 旋转命令使用方法: 可通过输入【RO】回车,也可直接用鼠标点击旋转命令按钮激活旋转命令 选择需要旋转的对象 空格或回

archlinux 连接 蓝牙键盘

archlinux 连接 蓝牙键盘 filco 配对 ctrl+alt+fn 忘记已配对设备 connect 长按3秒 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #mac of bluetooth keyboard # 00:18:00:3C:A4:C5 bluetoothctl # show help info help # show keyboard info, paired, trusted,

MTR/traceroute, 路由跟踪

MTR/traceroute, 路由跟踪 使用 MTR 诊断网络问题 MTR 是一款强大的网络诊断工具, 网络管理员使用 MTR 可以诊断和隔离网络问题,并且为上游 ISP 提供有用的网络状态报告。 MTR 是传统

golang 类/type

golang 类/type 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 //类定义 type Mutex struct

golang 字符串/string

golang 字符串/string 判断字符串开头 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import ( "fmt" "strings" ) func main() { myString := "www.topgoer.com" // Option 1: (Recommended) if strings.HasPrefix(myString, "www") { fmt.Println("Hello to you too") } else { fmt.Println("Goodbye") } } go, string, join 1 2 3 4 5

openvpn

openvpn VPN, Virtual Private Network, 虚拟专用网络 OpenVPN 是一个基于 OpenSSL 库的应用层 VPN 实现, 最早由James Yonan编写 OpenVpn的技术核心是虚拟网卡,其次是SSL协议实现

socks5 -> http/https proxy, privoxy/cow

‘socks5 -> http/https proxy, privoxy/cow’ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 curl -L git.io/cow | bash #edit /home/user0/.cow/rc listen = http://127.0.0.1:7777 proxy = socks5://127.0.0.1:1080 #config http/https proxy export http_proxy=http://127.0.0.1:7777 export https_proxy=http://127.0.0.1:7777 sudo pacman -S privoxy edit /etc/privoxy/config forward-socks5 / 127.0.0.1:1080 . listen-address 127.0.0.1:8118 sudo systemctl start privoxy proxychains ProxyChains是Li

linux 字体引擎

‘linux 字体引擎’ linux下主要使用xtt freetype xfs xft这四种字体引擎,以下是这四种字体引擎的区别, xtt, freetype, xfs, xft等的区别 X Window是

FreeType

FreeType FreeType是一个免费且开源的,可移植的字体引擎,有许多程序包括游戏使用它作为字体渲染的库 FreeType is a freely available software library to render fonts.