-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
528 lines (320 loc) · 17.8 KB
/
index.html
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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>Corleonis</title>
<meta property="og:title" content="Corleonis" />
<meta name="twitter:title" content="Corleonis" />
<meta name="author" content=""/>
<meta name="twitter:card" content="summary" />
<meta property="og:url" content="https://swind.github.io/" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Corleonis" />
<meta name="generator" content="Hugo 0.19" />
<link rel="canonical" href="https://swind.github.io/" />
<link rel="alternate" href="https://swind.github.io/index.xml" type="application/rss+xml" title="Corleonis">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css" integrity="sha384-wITovz90syo1dJWVh32uuETPVEtGigN07tkttEqPv+uR2SE/mbQcG7ATL28aI9H0" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://swind.github.io/css/main.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" />
<link rel="stylesheet" href="https://swind.github.io/css/pygment_highlights.css" />
<link rel="stylesheet" href="https://swind.github.io/css/highlight.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe.min.css" integrity="sha256-sCl5PUOGMLfFYctzDW3MtRib0ctyUvI9Qsmq2wXOeBY=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/default-skin/default-skin.min.css" integrity="sha256-BFeI1V+Vh1Rk37wswuOYn5lsTcaU96hGaI7OUVCLjPc=" crossorigin="anonymous" />
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<div class="pswp__bg"></div>
<div class="pswp__scroll-wrap">
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
<button class="pswp__button pswp__button--share" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
</button>
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-42855873-1', 'auto');
ga('send', 'pageview');
</script>
<script async src='//www.google-analytics.com/analytics.js'></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top navbar-custom">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="https://swind.github.io/">Corleonis</a>
</div>
<div class="collapse navbar-collapse" id="main-navbar">
<ul class="nav navbar-nav navbar-right">
<li>
<a title="Home" href="https://swind.github.io/">Home</a>
</li>
<li>
<a title="Posts" href="https://swind.github.io/post/">Posts</a>
</li>
</ul>
</div>
<div class="avatar-container">
<div class="avatar-img-border">
</div>
</div>
</div>
</nav>
<header class="header-section ">
<div class="intro-header no-img">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="page-heading">
<h1>Corleonis</h1>
</div>
</div>
</div>
</div>
</div>
</header>
<div role="main" class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="posts-list">
<article class="post-preview">
<a href="https://swind.github.io/post/parameter_to_property/">
<h2 class="post-title">parameter_to_property</h2>
</a>
<span class="post-meta">
Posted on September 27, 2017
</span>
<div class="post-entry">
<p>在 Python package <a href="https://github.com/xiaocong/uiautomator">uiautomator</a> 看到的有趣寫法</p>
<p></p>
<a href="https://swind.github.io/post/parameter_to_property/" class="post-read-more">[Read More]</a>
</div>
<span class="post-meta">
#<a href="https://swind.github.io/tags/python/">python</a>
</span>
</article>
<article class="post-preview">
<a href="https://swind.github.io/post/android_cpu_usage_by_adb/">
<h2 class="post-title">使用 ADB 來監控 APP 的 CPU 使用量</h2>
</a>
<span class="post-meta">
Posted on September 26, 2017
</span>
<div class="post-entry">
<p>其實在 <code>Linux</code> 上監控 CPU 的方法在 <code>Android</code> 上面也可以用,並且這些方法在很多人的 Blog 與 StackOverflow 也被討論到爛掉了。
這邊主要是紀錄如何使用 <code>adb</code> 與 <code>/proc</code> 取得 <code>Process</code> 與 <code>Thread</code> 的 CPU 資訊。</p>
<p></p>
<a href="https://swind.github.io/post/android_cpu_usage_by_adb/" class="post-read-more">[Read More]</a>
</div>
<span class="post-meta">
#<a href="https://swind.github.io/tags/android/">android</a>
#<a href="https://swind.github.io/tags/adb/">adb</a>
#<a href="https://swind.github.io/tags/python/">python</a>
</span>
</article>
<article class="post-preview">
<a href="https://swind.github.io/post/devpi/">
<h2 class="post-title">用 devpi 建立私有的 pypi server</h2>
</a>
<span class="post-meta">
Posted on September 20, 2017
</span>
<div class="post-entry">
<p>簡短作個筆記</p>
<h1 id="dockerfile">Dockerfile</h1>
<p><a href="https://github.com/Swind/docker-devpi">docker-devpi</a> fork 自 <a href="https://github.com/saily/openshift-devpi">saily/openshift-devpi</a>
不過如果可以的話我希望有機會可以改用 <code>alpine</code>。</p>
<p></p>
<a href="https://swind.github.io/post/devpi/" class="post-read-more">[Read More]</a>
</div>
<span class="post-meta">
#<a href="https://swind.github.io/tags/python/">python</a>
#<a href="https://swind.github.io/tags/pypi/">pypi</a>
</span>
</article>
<article class="post-preview">
<a href="https://swind.github.io/post/python-zeroconf/">
<h2 class="post-title">python-zeroconf 範例</h2>
</a>
<span class="post-meta">
Posted on September 11, 2017
</span>
<div class="post-entry">
<h1 id="zeroconf">zeroconf</h1>
<p>zeroconf ( Zero configuration networking ),主要透過 mDNS ( Multicast DNS ) 與 DNS-SD ( DNS Service Discovery ) 來實現。
而 <a href="https://github.com/jstasiak/python-zeroconf">python-zeroconf</a> 就是 <code>zeroconf</code> 的 <strong>純 Python</strong> 實現。</p>
<p></p>
<a href="https://swind.github.io/post/python-zeroconf/" class="post-read-more">[Read More]</a>
</div>
<span class="post-meta">
#<a href="https://swind.github.io/tags/python/">python</a>
#<a href="https://swind.github.io/tags/zeroconf/">zeroconf</a>
</span>
</article>
<article class="post-preview">
<a href="https://swind.github.io/post/use-adb-to-track-the-network-statistics/">
<h2 class="post-title">使用 adb 來追蹤查看 APP 的網路流量</h2>
</a>
<span class="post-meta">
Posted on July 12, 2017
</span>
<div class="post-entry">
<h2 id="使用-proc-底下的資訊">使用 /proc 底下的資訊</h2>
<p>雖然 Android 7 之後似乎一般應用程式已經沒有辦法存取 <code>/proc</code> 底下的東西了。 但是使用 ADB 的話還是沒有問題的。</p>
<p>這次我們使用的目標是</p>
<ol>
<li><code>/proc/uid_stat/{uid}/tcp_rcv</code></li>
<li><code>/proc/uid_stat/{uid}/tcp_snd</code></li>
</ol>
<p><code>tcp_rcv</code> 與 <code>tcp_snd</code> 分別所紀錄的是該 uid 所使用的 <code>TCP</code> 傳輸量(注意 <code>UDP</code> 並不包含在內)</p>
<p></p>
<a href="https://swind.github.io/post/use-adb-to-track-the-network-statistics/" class="post-read-more">[Read More]</a>
</div>
<span class="post-meta">
#<a href="https://swind.github.io/tags/android/">android</a>
#<a href="https://swind.github.io/tags/adb/">adb</a>
</span>
</article>
<article class="post-preview">
<a href="https://swind.github.io/post/adb/">
<h2 class="post-title">ADB 傳輸格式的筆記</h2>
</a>
<span class="post-meta">
Posted on July 11, 2017
</span>
<div class="post-entry">
<p>緩慢補充中…</p>
<p></p>
<a href="https://swind.github.io/post/adb/" class="post-read-more">[Read More]</a>
</div>
<span class="post-meta">
#<a href="https://swind.github.io/tags/android/">android</a>
#<a href="https://swind.github.io/tags/adb/">adb</a>
</span>
</article>
<article class="post-preview">
<a href="https://swind.github.io/post/jenkins-html-report/">
<h2 class="post-title">使用 docker 與 docker-compose 啟動 Jenkins</h2>
</a>
<span class="post-meta">
Posted on April 18, 2017
</span>
<div class="post-entry">
<h2 id="docker-hub-jenkins">Docker Hub - Jenkins</h2>
<p><a href="https://hub.docker.com/_/jenkins/">Docker Hub -Jenkins</a> 上其實文章已經很完整了。
這邊只是把我整理成 docker-compose 的過程紀錄一下。</p>
<p></p>
<a href="https://swind.github.io/post/jenkins-html-report/" class="post-read-more">[Read More]</a>
</div>
<span class="post-meta">
#<a href="https://swind.github.io/tags/jenkins/">jenkins</a>
#<a href="https://swind.github.io/tags/html/">html</a>
#<a href="https://swind.github.io/tags/docker/">docker</a>
</span>
</article>
<article class="post-preview">
<a href="https://swind.github.io/post/docker-python3-adb/">
<h2 class="post-title">建立可以執行 python3 與 adb 指令的 docker images</h2>
</a>
<span class="post-meta">
Posted on April 12, 2017
</span>
<div class="post-entry">
<h2 id="python3-adb">Python3 + adb</h2>
<p>這個 Image 使用 Alpine Linux Image 安裝了 Python3 與 ADB。
整體大小約 9x MB,用於執行 Python3 撰寫的 Android 測試。</p>
<p>整個 <code>Dockerfile</code> 是各家 Dockerfile 的大雜燴。感謝</p>
<ul>
<li><a href="https://github.com/frol/docker-alpine-python3">frol/docker-alpine-python3</a>,</li>
<li><a href="https://github.com/sorccu/docker-adb">sorccu/docker-adb</a></li>
<li><a href="https://github.com/cdrx/docker-pyinstaller">cdrx/docker-pyinstaller</a></li>
</ul>
<p></p>
<a href="https://swind.github.io/post/docker-python3-adb/" class="post-read-more">[Read More]</a>
</div>
<span class="post-meta">
#<a href="https://swind.github.io/tags/python/">python</a>
#<a href="https://swind.github.io/tags/docker/">docker</a>
#<a href="https://swind.github.io/tags/adb/">adb</a>
</span>
</article>
</div>
</div>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<ul class="list-inline text-center footer-links">
<li>
<a href="https://swind.github.io/index.xml" title="RSS">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-rss fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
</ul>
<p class="credits copyright text-muted">
•
2017
•
<a href="https://swind.github.io/">Corleonis</a>
</p>
<p class="credits theme-by text-muted">
<a href="http://gohugo.io">Hugo v0.19</a> powered • Theme by <a href="http://deanattali.com/beautiful-jekyll/">Beautiful Jekyll</a> adapted to <a href="https://github.com/halogenica/beautifulhugo">Beautiful Hugo</a>
</p>
</div>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.js" integrity="sha384-/y1Nn9+QQAipbNQWU65krzJralCnuOasHncUFXGkdwntGeSvQicrYkiUBwsgUqc1" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/contrib/auto-render.min.js" integrity="sha384-dq1/gEHSxPZQ7DdrM82ID4YVol9BYyU7GbWlIwnwyPzotpoc57wDw/guX8EaYGPx" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://swind.github.io/js/main.js"></script>
<script src="https://swind.github.io/js/highlight.min.js"></script>
<script> hljs.initHighlightingOnLoad(); </script>
<script> renderMathInElement(document.body); </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe.min.js" integrity="sha256-UplRCs9v4KXVJvVY+p+RSo5Q4ilAUXh7kpjyIP5odyc=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe-ui-default.min.js" integrity="sha256-PWHOlUzc96pMc8ThwRIXPn8yH4NOLu42RQ0b9SpnpFk=" crossorigin="anonymous"></script>
<script src="https://swind.github.io/js/load-photoswipe.js"></script>
</body>
</html>