北漂小兄弟的博客

北漂小兄弟的博客

菜根笔记

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
configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.

configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information.

2020 年 3 月 26 日 北漂小兄弟 Comments 0 Comment

php 编译mysql_pdo扩展报这个错误解决方案 sudo apt-get install libmysqlclient-dev

phpize Cannot find config.m4.

phpize Cannot find config.m4.

2020 年 3 月 25 日 北漂小兄弟 Comments 0 Comment

看看当前文件夹是不是有一个 config0.m4 改个名即可

configure: error: Package requirements (openssl >= 1.0.1) were not met: no package found openssl

configure: error: Package requirements (openssl >= 1.0.1) were not met: no package found openssl

2020 年 3 月 25 日 北漂小兄弟 Comments 0 Comment

sudo apt-get install libssl-dev

configure: error: Package requirements (sqlite3 > 3.7.4) were not met: No package ‘sqlite3’ found

configure: error: Package requirements (sqlite3 > 3.7.4) were not met: No package ‘sqlite3’ found

2020 年 3 月 25 日 北漂小兄弟 Comments 0 Comment

ubuntu sudo apt-get install libsqlite3-dev centos yum install sqlite-devel

golang 空接口断言数据类型

golang 空接口断言数据类型

2020 年 3 月 2 日 北漂小兄弟 Comments 0 Comment
golang 判断map的key值是否存在

golang 判断map的key值是否存在

2020 年 3 月 1 日 北漂小兄弟 Comments 0 Comment
golang 单元测试不执行?

golang 单元测试不执行?

2020 年 3 月 1 日 北漂小兄弟 Comments 0 Comment

golang单元测试不执行一般是什么问题呢/1、单元测试文件必须以test.go结尾2、单元测试文件里的方法必须以Test开头的驼峰形式命名方法,注意这里Tes…

Read More Read More

git 修改分支名称

git 修改分支名称

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

# git branch -m old new # git push origin new

git 检出某个分支的某个文件到当前分支

git 检出某个分支的某个文件到当前分支

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

git checkout current_branch git checkout feature/v1.2 — order.go// 将 featu…

Read More Read More

位运算

位运算

2020 年 1 月 10 日 北漂小兄弟 Comments 0 Comment

1<<10 等于多少?左移一位相当于乘以2 所以这个应该等于2的10次方1024 同理右移相当于除以2的n次方

Posts navigation

OLDER POST

站内搜索

海外主机强烈推荐

分类目录

  • ARTS
  • Golang
  • HTTP
  • JavaScript
  • laravel
  • LINUX
  • MySQL
  • PHP
  • python
  • 树莓派(raspberry pi)
  • 随笔

近期文章

  • golang 遍历空数组实现指定次数的循环 2021 年 4 月 14 日
  • v2ray一键安装脚本 2020 年 11 月 29 日
  • powershell 递归批量删除指定类型的文件 2020 年 11 月 22 日
  • 从一个大的sql文件导入指定的表信息 2020 年 11 月 15 日
  • wordpress 增加显示备案信息 2020 年 11 月 9 日
  • windows terminal 配置文件案例 2020 年 7 月 2 日
  • git 撤销上一次提交,撤销上次merge 2020 年 6 月 28 日
  • golang 时间与数字相乘的问题 2020 年 6 月 8 日
  • windows powershell 支持git 2020 年 5 月 17 日
  • 解决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 日
  • configure: error: PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information. 2020 年 3 月 26 日
  • phpize Cannot find config.m4. 2020 年 3 月 25 日
  • configure: error: Package requirements (openssl >= 1.0.1) were not met: no package found openssl 2020 年 3 月 25 日
  • configure: error: Package requirements (sqlite3 > 3.7.4) were not met: No package ‘sqlite3’ found 2020 年 3 月 25 日
  • golang 空接口断言数据类型 2020 年 3 月 2 日

文章归档

  • 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月
© 2021 京ICP备12015649号-1