在Github Actions中使用Yarn
Yarn 的呼声时不时比 npm 大,在 Github Actions 里怎么使用 Yarn 呢? 用 npm 的示例 name: Node CI on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [8.x, 10.x, 1...
Yarn 的呼声时不时比 npm 大,在 Github Actions 里怎么使用 Yarn 呢? 用 npm 的示例 name: Node CI on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [8.x, 10.x, 1...
每次连接新的 SSH 或者从新的域名克隆代码时,总是会提示你是否信任,需要手动确认。 git clone git@github.com:tobyqin/blog.git Cloning into 'blog'... The authenticity of host 'github.com (52.74.223.119)' can't be established. RSA key fi...
em,px,pt都是 CSS 中的长度单位,他们有一定的对应关系。 这是一张速查表。 可能有些人喜欢下面这张。
抽了半天时间升级一下博客程序。 升级 nodejs 版本 用 brew 可以升级最新的 node,用新不用旧。 brew upgrade node ==> Upgrading 1 outdated package: node 11.13.0 -> 13.6.0 最后记得在测试通过后要把 CI 配置文件的 node 版本也升级到对应版本,比如 .travis....
在 Linux 中有一个命令叫top,作用和 Windows 下的任务管理器差不多。 top top - 15:43:06 up 3 days, 17:46, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 159 total, 1 running, 97 sleeping, 0 stopped, 0 zombie %Cp...
history是用来显示命令历史的命令。 root@aml:~# history 1 which git 2 cd / 3 ls -l 4 ifconfig 5 alias ... 默认记忆 1000 个历史,这些命令保存在家目录的~/.bash_history里。 history #列出最近的#条命令,例如 hi...
收集一下,用的上。 Google https://translate.google.cn/translate_a/single?client=gtx&dt=t&dj=1&ie=UTF-8&sl=auto&tl=zh_CN&q=hello https://translate.google.cn/translate_a/sing...
查看 Linux 系统信息的一些技巧。 查看系统版本 uname uname -a cat /etc/*-release # 不同的发行版名字不太一样 查看 CPU 和内存 cat /proc/cpuinfo cat /proc/meminfo free -h 查看硬盘空间 du -sh /* df -h 查看运行状态 uptime 22:49:55 up 10 m...
简而言之,用adduser而不是useradd,用deluser而不是userdel。 NAME adduser, addgroup - add a user or group to the system SYNOPSIS adduser [options] [--home DIR] [--shell SHELL] [--no-create-home]...
目前网上还是能找到免费的 FRP 服务器的,可以通过搜索引擎试试。 目前可以用的有一些: http://www.frps.top/ https://www.chuantou.org/ https://www.natfrp.com/ http://freefrp.wlphp.com/ https://freenat.ml/ 稳定性和速度只能靠时间来考验了。