python 替换 excel 特定内容

...

November 28, 2021 · Leon

速查小能手cheat.sh

写代码经常需要搜索一些命令、函数或者编程语言语法的问题,都可以通过其快速搜索而得到示例,小能手呀。 终端,使用 curl 即可启动: curl cheat.sh curl cht.sh 比如UNIX/Linux 命令: curl cheat.sh/tar curl cht.sh/curl curl https://cheat.sh/rsync curl https://cht.sh/tr 模糊查找,比如想查看如何建立快照,可使用~Keyword 的形式来查询: curl cht.sh/~snapshot 各种语言: curl cht.sh/go/Pointers curl cht.sh/scala/Functions curl cht.sh/python/lambda 具体支持语言列表用list查询: curl cht.sh/go/:list 各种问题解决方式,语言/问题描述: ...

November 20, 2021 · Leon

Win11 官方ISO 文件哈希值

建议Win11 直接从下面链接下载哈,当然也可以采用其它下载点。 https://www.microsoft.com/zh-cn/software-download/windows11 如果您想验证下载数据的完整性和真实性,请按照以下步骤操作: 下载所需产品 ISO 文件,并按照安装指南进行操作。 开启 Windows PowerShell。如果您需要查找操作系统中 PowerShell 的位置,请单击此处查看帮助。 在 PowerShell 中,使用 Get-FileHash cmdlet 计算您下载的 ISO 文件的哈希值。例如: Get-FileHash C:\Users\用户1\Downloads\Contoso8_1_ENT.iso ...

October 25, 2021 · Leon

WSL2下 Debian10 卸载docker

WSL2 尝试卸载dockers,发现一直报错,原因docker 这个服务已经停了,而无法卸载,尴尬 Removing docker-ce (5:20.10.7~3-0~debian-buster) ... invoke-rc.d: could not determine current runlevel [....] Stopping Docker: dockerstart-stop-daemon: warning: failed to kill 2160: No such process No process in pidfile '/var/run/docker-ssd.pid' found running; none killed. invoke-rc.d: initscript docker, action "stop" failed. dpkg: error processing package docker-ce (--remove): installed docker-ce package pre-removal script subprocess returned error exit status 1 dpkg: error while cleaning up: installed docker-ce package post-installation script subprocess returned error exit status 1 dpkg: docker-ce-cli: dependency problems, but removing anyway as you requested: docker-ce depends on docker-ce-cli. Removing docker-ce-cli (5:20.10.7~3-0~debian-buster) ... Errors were encountered while processing: docker-ce E: Sub-process /usr/bin/dpkg returned an error code (1) 可以看到 invoke-rc.d: could not determine current runlevel ,查看docker-ce.prerm ...

June 26, 2021 · Leon

WSL2下 Debian10 运行Podman

...

June 26, 2021 · Leon

WSL2下 Debian10 docker启动失败解决

win10利用WSL2安装docker, curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh service docker start 安装后,发现以下错误, grep: /etc/fstab: No such file or directory [FAIL] Docker is not running ... failed! 对于/etc/fstab,直接用touch创建即可 touch /etc/fstab 对于后者,可以用下面的解决 update-alternatives --set iptables /usr/sbin/iptables-legacy update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy 接着,启动就可以啦 service docker start 测试 # 检查dockerd进程启动 service docker status ps aux|grep docker # 检查拉取镜像等正常 docker pull busybox docker images docker image ls

June 26, 2021 · Leon