nomadli Blog

Thinking will not overcome fear but action will.

restart server

restart server

TCP int prctl(int option,unsigned long arg2…5) option: 端口 TCP 由于有半链接和全链接内核队列, 因此关掉listen重新listen会丢掉这部分用户链接, 因此需要新进程继承listen ```go package main import ( “context” “flag” ...

clickhouse

elecclickhousetron

表引擎 表分区 分片 文件系统 表引擎 TinyLog 单机只读, 按列存储为单独的压缩文件, 不支持多写会损坏,不支持索引 Memory 读写无锁,无索引,无压缩 Merge 读引擎,并发读取其它本地表 MergeTree 单机、巨量数据插入、按规则合并而非UPDATE、按主键排序、可主键分区、支持副本、支持数据采样建表 ReplicatedMe...

electron

electron

NodeJS安装升级 项目初始化 项目打包 vscode 调试 问题 非前端 Electron+TypeScript+Webpack不带vue NodeJS安装升级 brew install node brew update # cd $(brew --repo) #HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu....

felx/yacc

felx/yacc

语法解析工具 flex yacc 使用 语法解析工具 flex + yacc LALR(Look-Ahead LR) ANTLR LL自适应解析 JavaCC LISA SableCC Coco/R flex %{ #include <stdlib.h> //c 头文件 宏 类型定义 全局变量 函数声明等 %} ...

SonarQube

SonarQube

install sonar-scanner 地址 install docker pull postgres docker pull sonarqube #9.0以上只支持java11 sonarqube:8.9-community 支持java8 docker pull alpine docker pull gitlab/gitlab-runner docker networ...

Visual Studio

Visual Studio

编译器命令 .Net 服务编译 编译器命令 %comspec% /k ““C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat”” devenv X:\x\x.sln /clean Debug ...

WebAssembly

WebAssembly

环境 不使用任何标准库 C to LLVM IR x.ll LLVM IR to object files x.o Linking run 使用wasi标准C库 C++不支持异常 CXX_FLAGS=-fno-exceptions 环境 运行时 ...

Font

Font

ttf ttf opentype sfnt-housed字体使用了与ttf相同的数据结构如OpenType(otf)字体 ttf使用Bezier曲线表示字形 Bezier点坐标必须在[-16384 16383]范围, 宽度最好是2的幂次方速度快,如2048 ((设备每英寸的像素点/72)*pointSize)/网格最大宽度如2048 为一个单位距离的像素点数 ...

SELinux

SELinux

访问控制类型 SELinux 1. 源doamin 必须要有执行这个执行档的权限 让init_t域中的进程(0号进程、systemd)能够执行type为apache_exec_t的文件 2. 源domain 必须有权限切换到目标domain 允许init_t中的进程切换进入apache_t域 3. 执行档必须是目标domain的入口(Entry Point) ...

Web相关

Web知识点

缓存 sitemap网站地图 IIS 缓存 Pragma > Cache-Control > Expires > Last-Modified > ETag Pragma:no-cache 响应Expires过期时间相对于服务器时间 Cache-Control no-cache 不直接使用缓存,直接向原服务器发起请求...