在线编码、格式转换

在线编码、格式转换 前言 日常开发或运维会比较常遇到日志中的内容格式不直观,需要转码或格式化的情况,这时候常常是去网上搜索在线工具,不但耗时耗力,又担心不安全,于是我索性就自己搭建一个,方便自己的同时,还可以分享给需要的朋友。 ...

September 11, 2022 · 2 分钟 · 673 字

Yaml配置入门

简介 配置文件建议使用yaml格式,功能比较强大,且灵活发,目前广泛使用(k8s、springboot) application.yml: 以yml为后缀的文件为YAML文件。 ...

August 21, 2022 · 2 分钟 · 782 字

Linux常用查找命令

一、查找文件名 查找当前文件夹下包含“xx”文件名的文件: find . -name "*xx*" 二、查找文件内容 查找当前文件夹下包含“xx”的所有文件 find . | xargs grep -ri "xx" 或 find . | xargs grep -ri "xx" -l 或 grep -R xxx . 注:-l表示只显示文件名

August 19, 2022 · 1 分钟 · 92 字

vue install - no template named 'remove_cv_t' in namespace 'std'

vue工具初始化了一个element项目,但是执行了yarn install报了下面的错误: yarn install .... /Users/hyman/.node-gyp/16.13.2/include/node/v8-internal.h:492:38: error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'? !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data); ~~~~~^~~~~~~~~~~ remove_cv /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:776:50: note: 'remove_cv' declared here template <class _Tp> struct _LIBCPP_TEMPLATE_VIS remove_cv ^ 1 error generated. make: *** [Release/obj.target/binding/src/binding.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/hyman/WebstormProjects/itart_tool/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (node:events:390:28) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) gyp ERR! System Darwin 20.6.0 gyp ERR! command "/usr/local/bin/node" "/Users/hyman/WebstormProjects/itart_tool/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /Users/hyman/WebstormProjects/itart_tool/node_modules/node-sass gyp ERR! node -v v16.13.2 gyp ERR! node-gyp -v v3.8.0 解决方案,增加一个CXXFLAGS参数: ...

August 14, 2022 · 1 分钟 · 170 字

Go限制深度遍历目录下文件

Go有提供os.ReadDir、filepath.WalkDir这些方法,很方便得实现遍历指定文件夹下的文件,但是不能很好的限制遍历文件夹深度,这里提供两种方法实现这个功能。 ...

April 23, 2022 · 2 分钟 · 623 字