上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 检出文件, 分支转换。 git checkout branchname (切换本地分支) 切换到”branchname“分支,注意是本地分支。 切换远程分支 需要先将远程分支与本地分支关联。 git checkout -b 本地分支名 origin/远程分支名 该命令可以将远程仓库里指定的分支拉取到 阅读全文
posted @ 2022-11-19 23:07 HaimaBlog 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: 目录git branch (查看本地分支)git branch -r (查看远程分支)git branch -a (查看所有分支)git branch < branchName > (创建本地分支)git branch --set-upstream-to=origin/< branch > fetu 阅读全文
posted @ 2022-11-19 22:30 HaimaBlog 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 背景 我们经常见到很多设立了脚本 打头会写如下 set -e 或者 set -ex 或者 set -eux 这是什么意思呢? 具体解释一下 Linux set命令用于设置shell。 set指令能设置所使用shell的执行方式,可依照不同的需求来做设置。 set所有的参数说明 -a 标示已修改的变量 阅读全文
posted @ 2022-10-29 06:32 HaimaBlog 阅读(317) 评论(0) 推荐(0) 编辑
摘要: windows10 编辑 go项目 报以下错误 cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH% 问题描述 场景描述 win10系统搭建的golang开发环境,版本是go version 阅读全文
posted @ 2022-10-27 14:39 HaimaBlog 阅读(243) 评论(0) 推荐(0) 编辑
摘要: ElasticView 是一款用来监控elasticsearch状态和操作elasticsearch索引的web可视化工具。 它由golang开发而成,具有部署方便,占用内存小等优点 es连接树管理(更方便的切换测试/生产环境) 支持es版本 6.x, 7.x,8.x 权限管理 支持sql转换成ds 阅读全文
posted @ 2022-10-21 14:10 HaimaBlog 阅读(197) 评论(0) 推荐(0) 编辑
摘要: windows下可以安装Git工具, 使用git bash操作 Windows 10 环境下,通过~/.bash_profile 设置 git bash 别名: 打开 git bash,需切换到当前用户主目录(若存在.bash_profile 文件,则不需要执行 touch 命令): $ cd ~ 阅读全文
posted @ 2022-10-02 10:19 HaimaBlog 阅读(198) 评论(0) 推荐(0) 编辑
摘要: golang 获取切片 slice 第一个 最后一个 元素 复合数据类型切片通常用作Go中索引数据的口语结构。 该类型[]intSlice是具有类型为integer的元素的切片。 len函数用于获取切片的最后一个元素,并从切片中删除最后一个元素。 示例如下: package main import 阅读全文
posted @ 2022-10-01 16:45 HaimaBlog 阅读(47) 评论(0) 推荐(0) 编辑
摘要: http://m.114.xixik.com/country-code/#anchor1 阅读全文
posted @ 2022-07-06 17:46 HaimaBlog 阅读(104) 评论(0) 推荐(0) 编辑
摘要: # Kubermetes (K8S) 安装 ## 参考文档: 官方文档: https://kubernetes.io/zh-cn/docs/concepts/overview/components/#node-components 安装参考文档: 尚硅谷 https://www.yuque.com/ 阅读全文
posted @ 2022-06-28 15:16 HaimaBlog 阅读(972) 评论(0) 推荐(0) 编辑
摘要: 官网地址: https://www.python.org/ 参考文档: https://www.chhui.cn/post-1039.html 阅读全文
posted @ 2022-06-21 16:35 HaimaBlog 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 编码完整的URL url.QueryEscape(urlStr) 编码完整的URL 如果我们要对完整的 URL 进行编码呢? 就是PHP中 urlencode() 函数的功能。 在 GO 语言下可以直接使用 url.QueryEscape() 函数。 escapeUrl := url.QueryEs 阅读全文
posted @ 2022-06-17 16:15 HaimaBlog 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 02. Request Body深入搜索 # 获取健康值 GET _cat/health # 创建一个_id=1的记录! PUT /test1/_doc/1 { "name":"haima", "age":35, "gender":"男" } # 获取mappings信息 GET test1 GET 阅读全文
posted @ 2022-06-14 17:38 HaimaBlog 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 参考文档: https://golang-tech-stack.com/post/4989 本文内容纲要: 普通的get请求 package main import ( "io/ioutil" "fmt" "net/http" ) func main() { res,_ :=http.Get("ht 阅读全文
posted @ 2022-06-08 09:38 HaimaBlog 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 在建容器时 报如下错误: WARNING: IPv4 forwarding is disabled. Networking will not work 解决方法: 第一步:找到文件 :vim /usr/lib/sysctl.d/00-system.conf 添加代码:net.ipv4.ip_forw 阅读全文
posted @ 2022-06-01 07:26 HaimaBlog 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 国家中英文码表 { 'Afghanistan':'阿富汗', 'Singapore':'新加坡', 'Angola':'安哥拉', 'Albania':'阿尔巴尼亚', 'United Arab Emirates':'阿联酋', 'Argentina':'阿根廷', 'Armenia':'亚美尼亚' 阅读全文
posted @ 2022-05-28 09:37 HaimaBlog 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 环境: windows 10 phpstudy8.1.1.3 Vmware安装centos7.6 场景 window10里goland开发,在远程linux里运行,并debug断点调适 步骤: windows 10里安装好go环境 linux里也安装好go环境 goland配置ssh连接linux 阅读全文
posted @ 2022-05-22 17:30 HaimaBlog 阅读(2102) 评论(0) 推荐(1) 编辑
摘要: 环境: window10 phpstudy8.1.1.3 Vmware安装centos7.6 使用场景 window10安装mysql和redis 在Vmware安装centos7.6 桥接模式上网 centos7.6连接mysql和redis mysql和redis开启远程登陆权限 在centos 阅读全文
posted @ 2022-05-22 16:05 HaimaBlog 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 效果: docker-compose version: "3" networks: gitea: external: false services: server: image: gitea/gitea:latest container_name: gitea environment: - USER 阅读全文
posted @ 2022-05-14 14:51 HaimaBlog 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 版本 ElasticSearch version "number": "7.14.1" 获取健康值 GET _cat/health?v 获取所有索引的信息 GET _cat/indices?v 创建索引 创建方式 创建一个索引! PUT /索引名/~类型名~/文档id {请求体} 类型名以后到8版本 阅读全文
posted @ 2022-04-28 07:29 HaimaBlog 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 视频课程: https://www.bilibili.com/video/BV1Ev411j7e5?p=3 工作区: 文件状态: 回退版本: 软合并:把仓库里的文件回退到暂存区 混合合并:回退到工作区,保留更改文件修改的内容 强行合并:回退到工作区,不保留文件修改的内容 合并分支 普通合并 变基合并 阅读全文
posted @ 2022-04-16 07:32 HaimaBlog 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 开启SMTP服务: QQ邮箱参考下面连接: QQ邮箱如何开通SMTP服务 https://jingyan.baidu.com/article/00a07f389eea7dc3d128dc36.html 发邮件测试 package test import ( "core/define" "crypto 阅读全文
posted @ 2022-04-10 22:18 HaimaBlog 阅读(1491) 评论(0) 推荐(0) 编辑
摘要: 一、go-zero简介及如何学go-zero 1.go-zero官方文档 http://go-zero.dev/ 2.go-zero微服务框架入门教程 作者:Mikael https://www.bilibili.com/medialist/play/389552232?from=space&bus 阅读全文
posted @ 2022-03-26 10:04 HaimaBlog 阅读(5772) 评论(0) 推荐(3) 编辑
摘要: 文档地址: https://golang-tech-stack.com/tutorial/pb 学习视频: https://www.bilibili.com/video/BV1Y3411j7EM?p=10&spm_id_from=333.788.top_right_bar_window_histor 阅读全文
posted @ 2022-03-23 06:59 HaimaBlog 阅读(86) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2022.cnblogs.com/blog/1441611/202203/1441611-20220316092159830-697603576.png) 阅读全文
posted @ 2022-03-16 09:22 HaimaBlog 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 微服务从代码到k8s部署应有尽有系列全集 https://mp.weixin.qq.com/s/8U2h85YJHy3H3hzlBakPPw 实战项目地址:https://github.com/Mikaelemmmm/go-zero-looklook 阅读全文
posted @ 2022-03-06 14:32 HaimaBlog 阅读(134) 评论(0) 推荐(0) 编辑
摘要: ruby和glang的md5和sha1加密对比 package main import ( "crypto/md5" "crypto/sha1" "fmt" "io" "io/ioutil" "log" "strings" ) func main() { testMd5OrSha2() } func 阅读全文
posted @ 2022-03-04 15:02 HaimaBlog 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1.下载编译好的包 https://sourceforge.net/projects/mingw-w64/files/mingw-w64/ 这里我选择64位的 2.解压完之后,配置环境变量。 解压完到 D:\Program Files (x86)\mingw64 3.将安装路径对应的bin目录添加到 阅读全文
posted @ 2022-02-25 13:14 HaimaBlog 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 文档地址: https://xuri.me/excelize/zh-hans/ package main import ( "fmt" "github.com/xuri/excelize/v2" ) func main() { readEecel() //writeEecel() //appendE 阅读全文
posted @ 2022-02-19 17:10 HaimaBlog 阅读(1969) 评论(0) 推荐(0) 编辑
摘要: 官网手册: https://go-zero.dev/cn/ 文档说明: https://zhuanlan.zhihu.com/p/461604538 本地开发运行环境: https://github.com/nivin-studio/gonivinck 代码地址: https://github.co 阅读全文
posted @ 2022-02-12 09:42 HaimaBlog 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 本文主要在于带着大家完成一个基本的 CRUD 工作,让大家熟悉 Fiber + MongoDB 构建 RESTful API,熟悉工作流程。同时了解相关库的使用。 本文的完整代码见:https://github.com/programmerug/fibermongo。 文档说明: https://m 阅读全文
posted @ 2022-02-11 09:23 HaimaBlog 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 参考文档: https://go-zero.dev/cn/docs/advance/rpc-call 视频地址: https://space.bilibili.com/387126464/channel/series cd /d/code/go/src/go-zero/go-mindoc/roles 阅读全文
posted @ 2022-02-02 17:03 HaimaBlog 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 官方文档: https://go-zero.dev/cn/docs/introduction 视频地址: https://space.bilibili.com/387126464/channel/series 系统环境: linux debain 配置环境: 1. golang安装 配置go环境变量 阅读全文
posted @ 2022-02-01 21:56 HaimaBlog 阅读(1862) 评论(0) 推荐(0) 编辑
摘要: Typora+PicGo+Gitee自动上传图片 视频教程: https://www.bilibili.com/video/BV1hT4y1f7Mf?from=search&seid=15465767227648594659&spm_id_from=333.337.0.0 参考文档: https:/ 阅读全文
posted @ 2022-02-01 11:35 HaimaBlog 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 参考文章 中国 NPM 镜像 https://npmmirror.com/ 资料 链接:https://pan.baidu.com/s/1O1WitowUR4iwbrdsG92Gew 提取码:adj4 复制这段内容后打开百度网盘手机App,操作更方便哦 视频教程 https://www.bilibi 阅读全文
posted @ 2022-01-30 09:41 HaimaBlog 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 安装 gem install rufus-scheduler ruby #!/usr/bin/env ruby require 'rubygems' require 'rufus-scheduler' scheduler = Rufus::Scheduler.new scheduler.every 阅读全文
posted @ 2022-01-28 16:14 HaimaBlog 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 在IDEA中配置GitHub 安装GitHub插件 账号授权 方法一:点击Add Account... 添加账号 Settings->Version Control->GitHub 跳转到github上授权同意 出下面的提示表示成功 You have been successfully author 阅读全文
posted @ 2022-01-26 16:56 HaimaBlog 阅读(395) 评论(0) 推荐(0) 编辑
摘要: debian终端下默认编辑器为nano,比如crontab -e就会打开nano,这个编辑器用起来很不习惯,想修改为vim,当然,你的debian系统必须先安装vim.如果已经安装vim,请输入如下命令: sudo update-alternatives --config editor 有 4 个候 阅读全文
posted @ 2022-01-22 11:54 HaimaBlog 阅读(653) 评论(0) 推荐(1) 编辑
摘要: 编写/root/test.sh脚本 该方法适用于调度周期能被60整除的情况 #!/bin/bash step=1 for (( i = 0; i < 60; i = (i+step) )); do date >> /root/result.txt sleep $step done exit 0 配置 阅读全文
posted @ 2022-01-21 15:26 HaimaBlog 阅读(1448) 评论(0) 推荐(0) 编辑
摘要: 安装iptables yum install iptables-services 编写允许访问的策略 vim /etc/sysconfig/iptables # sample configuration for iptables service # # # you can edit this man 阅读全文
posted @ 2022-01-18 15:36 HaimaBlog 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 学习资料 https://www.bilibili.com/video/BV1eY411w7Lx/ https://www.bilibili.com/video/BV1SQ4y1m7Ds?p=13 仓库地址: https://gitee.com/haima1004/elasticsearch7.14 阅读全文
posted @ 2022-01-18 13:31 HaimaBlog 阅读(1304) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页