北漂小兄弟的博客

北漂小兄弟的博客

菜根笔记

golang strings.Builder 与拼接字符串的区别

golang strings.Builder 与拼接字符串的区别

2023 年 3 月 17 日 北漂小兄弟 Comments 0 Comment

strings.Builder 是 Go 语言中的一个类型,用于高效地构建字符串。它在内部使用一个字节切片( []byte)来存储字符串,并在需要时动…

Read More Read More

golang 将秒转化为小时分钟

golang 将秒转化为小时分钟

2023 年 1 月 28 日 北漂小兄弟 Comments 0 Comment

这段代码要注意 %60的使用,因为time.Seconds()和time.Minutes()返回的是总的分钟和总的秒数,所以采用%60的形式取余数

GO谚语你知道多少

GO谚语你知道多少

2022 年 8 月 9 日 北漂小兄弟 Comments 0 Comment

不要通过共享内存来通信,通过通信来共享内存(Don’t communicate by sharing memory, share memory by…

Read More Read More

linux 快速清空一个文件命令

linux 快速清空一个文件命令

2022 年 5 月 20 日 北漂小兄弟 Comments 0 Comment
iptables 常用命令总结

iptables 常用命令总结

2022 年 5 月 14 日 北漂小兄弟 Comments 0 Comment

iptables 常用命令总结 开放特定端口号,以80为例 关闭特定端口号,以80为例 查看iptables规则集 允许或者拒绝某个ip访问某个端口 查看规则编…

Read More Read More

5、RabbitMQ的安装及常用命令

5、RabbitMQ的安装及常用命令

2022 年 5 月 4 日 北漂小兄弟 Comments 0 Comment

RabbitMQ的安装在官网介绍的也比较详细,由于太过详细反而比较繁杂,这里以Linux服务器ubuntu版本为例为大家介绍RabbitMQ的安装方式。 安装命…

Read More Read More

4、RabbitMQ五大模式

4、RabbitMQ五大模式

2022 年 5 月 4 日 北漂小兄弟 Comments 0 Comment

简单模式,通俗理解就是一个生产者一个消费者和队列,简单模式的broker中没有交换机,只有队列。队列负责暂存消息,生产者往里放,消费者从里取。 工作模式,一个生…

Read More Read More

3、MQ四大核心

3、MQ四大核心

2022 年 5 月 3 日 北漂小兄弟 Comments 0 Comment

MQ四大核心分别是,生产者,交换机,Broker,消费者,MQ的工作流程就像是将一个包裹送到邮局,邮局暂存包裹并最终将包裹通过邮递员送到收件人的手中 生产者,创…

Read More Read More

2,MQ能干什么

2,MQ能干什么

2022 年 5 月 3 日 北漂小兄弟 Comments 0 Comment

MQ中间件的功能总体来说可以分为三个部分,流量削峰,应用解耦,异步处理。 流量削峰,简单理解为对高峰期大量的流量进行缓冲处理,比如一个订单系统,qps最多能处理…

Read More Read More

1,什么是MQ

1,什么是MQ

2022 年 5 月 3 日 北漂小兄弟 Comments 0 Comment

MQ(message queue) 本质是队列的意思,FIFO先进先出原则,队列中存放的内容是message(消息)是一种跨进程的通讯机制,串联上下游服务的中间…

Read More Read More

golang 遍历空数组实现指定次数的循环

golang 遍历空数组实现指定次数的循环

2021 年 4 月 14 日 北漂小兄弟 Comments 0 Comment

golang 的for遍历还是比较简单的,为什么还要用空数组来实现遍历呢? 这里定义nums为二维类型的数组,虽然第一维设置了10个长度,但是数组的元素[0]i…

Read More Read More

v2ray一键安装脚本

v2ray一键安装脚本

2020 年 11 月 29 日 北漂小兄弟 Comments 0 Comment
powershell 递归批量删除指定类型的文件

powershell 递归批量删除指定类型的文件

2020 年 11 月 22 日 北漂小兄弟 Comments 2 comments

ls $folder -r | % { if($_.name -match “mp3$” -and $_.mode -notmatch “d”){ del $_…

Read More Read More

从一个大的sql文件导入指定的表信息

从一个大的sql文件导入指定的表信息

2020 年 11 月 15 日 北漂小兄弟 Comments 0 Comment
wordpress 增加显示备案信息

wordpress 增加显示备案信息

2020 年 11 月 9 日 北漂小兄弟 Comments 0 Comment
windows terminal 配置文件案例

windows terminal 配置文件案例

2020 年 7 月 2 日 北漂小兄弟 Comments 0 Comment

// This file was initially generated by Windows Terminal Preview 1.1.1671.0// It…

Read More Read More

git 撤销上一次提交,撤销上次merge

git 撤销上一次提交,撤销上次merge

2020 年 6 月 28 日 北漂小兄弟 Comments 0 Comment
golang 时间与数字相乘的问题

golang 时间与数字相乘的问题

2020 年 6 月 8 日 北漂小兄弟 Comments 0 Comment

golang 时间与数字相乘 如果用硬编码的形式直接写是没有问题的: time.Second * 1000 如果用表达式来写就编译报错了 second := 1…

Read More Read More

windows powershell 支持git

windows powershell 支持git

2020 年 5 月 17 日 北漂小兄弟 Comments 0 Comment

1、下载posh-git 用管理员权限打开powershell执行如下命令,启用脚本支持 Set-ExecutionPolicy RemoteSigned -S…

Read More Read More

解决phpMyAdmin Warning in ./libraries/classes/Dbi/DbiMysqli.php#463 Use of undefined constant MYSQLI_TYPE_JSON – assumed ‘MYSQLI_TYPE_JSON’ (this will throw an Error in a future version of PHP)

解决phpMyAdmin Warning in ./libraries/classes/Dbi/DbiMysqli.php#463 Use of undefined constant MYSQLI_TYPE_JSON – assumed ‘MYSQLI_TYPE_JSON’ (this will throw an Error in a future version of PHP)

2020 年 4 月 7 日 北漂小兄弟 Comments 0 Comment

Posts navigation

OLDER POSTS

站内搜索

分类

  • ARTS
  • Golang
  • HTTP
  • JavaScript
  • laravel
  • LINUX
  • MySQL
  • PHP
  • python
  • rabbitMQ从0到0.99
  • 树莓派(raspberry pi)
  • 随笔

近期文章

  • golang strings.Builder 与拼接字符串的区别 2023 年 3 月 17 日
  • golang 将秒转化为小时分钟 2023 年 1 月 28 日
  • GO谚语你知道多少 2022 年 8 月 9 日
  • linux 快速清空一个文件命令 2022 年 5 月 20 日
  • iptables 常用命令总结 2022 年 5 月 14 日
  • 5、RabbitMQ的安装及常用命令 2022 年 5 月 4 日
  • 4、RabbitMQ五大模式 2022 年 5 月 4 日
  • 3、MQ四大核心 2022 年 5 月 3 日
  • 2,MQ能干什么 2022 年 5 月 3 日
  • 1,什么是MQ 2022 年 5 月 3 日
  • golang 遍历空数组实现指定次数的循环 2021 年 4 月 14 日
  • v2ray一键安装脚本 2020 年 11 月 29 日
  • powershell 递归批量删除指定类型的文件 2020 年 11 月 22 日
  • 从一个大的sql文件导入指定的表信息 2020 年 11 月 15 日
  • wordpress 增加显示备案信息 2020 年 11 月 9 日

归档

  • 2023年3月
  • 2023年1月
  • 2022年8月
  • 2022年5月
  • 2021年4月
  • 2020年11月
  • 2020年7月
  • 2020年6月
  • 2020年5月
  • 2020年4月
  • 2020年3月
  • 2020年2月
  • 2020年1月
  • 2019年12月
  • 2019年11月
  • 2019年10月
  • 2019年9月
  • 2019年8月
  • 2019年7月
  • 2019年6月
  • 2019年5月
  • 2019年3月
  • 2019年2月
  • 2019年1月
  • 2018年12月
  • 2018年11月
  • 2018年10月
  • 2018年9月
  • 2018年8月
  • 2018年7月
  • 2018年6月
  • 2018年5月
  • 2018年4月
  • 2018年3月
  • 2018年2月
  • 2018年1月
  • 2017年11月
  • 2017年10月
  • 2017年9月
  • 2017年8月
  • 2017年7月
  • 2017年6月
  • 2017年5月
  • 2017年1月
  • 2016年12月
  • 2016年5月
  • 2016年2月
  • 2015年12月
  • 2015年11月
  • 2015年10月
  • 2015年9月
  • 2015年8月
  • 2015年7月
  • 2015年6月
  • 2015年5月
  • 2015年4月
  • 2015年3月
  • 2015年2月
  • 2015年1月
  • 2014年12月
  • 2014年11月
  • 2014年10月
  • 2014年9月
  • 2014年8月
  • 2014年6月
  • 2014年5月
  • 2014年4月
  • 2014年3月
  • 2014年2月
  • 2014年1月
  • 2013年12月
  • 2013年11月
  • 2013年10月
  • 2013年9月
  • 2013年8月
  • 2013年7月
  • 2013年6月
  • 2013年5月
  • 2013年4月
© 2023 | Proudly Powered by WordPress | Theme: Nisarg