部署 GitLab 和持续集成环境
参考: https://about.gitlab.com/install/
部署 Gitlab
安装依赖:
1sudo apt update参考: https://about.gitlab.com/install/
安装依赖:
1sudo apt update在使用 JSON 时经常遇到需要忽略字段的情况,例如返回用户信息时不能返回密码,通常将注解 TAG 设为 json:"-" 即可:
1type User struct {
2 Account string `json:"account"`
3 Password string `json:"-"`
4 Nickname string `json:"nickname"`
5}Kafka 有两种使用方式:基于 zookeeper 和基于 kraft.
启动:
1./bin/zookeeper-server-start.sh ./config/zookeeper.properties
2./bin/kafka-server-start.sh ./config/server.properties安装 AMD-APP-SDK 或 ROCm
OpenGL 没有手动选择显卡的 API,在同时具备核心显卡和独立显卡的设备上常常会在核显上运行。
Windows 上可以添加如下代码选择使用独显:
1#ifdef __cplusplus
2extern "C" {
3#endif首先确认安装了 next 和 MUI:
1npm install next react react-dom @mui/material @emotion/react @emotion/styled以 Lolipop Media Player 为例。
本文全部使用
HKEY_CURRENT_USER,表示当前用户的配置。 可以替换为HKEY_LOCAL_MACHINE,表示所有用户的配置。
nginxnginx -c /path/to/filenginx -s quitnginx -s stopnginx -s reload 或 systemctl reload nginxsystemctl restart nginx协同程序是一种特殊的多任务编程方式,多个协同程序之间共用调用栈,且正在运行的协同程序不会被其他协程抢占(可以被任务和中断抢占),正在运行的协同程序只能自己主动让出CPU的使用权。要使用协同程序,需要将FreeRTOSConfig.h中的configUSE_CO_ROUTINES设为1。
FreeRTOS的协同程序采用switch-case实现,函数定义方式如下:
1void CoRoutineTask(CoRoutineHandle_t handle,UBaseType_t uxIndex)
2{
3 //协同程序中变量如果要保证值在下一次运行时仍有效,则必须为static
4 static const TickType_t delay = 1000 / portTICK_PERIOD_MS;
5