-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
271 lines (204 loc) · 12.4 KB
/
index.html
File metadata and controls
271 lines (204 loc) · 12.4 KB
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
<!DOCTYPE html>
<html>
<head lang="zh-hans">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"><title>白菜不是菜 | Home </title><meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="A minimal Hugo theme with nice theme color." />
<meta property="og:image" content=""/>
<link rel="alternate" type="application/rss+xml" href="https://iminto.github.io/index.xml" title="白菜不是菜" />
<meta property="og:url" content="https://iminto.github.io/">
<meta property="og:site_name" content="白菜不是菜">
<meta property="og:title" content="白菜不是菜">
<meta property="og:description" content="A minimal Hugo theme with nice theme color.">
<meta property="og:locale" content="zh_cn">
<meta property="og:type" content="website">
<meta property="og:image" content="https://iminto.github.io/img/og.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://iminto.github.io/img/og.png">
<meta name="twitter:title" content="白菜不是菜">
<meta name="twitter:description" content="A minimal Hugo theme with nice theme color.">
<link href="https://iminto.github.io/css/fonts.2c2227b81b1970a03e760aa2e6121cd01f87c88586803cbb282aa224720a765f.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" media="screen" href="https://iminto.github.io/css/main.6a0f23ea50fd34b46fee262a5a68e17d458c51a2bc99ba1ba018065de6b180c3.css" />
</head>
<body>
<div class="content">
<header>
<div class="main">
<a href="https://iminto.github.io/">白菜不是菜</a>
</div>
<nav>
<a href="/">Home</a>
<a href="/post">All posts</a>
<a href="/about">About</a>
<a href="/tags">Tags</a>
<a href="/index.xml">RSS</a>
</nav>
</header>
<main class="list">
<div class="site-description"><p>他们相信天堂是有的,可以实现的,但在现世界与那天堂的中间隔着一座海,一座血污海,人类泅得过这血海,才能登彼岸,他们决定先实现那血海。</p></div>
<section class="list-item">
<h1 class="title"><a href="/post/%E8%8B%B9%E6%9E%9C%E5%88%B0%E5%BA%95%E6%9C%89%E5%A4%9A%E5%9E%83%E5%9C%BE/">苹果到底有多垃圾-讨贼檄文</a></h1>
<time>2026年1月6日</time>
<br><div class="description">
<p>注:<strong>本文对苹果公司和苹果粉丝攻击性极强,注意避让,必要时可准备速效救心丸。</strong></p>
<p>今天,我们来喷一下工业垃圾-iOS手机。早日认清iOS真相,早日拥抱真善美。苹果罪大滔天,搞到百姓怨声载道!
苹果一日不死,就是IT界最大的毒瘤!</p>…
</div>
<a class="readmore" href="/post/%E8%8B%B9%E6%9E%9C%E5%88%B0%E5%BA%95%E6%9C%89%E5%A4%9A%E5%9E%83%E5%9C%BE/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/%E9%B8%A1%E8%82%8B%E7%9A%84knox/">鸡肋的knox</a></h1>
<time>2025年4月3日</time>
<br><div class="description">
<p>网络上介绍Knox的文章很多,然而仅限于demo,很少有人真正深入使用过,更少见谈Knox缺点的文章。故写此博客</p>
<h1 id="konx简介">Konx简介</h1>
<p>Apache Knox Gateway是一个应用程序网关,用于与Apache Hadoop部署的REST api和ui进行交互。Knox Gateway为与Apache Hadoop集群的所有REST和HTTP交互提供一个单一的访问点。</p>…
</div>
<a class="readmore" href="/post/%E9%B8%A1%E8%82%8B%E7%9A%84knox/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/python%E5%A4%9A%E6%92%AD/">Python多播</a></h1>
<time>2025年4月2日</time>
<br><div class="description">
<p>多播协议是个好东西。
服务端</p>
<pre><code class="language-python">import socket
import struct
# 多播地址和端口
MULTICAST_GROUP = '239.0.0.110'
SERVER_PORT = 12345
# 创建 UDP 套接字
server_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
# 允许地址重用
server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
# 绑定到指定端口
server_socket.bind(('', SERVER_PORT))
# 将套接字加入多播组
group = socket.inet_aton(MULTICAST_GROUP)
mreq = struct.pack('4sL', group, socket.INADDR_ANY)
server_socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
print(f"Listening on multicast address {MULTICAST_GROUP}:{SERVER_PORT}...")
try:
while True:
# 接收数据
data, client_address = server_socket.recvfrom(1024)
message = data.decode('utf-8')
print(f"Received message from {client_address}: {message}")
# 向客户端发送响应
response = "Message received successfully!"
server_socket.sendto(response.encode('utf-8'), client_address)
except KeyboardInterrupt:
print("Shutting down...")
finally:
server_socket.close()
</code></pre>
<p>客户端</p>…
</div>
<a class="readmore" href="/post/python%E5%A4%9A%E6%92%AD/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/%E6%96%87%E4%BB%B6%E7%94%9F%E6%88%90%E5%8A%A8%E6%80%81%E4%BA%8C%E7%BB%B4%E7%A0%81/">文件生成动态二维码</a></h1>
<time>2023年6月16日</time>
<br><div class="description">
<p>将图片/文件转为二维码动画</p>
<pre><code class="language-bash">yum install qrencode
test="$(cat dianlong.jpg| base64|tr '\n' ' '|sed 's/[[:space:]]//g')"
echo $test >> base64.txt #文件转base64
split -b 1k base64.txt 1_ #按1K分割
for x in $(find -type f -name "1_*"); do cat $x|qrencode -o $x.png -s 4 ;done
ffmpeg -framerate 6 -pattern_type glob -i '1_*.png' -loop 0 out1.gif #转GIF
ffmpeg -framerate 10 -pattern_type glob -i '1_*.png' -c:v libx264 -pix_fmt yuv420p out.mp4
#计算帧数,验证
ffprobe -i out.mp4
ffmpeg -i out.mp4 -map 0:v:0 -c copy -f null -
ffprobe -v error -select_streams v:0 -show_entries stream=nb_frames -of default=nokey=1:noprint_wrappers=1 out.mp4
</code></pre>
<p>还原:</p>…
</div>
<a class="readmore" href="/post/%E6%96%87%E4%BB%B6%E7%94%9F%E6%88%90%E5%8A%A8%E6%80%81%E4%BA%8C%E7%BB%B4%E7%A0%81/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/cpuid%E5%92%8C%E5%BA%8F%E5%88%97%E5%8F%B7%E8%83%8C%E5%90%8E%E7%9A%84%E9%82%A3%E4%BA%9B%E6%95%85%E4%BA%8B/">Cpuid和序列号背后的那些故事</a></h1>
<time>2022年2月9日</time>
<br><div class="description">
<p>最近测试反馈了一个问题,每次重启服务器,我们某个版本的业务系统中的机器码都会改变,导致根据机器码算出来的许可证失效,从而使软件无法使用。
这个问题反馈了有一段时间了,但是本地一直没复现。然后前几天测试说又复现了,马上去看了下测试环境,服务器是一台国产化FT S2500服务器,验证了下,果然如此,马上去看了下关键代码。</p>…
</div>
<a class="readmore" href="/post/cpuid%E5%92%8C%E5%BA%8F%E5%88%97%E5%8F%B7%E8%83%8C%E5%90%8E%E7%9A%84%E9%82%A3%E4%BA%9B%E6%95%85%E4%BA%8B/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/socket%E6%8F%8F%E8%BF%B0%E7%AC%A6%E7%9A%84%E9%82%A3%E4%BA%9B%E4%BA%8B/">进程Socket描述符的那些事</a></h1>
<time>2021年7月9日</time>
<br><div class="description">
<p>前几天看到有人发的一个面试题,问的是MySQL连接的进程描述符的问题。</p>
<p>在Linux里,一切皆文件,那进程描述符,实际就是文件描述符了。</p>
<p>我们还知道Linux 内核提供了一种通过 proc文件系统,/proc 文件系统是一个虚拟文件系统,通过它可以使用一种新的方法在 Linux内核空间和用户间之间进行通信。在 /proc文件系统中,我们可以将对虚拟文件的读写作为与内核中实体进行通信的一种手段,但是与普通文件不同的是,这些虚拟文件的内容都是动态创建的。用户和应用程序可以通过proc得到系统的信息,并可以改变内核的某些参数。</p>…
</div>
<a class="readmore" href="/post/socket%E6%8F%8F%E8%BF%B0%E7%AC%A6%E7%9A%84%E9%82%A3%E4%BA%9B%E4%BA%8B/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/java%E5%AE%89%E5%85%A8%E7%AD%96%E7%95%A5%E9%85%8D%E7%BD%AE%E5%92%8C%E6%B2%99%E7%AE%B1%E9%97%B2%E8%AF%9D/">Java安全策略配置和沙箱闲话</a></h1>
<time>2021年6月17日</time>
<br><div class="description">
<p>之前一篇文章提到了System.exit和SecurityManager,引入了下面的代码</p>
<pre><code class="language-java">public class SelfSecurityManager extends SecurityManager{
..//
@Override
public void checkExit(int status) {
super.checkExit(status);
throw new ExitException(status);
}
}
</code></pre>
<p>通过自定义SecurityManager来禁止System.exit的执行,这里我们来分析下其实现原理,看下super.checkExit方法</p>…
</div>
<a class="readmore" href="/post/java%E5%AE%89%E5%85%A8%E7%AD%96%E7%95%A5%E9%85%8D%E7%BD%AE%E5%92%8C%E6%B2%99%E7%AE%B1%E9%97%B2%E8%AF%9D/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/%E8%B0%81%E6%9D%80%E6%AD%BB%E4%BA%86%E8%BF%99%E4%B8%AA%E8%BF%9B%E7%A8%8B/">谁杀死了这个进程</a></h1>
<time>2021年6月15日</time>
<br><div class="description">
<p>之前文章提到服务器上一个进程启动后不到三分钟就挂掉,到底是什么原因挂掉了,这个问题可以写篇文章了。进程死了,无非就两种可能:自杀,他杀。他杀又包括第三方杀害和系统判死刑。</p>
<p>先来看自杀。</p>
<h2 id="1自杀">1.自杀</h2>
<p>我们以Java为例,Java程序在main方法运行完就会退出,这种属于自杀。或者像下面这样</p>…
</div>
<a class="readmore" href="/post/%E8%B0%81%E6%9D%80%E6%AD%BB%E4%BA%86%E8%BF%99%E4%B8%AA%E8%BF%9B%E7%A8%8B/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/%E5%9D%9A%E6%9E%9C3%E6%89%8B%E6%9C%BA%E5%88%B7%E9%AD%94%E8%B6%A3%E4%BD%93%E9%AA%8C/">坚果3手机刷魔趣体验</a></h1>
<time>2021年5月21日</time>
<br><div class="description">
<p>坚果3,发布于2018年4月,骁龙625处理器,4G内存,安卓7.1系统。</p>
<p>我手里这台,已经退役两个多月了,屏幕摔得到处是裂缝,老罗破产了,系统最后一次更新是2020年2月了,而且安卓7.1也老了一点。锤子手机其实不是太喜欢,它的特色功能我一个都不喜欢,什么one step,大爆炸,胶囊,我都用不上,当时买它只是因为便宜,性价比不错。另外,锤子的手机也不够开放,我也卸载或冻结了很多它自带的系统APP,导致系统APP卸载了,菜单还保留着,但不能点击,额,不能忍受,所以越用越不顺眼,正好换了新手机,就刷机了。</p>…
</div>
<a class="readmore" href="/post/%E5%9D%9A%E6%9E%9C3%E6%89%8B%E6%9C%BA%E5%88%B7%E9%AD%94%E8%B6%A3%E4%BD%93%E9%AA%8C/">Read more ⟶</a>
</section>
<section class="list-item">
<h1 class="title"><a href="/post/linux%E6%81%B6%E6%84%8Felf%E6%96%87%E4%BB%B6%E5%88%86%E6%9E%90/">Linux恶意ELF文件分析</a></h1>
<time>2021年5月17日</time>
<br><div class="description">
<p>起因是某客户的服务器上,只要一启动server,过不了几秒就被kill,然后错误日志也看不出啥。
server是基于jvm的,怎么看一个进程被哪个进程杀死,这个可以写一篇文章了。</p>
<p>自信一点,这肯定不是我们代码的问题导致JVM崩溃啊,毫无疑问是那些做安全的脚本小子搞的。</p>…
</div>
<a class="readmore" href="/post/linux%E6%81%B6%E6%84%8Felf%E6%96%87%E4%BB%B6%E5%88%86%E6%9E%90/">Read more ⟶</a>
</section>
<ul class="pagination">
<span class="page-item page-prev">
</span>
<span class="page-item page-next">
<a href="/page/2/" class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
</span>
</ul>
</main>
<footer>
<div style="display:flex"></div>
<div class="footer-info">
2026 <a
href="https://github.com/athul/archie">Archie Theme</a> | Built with <a href="https://gohugo.io">Hugo</a>
</div>
</footer>
</div>
</body>
</html>