January 22, 2021
angular
spec.ts
背景
在重构代码时候,难免会忘记添加spec.ts测试用例文件,等想起来的时候,已经很多文件了,总不能一个个copy,修改吧,此时正是工具最佳上场时机
angular-spec-generator
通过cli 命令行,为已存在的Angular 文件批量添加测试用例文件
安装1npm in ...
Read more
January 12, 2021
shell
脚本
mp4
背景:
qq空间视频上传,支持500个视频上传,不过监控视频是分文件夹存储的。故利用shell把文件集中下,然后批量上传。
code 123456789101112filelist=`ls /Users/hu/video/2020`for file in $filelistdo echo ...
Read more
January 12, 2021
mac
mac系统天生支持NTFS,只不过挂载方式是read-only方式,需要手动把分区改成可写方式
插入移动硬盘,查看挂载方式1234$ mount | grep ntfs/dev/disk2s1 on /Volumes/Untitled (ntfs, local, nodev, nosuid, ...
Read more
December 27, 2020
flutter
App
git 代码1$ git clone https://github.com/flutter/flutter.git -b stable
git Doc
https://github.com/flutter/flutter/wiki/Using-Flutter-in-China
flutt ...
Read more
December 25, 2020
java
DNS污染
HomeBrew
背景12Installing Homebrew...curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
DNS污染Dns 解析ip失败
怎么验证是否遭遇DNS污染?1. ...
Read more
December 25, 2020
App
NativeScript
快速入门Hello-world
本文基于mac系统,采用HomeBrew安装
node 安装nativescript 安装1npm i -g nativescript
校验版本安装(Telerik NativeScript)
1> tns
安装 NativeScript Pl ...
Read more