-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.xml
365 lines (287 loc) · 21.2 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Jacobc' Blog</title>
<link>https://jsharkc.github.io/</link>
<description>Recent content on Jacobc' Blog</description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-cn</language>
<lastBuildDate>Mon, 07 Nov 2022 10:34:00 +0000</lastBuildDate><atom:link href="https://jsharkc.github.io/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>CentOS 以 Docker 方式部署 Gitea</title>
<link>https://jsharkc.github.io/post/centos-install-gitea/</link>
<pubDate>Mon, 07 Nov 2022 10:34:00 +0000</pubDate>
<guid>https://jsharkc.github.io/post/centos-install-gitea/</guid>
<description>CentOS 以 Docker 方式部署 Gitea 一、下载 Jenkins 镜像 Gitea 提供了标准的容器镜像(gitea/gitea),统一支持 SQLite、MySQL、PostgreSQL 和 SQL Server</description>
</item>
<item>
<title>CentOS 以 Docker 方式部署 Jenkins</title>
<link>https://jsharkc.github.io/post/centos-install-jenkins/</link>
<pubDate>Wed, 02 Nov 2022 16:33:00 +0000</pubDate>
<guid>https://jsharkc.github.io/post/centos-install-jenkins/</guid>
<description>CentOS 以 Docker 方式部署 Jenkins 一、Docker 安装 Jenkins 1.1 下载 Jenkins 镜像 Jenkins 有两个产品线,一个是稳定版(Stable[LTS]),一个是新功能版(Regular[W</description>
</item>
<item>
<title>限制内存 mongo docker-compsoe 部署</title>
<link>https://jsharkc.github.io/post/mongo-docker-deploy/</link>
<pubDate>Sat, 02 Apr 2022 17:29:23 +8000</pubDate>
<guid>https://jsharkc.github.io/post/mongo-docker-deploy/</guid>
<description>用 docker 起 mongo,有两种限制方式: 通过 Docker 限制内存 通过 MongoDB 自己的配置文件限制 一、通过 Docker 限制内存 内存限制相关参数: 参数 简介 -m, &ndash;memory 内存限制,格式:数字</description>
</item>
<item>
<title>Centos 安装 oh-my-zsh</title>
<link>https://jsharkc.github.io/post/centos-install-oh-my-zsh/</link>
<pubDate>Thu, 17 Mar 2022 14:29:38 +0000</pubDate>
<guid>https://jsharkc.github.io/post/centos-install-oh-my-zsh/</guid>
<description>查看、安装 zsh 查看是否安装了 zsh # 方法一: chsh -l # 方法二: cat /etc/shells # 可能结果: /bin/sh /bin/bash /sbin/nologin /usr/bin/sh /usr/bin/bash /usr/sbin/nologin /bin/zsh # 如果有 /bin/zsh 代表已经安装,反之则没有 安装 zsh yum install -y zsh 切换 shell 为 zsh</description>
</item>
<item>
<title>Mac安装破解版 Charles</title>
<link>https://jsharkc.github.io/post/mac-install-charles/</link>
<pubDate>Fri, 17 Dec 2021 12:40:56 +0000</pubDate>
<guid>https://jsharkc.github.io/post/mac-install-charles/</guid>
<description>文章转自 https://www.jianshu.com/p/4f0573f3c5db 步骤 下载Charles安装包 双击dmg文件,将charles拖入应用程序中 在应用程序中右键 Charles,选择「显示包内容」,打开</description>
</item>
<item>
<title>kubeadm 安装 k8s</title>
<link>https://jsharkc.github.io/post/k8s-install-cluster/</link>
<pubDate>Tue, 16 Nov 2021 11:42:23 +8000</pubDate>
<guid>https://jsharkc.github.io/post/k8s-install-cluster/</guid>
<description>1. 环境初始化 1.1 安装并配置 Docker 1.1.1 安装 Docker 安装 Docker 参考 Docker安装 1.1.2 配置 cgroup driver 编辑 /etc/docker/daemon.json 文件,没有则创建,添加如下内容: { &#34;exec-opts&#34;: [&#34;native.cgroupdriver=systemd&#34;] } 1.1.3 配置国内 registry { &#34;exec-opts&#34;: [&#34;native.cgroupdriver=systemd&#34;], &#34;registry-mirrors&#34;:[&#34;https://hub-mirror.c.163.com&#34;] } 1.1.4</description>
</item>
<item>
<title>Centos7 安装 Docker</title>
<link>https://jsharkc.github.io/post/docker-install-centos7/</link>
<pubDate>Mon, 15 Nov 2021 17:42:23 +8000</pubDate>
<guid>https://jsharkc.github.io/post/docker-install-centos7/</guid>
<description>一条命令安装 官方脚本: curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun 国内 daocloud 安装命令: curl -sSL https://get.daocloud.io/docker | sh 手动安装指定版本 卸载旧版本 sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine \ container-selinux \ docker-selinux 安装</description>
</item>
<item>
<title>修复 dyld: Library not loaded</title>
<link>https://jsharkc.github.io/post/fix-dyld-library-not-loaded/</link>
<pubDate>Sat, 16 Oct 2021 14:37:03 +0800</pubDate>
<guid>https://jsharkc.github.io/post/fix-dyld-library-not-loaded/</guid>
<description>flutter 最新版 2.5.3 安装 CocoaPods 需要 ruby 2.6 以上,而我 MAC 上 ruby 只有 2.5 所以需要更新 ruby,brew install ruby 后,就碰到了这个问题。 报错信息: dyld: Library not loaded: /usr/local/opt/ruby/lib/libruby.2.5.dylib Referenced from: /usr/local/bin/vi Reason: image not found 也就</description>
</item>
<item>
<title>Golang 按大小 or 时间切割日志</title>
<link>https://jsharkc.github.io/post/golang-log-divide/</link>
<pubDate>Sun, 26 Sep 2021 19:05:03 +0800</pubDate>
<guid>https://jsharkc.github.io/post/golang-log-divide/</guid>
<description>Log 用的 go.uber.org/zap 库。 按大小切割日志 按大小切割日志,用到 github.com/natefinch/lumberjack 库,代码如下: package log import ( &#34;fmt&#34; &#34;os&#34; &#34;strings&#34; &#34;time&#34; &#34;github.com/natefinch/lumberjack&#34; &#34;go.uber.org/zap&#34; &#34;go.uber.org/zap/zapcore&#34; ) var Sugar *zap.SugaredLogger = nil var Raw *zap.Logger = nil // LogInit 初始化日志库 // dev 开发模式,日志</description>
</item>
<item>
<title>Linux防火墙-iptables</title>
<link>https://jsharkc.github.io/post/linux-iptables/</link>
<pubDate>Thu, 02 Sep 2021 19:42:23 +0000</pubDate>
<guid>https://jsharkc.github.io/post/linux-iptables/</guid>
<description>Linux防火墙&ndash;iptables学习 iptables是Linux系统提供的一个强大的防火墙工具,可以实现包过滤、包重定向、NA</description>
</item>
<item>
<title>Android手机作为linux服务器</title>
<link>https://jsharkc.github.io/post/android-phone-as-linux-server/</link>
<pubDate>Fri, 16 Jul 2021 12:59:00 +0000</pubDate>
<guid>https://jsharkc.github.io/post/android-phone-as-linux-server/</guid>
<description>有个闲置的「红米Note4」,想着是否能再利用一下,网上查了查,用 Termux 可以把 Android 手机当成 linux 服务器用,于是就有了接下来的部分了。 下载 Termux Termux 下载地址 下</description>
</item>
<item>
<title>有进程为什么还创造线程</title>
<link>https://jsharkc.github.io/post/process-and-thread/</link>
<pubDate>Tue, 13 Jul 2021 17:41:23 +0000</pubDate>
<guid>https://jsharkc.github.io/post/process-and-thread/</guid>
<description>有进程为什么还创造线程 原因: 进程属于在CPU和系统资源等方面提供的抽象,能够有效提高CPU的利用率。 线程是在进程这个层次上提供的一层并发的抽</description>
</item>
<item>
<title>Go 程序的性能优化及 pprof 的使用</title>
<link>https://jsharkc.github.io/post/go-pprof/</link>
<pubDate>Sat, 08 May 2021 11:17:35 +0000</pubDate>
<guid>https://jsharkc.github.io/post/go-pprof/</guid>
<description>Go 程序的性能优化及 pprof 的使用 转自snowInPluto 程序的性能优化无非就是对程序占用资源的优化。对于服务器而言,最重要的两项资源莫过于 CPU 和内</description>
</item>
<item>
<title>文件描述符 fd</title>
<link>https://jsharkc.github.io/post/linux-file-descriptor/</link>
<pubDate>Mon, 15 Mar 2021 18:13:00 +0000</pubDate>
<guid>https://jsharkc.github.io/post/linux-file-descriptor/</guid>
<description>文件描述符(File descriptor)是计算机科学中的一个术语,是一个用于表述指向文件的引用的抽象化概念。 文件描述符在形式上是一个非负整</description>
</item>
<item>
<title>MongoDB 的正确打开方式 Part1</title>
<link>https://jsharkc.github.io/post/mongo-use-1/</link>
<pubDate>Sat, 05 Dec 2020 16:52:24 +0000</pubDate>
<guid>https://jsharkc.github.io/post/mongo-use-1/</guid>
<description>MongoDB 的正确打开方式 Part1 在关系型数据库中,处理关系时,总是会有一张关系表,不论关系的规模,但在 MongoDB 数据库中,需要考虑关系的规模,我们用一对多关系举例</description>
</item>
<item>
<title>Mysql update 结合另一个表更新数据</title>
<link>https://jsharkc.github.io/post/mysql-update-%E7%BB%93%E5%90%88%E5%8F%A6%E4%B8%80%E4%B8%AA%E8%A1%A8%E6%9B%B4%E6%96%B0%E6%95%B0%E6%8D%AE/</link>
<pubDate>Tue, 10 Nov 2020 14:50:32 +0000</pubDate>
<guid>https://jsharkc.github.io/post/mysql-update-%E7%BB%93%E5%90%88%E5%8F%A6%E4%B8%80%E4%B8%AA%E8%A1%A8%E6%9B%B4%E6%96%B0%E6%95%B0%E6%8D%AE/</guid>
<description>有时 update 更新语句会需要根据另一个表进行更新,举例如下: -- 方式一: update tableA a, tableB b set a.Name=b.Name, a.Age=b.Age where a.IDCard=b.IDCard; -- 方式二: update tableA a inner join tableB b on a.IDCard=b.IDCard set a.Name=b.Name, a.Age=b.Age;</description>
</item>
<item>
<title>Flutter 返回按钮返回桌面</title>
<link>https://jsharkc.github.io/post/flutter-%E8%BF%94%E5%9B%9E%E6%A1%8C%E9%9D%A2/</link>
<pubDate>Thu, 29 Oct 2020 21:42:23 +0000</pubDate>
<guid>https://jsharkc.github.io/post/flutter-%E8%BF%94%E5%9B%9E%E6%A1%8C%E9%9D%A2/</guid>
<description>Flutter 返回按钮返回桌面 想实现点击返回按钮,直接返回桌面,本想 flutter 有方法的话,直接用,然而好像没有,所以采用调用本地方法返回桌面 Android 端 MainActivity 代码如下 package com.dreamreal.example; import</description>
</item>
<item>
<title>接口幂等性设计</title>
<link>https://jsharkc.github.io/post/api-idempotent/</link>
<pubDate>Thu, 24 Sep 2020 19:42:23 +0000</pubDate>
<guid>https://jsharkc.github.io/post/api-idempotent/</guid>
<description>一、什么是幂等 幂等是一个数学与计算机科学概念。 在数学中,幂等用函数表达式就是:f(x) = f(f(x))。比如求绝对值的函数,就是幂等的,ab</description>
</item>
<item>
<title>MySQL 四种隔离级别 & 间隙锁</title>
<link>https://jsharkc.github.io/post/mysql-isolation/</link>
<pubDate>Wed, 19 Aug 2020 21:32:46 +0800</pubDate>
<guid>https://jsharkc.github.io/post/mysql-isolation/</guid>
<description>一、事务的四个特征(ACID) 事务具有四个特征:原子性( Atomicity )、一致性( Consistency )、隔离性( Isolation )和持续性( Durability )。这四个特性简称为 ACID 特性。 1. 原子性 (Atomicity) 事</description>
</item>
<item>
<title>Cobra - 一个 Golang 命令行项目生成工具</title>
<link>https://jsharkc.github.io/post/go-cobra/</link>
<pubDate>Sun, 17 May 2020 15:07:14 +0000</pubDate>
<guid>https://jsharkc.github.io/post/go-cobra/</guid>
<description>Cobra - Golang 命令行库 简介: Cobra 是一个创建 CLI 命令行的 golang 库。 组成: Cobra 结构由三部分组成:命令( Command )、参数( Args )、标志( Flag )。 type Command struct { Use string // The one-line usage message. Short string // The</description>
</item>
<item>
<title>Golang Interface 解析</title>
<link>https://jsharkc.github.io/post/go-interface/</link>
<pubDate>Mon, 06 Apr 2020 20:27:43 +0000</pubDate>
<guid>https://jsharkc.github.io/post/go-interface/</guid>
<description>Interface 解析 原文链接 先看一段代码: func Foo(x interface{}) { if x == nil { fmt.Println(&#34;empty interface&#34;) return } fmt.Println(&#34;non-empty interface&#34;) } func main() { var x *int = nil Foo(x) } 上面的例子的输出结果如下 $ go run test_interface.go non-empty interface 可能你会感觉奇怪,为什么</description>
</item>
<item>
<title>Golang slice 切片原理</title>
<link>https://jsharkc.github.io/post/go-slice/</link>
<pubDate>Tue, 10 Mar 2020 19:27:43 +0000</pubDate>
<guid>https://jsharkc.github.io/post/go-slice/</guid>
<description>Golang slice 切片原理 golang 中的 slice 是比较好用的一种结构,能根据需求变长,相对于 array 的死板,slice 更加灵活也更加常用,有道说:知其然,知其所以然。现在,</description>
</item>
<item>
<title>Jobrunner 源码解析</title>
<link>https://jsharkc.github.io/post/jobrunner/</link>
<pubDate>Mon, 27 Jan 2020 11:07:35 +0000</pubDate>
<guid>https://jsharkc.github.io/post/jobrunner/</guid>
<description>s 安装 go get github.com/bamzi/jobrunner 使用 eg1 package main import &#34;github.com/bamzi/jobrunner&#34; func main() { jobrunner.Start() jobrunner.Schedule(&#34;@every 5s&#34;, ReminderEmails{}) select{} } type ReminderEmails struct {} func (e ReminderEmails) Run() { fmt.Printf(&#34;Every 5 sec send reminder emails \n&#34;) } ***解析:***在 main() 函数中,jobrunner 是导入的包, jobrunner.Start()</description>
</item>
<item>
<title>Golang I/O 包的妙用</title>
<link>https://jsharkc.github.io/post/go-io/</link>
<pubDate>Sat, 14 Dec 2019 10:35:43 +0000</pubDate>
<guid>https://jsharkc.github.io/post/go-io/</guid>
<description>Golang I/O 包的妙用 golang标准库对io的抽象非常精巧,各个组件可以随意组合,可以作为接口设计的典范。这篇文章结合一个实际的例子来和大家分享一下</description>
</item>
<item>
<title>跨域资源共享 CORS 详解</title>
<link>https://jsharkc.github.io/post/cors/</link>
<pubDate>Sat, 30 Nov 2019 15:07:00 +0000</pubDate>
<guid>https://jsharkc.github.io/post/cors/</guid>
<description><h1 id="跨域资源共享-cors-详解">跨域资源共享 CORS 详解</h1>
<p>CORS是一个W3C标准,全称是&quot;跨域资源共享&quot;(Cross-origin resource sharing)。
它允许浏览器向跨源服务器,发出<code>XMLHttpRequest</code>请求,从而克服了AJAX只能<strong>同源</strong>使用的限制。
本文详细介绍CORS的内部机制。</p></description>
</item>
<item>
<title>Go注意点总结</title>
<link>https://jsharkc.github.io/post/go-note/</link>
<pubDate>Fri, 15 Nov 2019 21:34:10 +0000</pubDate>
<guid>https://jsharkc.github.io/post/go-note/</guid>
<description>Go &gt;注意点&lt; 总结 1. 布尔类型 布尔类型 不能 接受其他类型的赋值,不支持 自动或者强制的类型转换 var b bool b = 1 // 编译错误 b = bool(1) // 编译错误 2.</description>
</item>
<item>
<title>Docker Note</title>
<link>https://jsharkc.github.io/post/docker-note/</link>
<pubDate>Sat, 12 Oct 2019 16:52:24 +0000</pubDate>
<guid>https://jsharkc.github.io/post/docker-note/</guid>
<description>Docker Note 镜像 虚悬镜像 没有仓库名,也没有标签,均为&lt;none&gt;的为虚悬镜像: &lt;none&gt; &lt;none&gt; 00285df0df87 5 days ago 342 MB 由于新旧镜像同名,旧镜像名称被取消,从</description>
</item>
<item>
<title>Golang 中不存在引用传参</title>
<link>https://jsharkc.github.io/post/go-no-ref-param/</link>
<pubDate>Fri, 13 Sep 2019 13:27:43 +0000</pubDate>
<guid>https://jsharkc.github.io/post/go-no-ref-param/</guid>
<description>Golang 中不存在引用传参 原文链接 翻译:Jsharkc 什么是引用变量 ? 在 C++ 语言中,你可以为已存在的变量声明一个别名,这就是引用变量: #include &lt;stdio.h&gt; int main() { int a</description>
</item>
<item>
<title>Git命令清单</title>
<link>https://jsharkc.github.io/post/git-command/</link>
<pubDate>Wed, 28 Aug 2019 22:49:10 +0000</pubDate>
<guid>https://jsharkc.github.io/post/git-command/</guid>
<description>Git专有名词解释: Workspace:工作区 Index / Stage:暂存区 Repository:仓库区(或本地仓库) Remote:远程仓库 一、新建</description>
</item>
<item>
<title>初探 Cockroachdb</title>
<link>https://jsharkc.github.io/post/cockroachdb/</link>
<pubDate>Sat, 17 Aug 2019 14:50:37 +0000</pubDate>
<guid>https://jsharkc.github.io/post/cockroachdb/</guid>
<description>初探 Cockroachdb 1.创建网桥 由于在单个主机上运行多个 Docker 容器,因此每个容器有一个 CockroachDB 节点,需要创建Docker所指的桥接网络。桥接网络将使容器能够作为单个</description>
</item>
<item>
<title>十条有用的 GO 小技巧</title>
<link>https://jsharkc.github.io/post/go-tips-ten-useful/</link>
<pubDate>Mon, 29 Jul 2019 21:42:23 +0000</pubDate>
<guid>https://jsharkc.github.io/post/go-tips-ten-useful/</guid>
<description>十条有用的 Go 技巧 转自 mikespook.com 这里是我过去几年中编写的大量 Go 代码的经验总结而来的自己的最佳实践。我相信它们具有弹性的。这里的弹性是指: 某个应用需要适</description>
</item>
<item>
<title>Mac 使用 V2ray</title>
<link>https://jsharkc.github.io/post/v2ray%E4%BD%BF%E7%94%A8/</link>
<pubDate>Sun, 07 Apr 2019 21:42:23 +0000</pubDate>
<guid>https://jsharkc.github.io/post/v2ray%E4%BD%BF%E7%94%A8/</guid>
<description>Install v2ray-core step 1: Add official tap brew tap v2ray/v2ray step 2: Install v2ray-core: brew install v2ray-core Update v2ray-core step 1: update tap brew update step 2: update v2ray-core brew upgrade v2ray-core 使用 直接在命令行上输入 v2ray 就可以运行 v2ray-core。(配置文件在当前目录</description>
</item>
<item>
<title>create-react-app 脚手架添加 less 支持和 antd 样式按需加载</title>
<link>https://jsharkc.github.io/post/react-less-and-antd/</link>
<pubDate>Sun, 03 Feb 2019 17:42:23 +0800</pubDate>
<guid>https://jsharkc.github.io/post/react-less-and-antd/</guid>
<description>create-react-app 脚手架添加 less 支持和 antd 样式按需加载 1. 创建项目 npm install -g create-react-app /* 安装create-react-app,建议使用cnpm */ create-react-app react-test /* 使用命令创建应用,mya</description>
</item>
<item>
<title></title>
<link>https://jsharkc.github.io/top/books/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jsharkc.github.io/top/books/</guid>
<description>Machine learning学习笔记 Coursera 在线课程 Machine learning 笔记 讲师: 吴恩达(Andrew Ng) 课程地址:https://www.coursera.org/lear</description>
</item>
<item>
<title>About</title>
<link>https://jsharkc.github.io/top/about/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jsharkc.github.io/top/about/</guid>
<description>TEST HUGO BLOG</description>
</item>
<item>
<title>Archive</title>
<link>https://jsharkc.github.io/archives/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jsharkc.github.io/archives/</guid>
<description>archives</description>
</item>
<item>
<title>Archive</title>
<link>https://jsharkc.github.io/top/archives/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jsharkc.github.io/top/archives/</guid>
<description>archive</description>
</item>
<item>
<title>Search</title>
<link>https://jsharkc.github.io/search/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jsharkc.github.io/search/</guid>
<description>search</description>
</item>
<item>
<title>Search</title>
<link>https://jsharkc.github.io/search/placeholder/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://jsharkc.github.io/search/placeholder/</guid>
<description>search</description>
</item>
</channel>
</rss>