自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 docker stack 简单部署

docker stack 简单部署1.docker image 生成2.start.sh 脚本3.stack.yml 文件配置1.docker image 生成创建Dockerfile文件copy 好像只支持先对路径<当前相对路径,目录绝对路径>FROM centosCOPY test_folder/ /home/test_folderCOPY test_file.sh /home/执行命令docker build -t custom/middleground .“cus

2021-03-12 16:21:49 1757

原创 golang gin windows 日志颜色乱码问题

import "github.com/mattn/go-colorable"gin.DefaultWriter = colorable.NewColorableStdout()导入go-colorable 包就可以解决乱码问题了

2020-02-22 12:36:11 2209 4

原创 golang go mod 环境搭建

新建项目 选择 go modules proxy 填https://goproxy.cn添加插件在terminal 输入依次输入go mod init 文件夹名字go build

2020-02-17 11:26:29 913

原创 linuxdeploy Mounting partitions : / ... fail

found the workaroundGo to an adb shell and verify the selinux mode :sugetenforceI get “Enforcing”so runsetenforce 0do the trickMaybe you can add a functionality to verify and correct this or...

2019-07-19 15:41:28 2587 1

原创 Unity 使用多场景管理API加载卸载场景

Unity 使用多场景管理API加载卸载场景SceneLoader.csusing System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEngine.SceneManagement;public class SceneLoader : MonoBehaviour{ p...

2019-07-01 08:29:41 5634

原创 pyinstaller 封装所有脚本并将所需dll 添加到exe中

pyinstaller -F scene_ui.py --add-data .\platforms\qwindows.dll;./platforms/ --add-data .\platforms\qdirect2d.dll;./platforms/ --add-data .\platforms\qminimal.dll;./platforms/ --add-data .\platforms\q...

2019-06-14 16:21:14 2563

原创 gcc 分支预测

> #if defined __GNUC__> #define likely(x) __builtin_expect (!!(x), 1)> #define unlikely(x) __builtin_expect (!!(x), 0)> #else> #define likely(x) (x)> #define unlikely(x) (x)unlikely表示不期望发生,likely表

2017-04-08 17:10:07 752

原创 欢迎使用CSDN-markdown编辑器

c++ new 分配

2017-04-02 11:36:31 171

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除