摘要:
本地转发(-L) 将ssh的机器用作跳板机去连接另一台机器: ssh -L 5050:192.168.0.0:4849 username@xyz.abc -N 敲完密码成功后,我们访问本机的5050端口就是在访问 username@xyz.abc 这台跳板机的局域网下的IP地址为192.168.0. 阅读全文
摘要:
关键字 mocha, chai, js, node.js 失败情况 如果直接使用expect(abc.function(param1, param2)).to.throw() 是无法测试抛出的异常的,因为传入的是function() 返回的值。 怎么解决 想要用 expect 断言测试抛出的异常,必 阅读全文
摘要:
telnet 提示 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 退出方法 Ctrl + ] 输入 quit 回车 参考 https://javarevisited.blogspot.com/2016/06 阅读全文
摘要:
不用把brew添加到根用户 cd /usr/local && sudo chown -R $(whoami) bin etc include lib sbin share var Frameworks 参考: https://stackoverflow.com/questions/66544894/ 阅读全文
摘要:
事情是这样的,想用mocha跑测试,结果一直报各种模块加载错误,比如: import {expect} from "chai" ^^^^^^ SyntaxError: Cannot use import statement outside a module 看到一篇很好的讲解 es6 commmon 阅读全文
摘要:
基本概念 需要得到什么就make什么,比如 make abc.txt 得到一个文本文件,make image 得到一个docker 镜像 , 等等。 一般来说使用 make命令的目录下应该一个名为 Makefile的文件。 make -f <makefile> 使用自定义的文件名。 Makefile 阅读全文
摘要:
解决方法 double_node = client.get_node("ns=2;s=Demo.Static.Scalar.Double") # returns a Node-Class dv = ua.DataValue(ua.Variant(200.0, ua.VariantType.Doubl 阅读全文
摘要:
w3school 的解释: The is keyword is used to test if two variables refer to the same object. The test returns True if the two objects are the same object. 阅读全文
摘要:
语法使用规则 await 必须且只能使用在 async 函数中。 async 函数体中如果没有 await 关键字,则此函数永远不会被异步执行,而是和普通函数一样执行。 异步代码使用任务的概念(Task和Task<T>)对异步工作进行抽象。 作为一种命名传统,请为每个异步函数名添加 Async 后缀 阅读全文
摘要:
$ ssh-keygen -t ed25519 -C "your_email@example.com" 或者 ssh-keygen -t rsa -b 4096 -C "your_email@example.com" Enter a file in which to save the key (/c 阅读全文