WSL 迁移位置

终端查看 WSL 的列表$ wsl --list 适用于 Linux 的 Windows 子系统分发版: Ubuntu (默认) Ubuntu-20.04 关闭要导出的 WSL$ wsl --terminate Ubuntu-20.04 导出 Ubuntu-20.04命令格式: wsl --export [要导出的系统名称] [要导出的文件存放位置] $ wsl --export Ubuntu-20.04 /e/ubuntu-20.04.tar 删除刚刚已经导出的 Ubuntu-20.04 $ wsl --unregister Ubuntu-20.04 正在注销... $ wsl --list 适用于 Linux 的 Windows 子系统分发版: Ubuntu (默认) 导入刚刚导出的 Ubuntu-20.04到另外的位置 命令格式: wsl --import [要导入的系统名称] [要导入的位置] [要导入的wsl系统文件] $ wsl --import Ubuntu-20.04 /e/WSL-Ubuntu-20.04 /e/ubuntu-20.04.tar 运...

继续阅读 »

记录一下node开发中和mongodb 中的一些坑

类型问题弱类型引发的问题 (ts) //先写两个功能差不多的方法 public static async getList( limit: number, offset: number ) { const condition = { // ... }; return db.find(condition) .skip(offset) .limit(limit); } public static async getList2( limit: number, offset: number ) { const aggregations = [ // ... { $skip: offset }, { $limit: limit } ]; return db.aggregate(aggregations); } // 这里我们使用的后台框架是koa public static async list(...

继续阅读 »

领养了一只猫

突然看到 live2d 自己也领养了一只猫回来参考:https://www.zhangxinxu.com/wordpress/2018/05/live2d-web-webgl-jshttps://juejin.im/post/5d5137066fb9a06b2a203214https://github.com/QiShaoXuan/live2DModel

继续阅读 »

MAC BeyoundCompare 无限试用方法

在官网(https://www.scootersoftware.com/download.php)下载最新的 Beyond Compare 解压后, 把 Beyond Compare 复制到应用程序中.选中图标,右键点击“显示包内容”,逐步进入 Beyond Compare 应用程序的 MacOS 目录下(/Applications/Beyond Compare.app/Contents/MacOS)原理BCompare 是应用程序启动的程序. 只要在在启动的时候删除 registry.dat (Library/Application Support/Beyond Compare/registry.dat)注册信息就好了.为此可以在该目录下添加一个批处理文件用来处理这个操作.具体操作如下:将主启动程序 BCompare 重命名为 BCompare.real在同级目录下新建一个脚本文件,命名为 BCompare,这样 BCompare 在启动的时候就会执行该脚本文件,注意记得 chmod a+x BCompare脚本如下 #!/bin/bash rm "/Users/${...

继续阅读 »

Docker 安装 Oracle

前往 dockerhub 获取 oracle 的镜像授权https://hub.docker.com/_/oracle-database-enterprise-edition下载 oracle 的 docker 镜像 docker pull store/oracle/database-enterprise:12.2.0.1 创建本地 oracledb 数据文件夹 mkdir /data/oracle_db 启动 oracle docker run -d -it --name oracle -p 1521:1521 -v /data/oracle_db:/ORCL store/oracle/database-enterprise:12.2.0.1 以下为 oracle docker 的说明文档Oracle Database Server Docker Image DocumentationOracle Database Server 12c R2 is an industry leading relational database server. The Oracle...

继续阅读 »