-
树莓派3b连接wifi
Saturday, May 1, 2021
概述 使用网线很不方便,家里网口就那么几个,也不能一直把树莓派怼在路由器旁边,所以需要连接一下wifi,这里记录下两个方法。 开始之前有两件事要…
-
GeoIP的安装和更新
Monday, April 26, 2021
简介 GeoIP是IP地理位置数据库,可以根据IP地址(支持 IPv4 和 IPv6), 定位该 IP 所在的地理位置和 ASN 等信息。 GeoIP目前已经升级到 GeoIP2,Ge…
-
k8s搭建ELK
Monday, April 26, 2021
概述 这篇文章是我用 K8s 搭建 ELK 的实践记录,配置是通用的,每一部分需要额外修改的部分都会标注出来。整体配置文件目录结构如下: ├── elk │ ├── elk-data.yml │ ├…
-
大话数据结构学习笔记
Saturday, February 20, 2021
[TOC] 绪论 数据结构是一门研究非数值计算的程序设计问题中的操作对象,以及它们之间的关系和操作等相关问题的学科。 程序设计 = 数据结构 + 算法 数据 是描述客…
-
linux使用speedtest测试网速
Monday, January 18, 2021
1. Speedtest-cli Github主页:https://github.com/sivel/speedtest-cli 2. 安装python-pip yum install python-pip 3. 安装 speedtest-cli pip…
-
CentOS7.6初始化
Monday, January 18, 2021
1. 修改主机名 # 设置主机名 hostnamectl set-hostname [your name] 2. SSH Port 2220 # 开启密钥登陆 PubkeyAuthentication yes # 禁用密码登陆 PasswordAuthentication no # 解决服务器自动断开连接 # 服务端每隔60秒给客户端发送一次保活信…
-
CentOS安装Kubesphere
Monday, January 18, 2021
1. 说明 核心: 在腾讯云上默认有一个坑,就是 hostname 是大写,会造成安装失败,所以请按照我的来 当前(202010)KubeSphere 最新版本号:3.0…
-
Git 导出提交记录
Monday, January 18, 2021
Git 导出提交记录 # 导出简略信息及修改文件列表到指定文件 git log --since="10 day ago" --name-only --oneline --author Jormin --since "10 day ago" --pretty=format:"%h - %an, %ar : %s" > commit_file.log # 导出修改文件列表到指定文件 git log --since="10 day ago" --name-only --oneline --author Jormin…
-
Gitlab设置Go私库
Monday, January 18, 2021
Nginx 配置 server { listen 80; listen 443 ssl http2; server_name your.domain; ssl_certificate /etc/nginx/certs/your.domain.crt; ssl_certificate_key /etc/nginx/certs/your.domain.key; access_log /var/log/nginx/gitlab.nginx.log combined; error_log /var/log/nginx/gitlab.error.log error; index index.html index.htm index.php; if ($args ~* "^go-get=1") { set $condition goget; } if ($uri ~ ^/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$) { set $condition "${condition}path"; } if ($condition = gogetpath) { return 200 "<!DOCTYPE html><html><head><meta content='your.domain$uri git ssh://git@your.domain:port$uri.git' name='go-import'></head></html>"; } location / { proxy_pass http://ip:port; } }
-
go学习笔记
Monday, January 18, 2021
Go学习笔记 1. 入门 1.1 Go语言特点 静态类型、编译型的开源语言 脚本话的语法,支持多种编程范式(函数式 & 面向对象式) 原生、给力的并发编程支持 1.2 Go 语…