Skip to content

Instantly share code, notes, and snippets.

@MarshalW
MarshalW / excel-odd-line-color.md
Last active December 1, 2022 04:00
excel 奇偶行不同色的设置
@MarshalW
MarshalW / windows-putty.md
Created November 30, 2022 03:10
Windows 下使用 putty 的问题

Windows 下使用 putty 的问题

https://www.putty.org/

putty 是免费的,其他备选方案虽然有免费版本,比如 xshell,但是有条件 - 不可商用。

目前碰到的问题:

@MarshalW
MarshalW / windows-rar-software.md
Created November 29, 2022 15:25
windows 下免费的 rar 处理工具 -7zip
@MarshalW
MarshalW / verdaccio-faq.md
Last active November 15, 2022 07:36
Verdaccio 遇到的问题列表

Verdaccio 遇到的问题列表

npm publish 报错:one of the uplinks is down

登录后,无法 publish package,报错为:

ERR! E503 one of the uplinks is down, refuse to publish
@MarshalW
MarshalW / ubuntu-dev-install-config.md
Last active December 14, 2023 02:08
ubuntu desktop 开发环境安装配置

ubuntu 开发环境安装配置

ubuntu 版本:

  • 20.04.1 desktop,国内下载 清华镜像 - ubuntu release
  • macOS 下使用 vmware fusion,免费的,使用界面比 virtualbox 方便很多

需要安装和配置的项目:

  • ansible
@MarshalW
MarshalW / using-localhost-in-dockerfile.md
Created November 4, 2022 03:03
在 Dockerfile 中使用 localhost

在 Dockerfile 中使用 localhost

需要增加2点:

  • localhost 替换为 host.docker.internal
  • 执行时增加 --network="host",比如 docker build --network="host" -t test .

启动一个本地的 http server 做测试:

@MarshalW
MarshalW / terraform-basic.md
Created October 19, 2022 14:31
Terraform 基础

Terraform 基础

安装

macos:

# 安装
brew install terraform
@MarshalW
MarshalW / autossh-rpi4-headless.md
Last active October 17, 2022 12:25
树莓派4 headless 安装 autossh 全过程

树莓派4 headless 安装 autossh 全过程

通过 rpi 网站 下载 rpi imager,并安装。

通过 rpi imager 下载最新版本 ubuntu server 64bit 版本(22.04),设置正确的参数。

image

设置 public key 登录方式。

@MarshalW
MarshalW / nocobase-docker-deploy.md
Last active July 18, 2022 07:58
nocobase 基于 docker 的部署

nocobase 基于 docker 的部署

最简单的部署

使用官方的 docker image,前后端在同一个 docker container 中。

docker-compose.yml

version: "3"
@MarshalW
MarshalW / zsh-rm-but-excludes-some-file.md
Last active July 1, 2022 06:30
macos zsh 删除命令,指定不删除的个别文件和目录

macos zsh 删除命令,指定不删除的个别文件和目录

❯ setopt extended_glob
❯ tree . -a
.
├── .config
├── b.txt
└── config
 └── default.yml