go > docker

‘go > docker’ 1 2 3 4 5 gOOS=linux GOARCH=arm go build . docker build -t registry.wiloon.com/nj4xx-data:v0.1.0 . docker push registry.wiloon.com/nj4xx-data:v0.1.0 docker pull registry.wiloon.com/nj4xx-data:v0.1.0

windows wsl

windows wsl WSL: windows subsystem for Linux command 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #to list available distributions wsl.exe --list --online wsl -l -o wsl --install Ubuntu-22.04 wsl --shutdown wsl --list --verbose wsl -l -v # 查看wsl状态 wsl --status # reboot, 先 shutdown 再打开就行了... wsl --unregister

Windows apps, win apps

Windows apps, win apps WizTree 硬盘占用分析, 商用收费 SpaceSniffer 硬盘占用分析, 商用友好 WinDirStat MiniTool Partition Wizard, 磁盘分区工具 anydeak 远程桌面 todesk 远程桌面 taskmgr, 任务管理器, C:\Windows\System32\Taskmgr.exe winget WinScp, WinSCP.WinSCP firefox, Mozilla.Firefox powershell, Microsoft.PowerShell curl, cURL.cURL Golang, GoLang.Go Tabby, Eugeny.Tabby choco

WAL

WAL 什么是 WAL WAL (Write Ahead Log) 预写日志,是数据库系统中常见的一种手段,用于保证数据操作的原子性和持久性。 在计算机科学中,「预写式日志」 (Write-ahead logging,

Openssl 生成自签名证书, self-signed cert

Openssl 生成自签名证书, self-signed cert ecc crt https://ayushsuman.medium.com/creating-elliptic-curve-based-certs-using-openssl-d4ebbb9d071f 1 2 3 4 # Create two directories for all certs and root private key that you will generate mkdir certs private # Generate the elliptic curve private key openssl ecparam -out private/ca-key.pem -name prime256v1 -genkey foo.cnf 修改 dir 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

golang 算符优先级

golang 算符优先级 Binary operators (MACAO) Prio Operators Note 1 * / % « » & &^ Multiplicative 2 + - ^ Additive 3 == != < <= > >= Comparison 4 && And 5 | Or

循环冗余校验 (CRC)

循环冗余校验 (CRC) 从奇偶校验说起 所谓通讯过程的校验是指在通讯数据后加上一些附加信息,通过这些附加信息来判断接收到的数据是否和发送出的数据相同。比

golang base64

golang base64 http://www.01happy.com/golang-base64-encode-decode/ golang中base64编码和解码 Golang 3年前 (2016-08-05) 1011浏览 0评论 golang中base64的编码和解码可以用内置库encoding/b

golang bytes.buffer

golang bytes.buffer 1 buf := bytes.NewBuffer([]byte{}) bytes.buffer 是一个缓冲 byte 类型的缓冲器,这个缓冲器里存放着都是 byte A buffer is a variable-sized buffer of bytes with Read and Write methods. The zero value for Buffer is an empty buffer ready to use. 创建 Buffer 缓冲器 1 2 3 4 5 6 7

jpackage, JEP 343

jpackage, JEP 343 https://www.infoq.cn/article/Hx61r30V8*Ur5ltrQjXu?utm_source=rss&utm_medium=article https://openjdk.java.net/jeps/343 OpenJDK 社区发布了JEP 343: 打包工具的早期访问版本。JEP 343: 打包工具,又名 jpackage,是打包自包含 Java 应用程序和 Java 运行时环境的新工具。

DecimalFormat

DecimalFormat 我们经常要将数字进行格式化,比如取2位小数,这是最常见的。Java 提供 DecimalFormat类,帮你用最快的速度将数字格式化为你需要的

霍桑效应

霍桑效应 20 年代时,在芝加哥郊外一个名为"霍桑"的工厂里,研究人员在研究照明条件对工人绩效表现的影响。研究人员最初认为,随

SSL 故障分析

SSL 故障分析 1 2 3 4 5 6 7 8 openssl s_client -connect host0:port0 2>&1 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' openssl verify foo.pem openssl s_client -connect host0:port0 -state -showcerts 解码根证书 openssl x509 -text -in roch.pem https://www.ibm.com/developerworks/cn/linux/l-cn-sclient/index.html

clonezill

clonezill download clonezill iso from https://clonezilla.org/downloads.php install balenaEtcher 1 dd bs=1M conv=fdatasync if=./clonezilla-live-3.2.0-5-amd64.iso of=/dev/sdx 1 2 3 4 5 6 7 8 9 start clonezilla device-image nfs_server dhcp nfs4 192.168.50.227 /backup_xxxx/ beginner save parts clonezill https://clonezilla.org/ https://clonezilla.org/liveusb.php#macos-setup Download the Clonezilla Live iso file. Insert a USB flash drive on the Mac machine. Erase it using the standard Mac Disk Utility (exFAT works fine). Download balenaEtcher for macOS, then follow its