05 2023 档案

摘要:# npm proxy ``` $ npm config get proxy http://127.0.0.1:25378/ ``` 如果你的npm设置了如上代理,那么当请求本地服务时,应该会出现代理错误(通常是502响应): ``` import { HttpService } from '@ne 阅读全文
posted @ 2023-05-29 15:42 develon 阅读(234) 评论(0) 推荐(0) 编辑
摘要:# 异常过滤器 ## @UseFilters @UseFilters 用于设置异常过滤器,作用于控制器 MethodDecorator & ClassDecorator: ``` import { Controller, UseFilters } from '@nestjs/common'; @Co 阅读全文
posted @ 2023-05-26 10:24 develon 阅读(280) 评论(0) 推荐(0) 编辑
摘要:# TypeORM 集成 ``` $ npm install --save @nestjs/typeorm typeorm mysql2/pg ``` 安装过程完成后,我们可以将TypeOrmModule导入到根目录中AppModule。 ```ts import { Module } from ' 阅读全文
posted @ 2023-05-24 16:49 develon 阅读(947) 评论(1) 推荐(0) 编辑
摘要:# Context isolation and Node integration ![](https://img2023.cnblogs.com/blog/967043/202305/967043-20230523161053448-90495763.png) ``` Scenario contex 阅读全文
posted @ 2023-05-23 16:10 develon 阅读(359) 评论(0) 推荐(0) 编辑
摘要:# mutableStateOf androidx.compose.runtime.mutableStateOf > Return a new MutableState initialized with the passed in value > The MutableState class is 阅读全文
posted @ 2023-05-20 18:21 develon 阅读(52) 评论(0) 推荐(0) 编辑
摘要:# 资料 Rust 程序设计语言 Book:https://doc.rust-lang.org/book/ Rust Book本地:`rustup docs --book` Rust 程序设计语言 简体中文版:https://kaisery.github.io/trpl-zh-cn/ Rust Bo 阅读全文
posted @ 2023-05-19 17:06 develon 阅读(47) 评论(0) 推荐(0) 编辑
摘要:# #[tokio::test] 运行时 `#[tokio::test]` 运行时和 `#[tokio::main]` 的默认值是不一样的,前者默认单线程,后者默认多线程: > The default test runtime is single-threaded. 所以有的时候运行和测试的结果可能 阅读全文
posted @ 2023-05-19 16:14 develon 阅读(485) 评论(0) 推荐(0) 编辑
摘要:# (&mut Future).await 直接执行 `join_handle.await` 会消费 JoinHandle ,通过 `(&mut join_handle).await` 不消费 JoinHandle ,参考:https://github.com/tokio-rs/tokio/disc 阅读全文
posted @ 2023-05-15 17:12 develon 阅读(126) 评论(2) 推荐(0) 编辑
摘要:安装 TigerVNC sudo apt install tigervnc-standalone-server 验证连接 # vncserver -xstartup nautilus -localhost no :1 #启动文件管理器并运行外部访问 # vncserver -xstartup gno 阅读全文
posted @ 2023-05-09 17:55 develon 阅读(1256) 评论(0) 推荐(0) 编辑
摘要:直接使用 setsid cmd ... $ ping ::1 root 399698 399637 0 14:51 pts/42 00:00:00 ping ::1 $ setsid ping ::1 root 399707 1 0 14:52 ? 00:00:00 ping ::1 注意看,现在它 阅读全文
posted @ 2023-05-09 15:18 develon 阅读(138) 评论(0) 推荐(0) 编辑
摘要:chrome-gnome-shell sudo apt install chrome-gnome-shell -y 参考:https://www.reddit.com/r/leagueoflinux/comments/nhzdg6/guide_how_to_put_the_wine_system_t 阅读全文
posted @ 2023-05-08 16:27 develon 阅读(371) 评论(0) 推荐(0) 编辑
摘要:setterm --blank man手册: --blank[=0-60|force|poke] Sets the interval of inactivity, in minutes, after which the screen will be automatically blanked (us 阅读全文
posted @ 2023-05-02 23:46 develon 阅读(2556) 评论(0) 推荐(0) 编辑
摘要:Win10 内存 嘎嘎失败了 大概就是这样的错误: 原因未知 修改BIOS、重新挂载驱动CD然后启动: 阅读全文
posted @ 2023-05-01 23:21 develon 阅读(140) 评论(0) 推荐(0) 编辑
摘要:重命名网卡 默认网卡叫 wlp15s0 啥的, 直接别名为 wifi ip link set wlp15s0 name wifi 重启后别名会掉, 加入rc-local吧. # cat /etc/rc.local #!/usr/bin/bash ip link set wlp15s0 name wi 阅读全文
posted @ 2023-05-01 18:28 develon 阅读(1171) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示