上一页 1 ··· 16 17 18 19 20
摘要: mount /dev/sda2 /mnt mount /dev/sda1 /mnt/boot/efi cd /mnt mount -t proc proc proc/ mount -t sysfs sys sys/ mount -o bind /dev dev/ chroot . pacman -S 阅读全文
posted @ 2022-09-28 21:04 卓能文 阅读(29) 评论(0) 推荐(0)
摘要: 为docker配置国内镜像地址,用于在pull镜像下载加速 创建配置文件daemon.json 在目录/etc/docker/daemon.json下,如果没,则创建该文件 按如下格式化添加镜像地址 { "registry-mirrors": [ "https://docker.m.daocloud 阅读全文
posted @ 2022-05-14 09:28 卓能文 阅读(211) 评论(0) 推荐(0)
摘要: package main import "fmt" type Number interface { int64 | float64 } func main() { // Initialize a map for the integer values ints := map[string]int64{ 阅读全文
posted @ 2022-03-19 11:41 卓能文 阅读(34) 评论(0) 推荐(0)
摘要: 最近常玩docker,更新docker latest镜像时,如果镜像较多,更新删除感觉有点麻烦,写代码如下: #!/usr/bin/env -S v run import os fn split_lines(content string) [][]string { mut lines := [][] 阅读全文
posted @ 2021-12-07 19:58 卓能文 阅读(840) 评论(0) 推荐(0)
摘要: 更新pip包 Windows pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_} linux pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = 阅读全文
posted @ 2021-12-03 14:31 卓能文 阅读(56) 评论(0) 推荐(0)
摘要: 新建layout touch ~/.lyx/layouts/easybook.layout easybook.layout内容: #% Do not delete the line below; configure depends on this # \DeclareLaTeXClass[easyb 阅读全文
posted @ 2021-11-20 13:55 卓能文 阅读(122) 评论(0) 推荐(0)
摘要: 安装包文件 pacman -S mariadb 执行初始化脚本 sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql 运行守护进程 sudo systemcrl enable mariadb.serv 阅读全文
posted @ 2021-09-13 19:36 卓能文 阅读(112) 评论(0) 推荐(0)
摘要: 删除git pull冲突文件 如zig在某次更新时,出现如下错误: remote: Enumerating objects: 1, done. remote: Counting objects: 100% (1/1), done. remote: Total 1 (delta 0), reused 阅读全文
posted @ 2021-09-02 19:27 卓能文 阅读(338) 评论(0) 推荐(0)
摘要: ArchWsl快速安装 Archlinux是一个适合搭建软件开发环境的Linux发行版,内置了许多包,同时通过AUR提供了许多第三方包。Windows现在可以通过WSL安装各种Linux发行版。可以采用scoop快速安装、升级archwsl。为了便于快速滚动升级,将scoop安装的结果复制到scoo 阅读全文
posted @ 2021-09-02 00:48 卓能文 阅读(441) 评论(0) 推荐(0)
摘要: github设置 github代理设置 经常从github克隆或更新代码时,速度很慢,因此需要设置代理访问。常用的代理有: https://github.com.cnpmjs.org/ https://hub.fastgit.org/ 采用如下的命令进行设置: git config --global 阅读全文
posted @ 2021-08-28 23:52 卓能文 阅读(123) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20