-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
335 lines (228 loc) · 11.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Alex's Heya</title>
<meta name="description" content="{{theme.description}}" />
<meta name="keywords" content="{{theme.keywords}}" />
<meta name="HandheldFriendly" content="True" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="An Alex only Loves Angel">
<meta property="og:type" content="website">
<meta property="og:title" content="Alex's Heya">
<meta property="og:url" content="http://ukeyim.me/index.html">
<meta property="og:site_name" content="Alex's Heya">
<meta property="og:description" content="An Alex only Loves Angel">
<meta property="og:locale" content="zh-CN">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Alex's Heya">
<meta name="twitter:description" content="An Alex only Loves Angel">
<link rel="icon" href="/favicon.png">
<script src="https://use.typekit.net/eyf3hir.js"></script>
<script>try{Typekit.load({ async: false });}catch(e){}</script>
<link rel="stylesheet" href="/style.css">
<script>
function setLoadingBarProgress(num) {
document.getElementById('loading-bar').style.width=num+"%";
}
</script>
</head>
<body>
<div id="loading-bar-wrapper">
<div id="loading-bar"></div>
</div>
<script>setLoadingBarProgress(20)</script>
<div id="site-wrapper">
<header id="header">
<div id="header-wrapper" class="clearfix">
<a id="logo" href="/">
<img src="/images/logo.png" />
<span id="site-desc">
i dont wanna stop
</span>
</a>
<button id="site-nav-switch">
<span class="icon icon-menu"></span>
</button>
</div>
<aside id="site-menu">
<nav>
<a href="/" class="nav-home nav">
Home
</a>
<a href="/about" class="nav-about nav">
About
</a>
<a href="/archives" class="nav-archives nav">
Archives
</a>
</nav>
</aside>
</header>
<script>setLoadingBarProgress(40);</script>
<main id="main" role="main">
<section class="post-list">
<article class="post ">
<h2 class="title">
<a href="/2018/04/08/mac使用caffeinate放休眠/">
mac使用caffeinate放休眠
</a>
</h2>
<time>
4月 8, 2018
</time>
<section class="content">
<p>不想装第三方(Amphetamine之类的),mac原生自带<code>caffeinate</code>命令防休眠</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div></pre></td><td class="code"><pre><div class="line">-d Create an assertion to prevent the display from sleeping.</div><div class="line"></div><div class="line">-i Create an assertion to prevent the system from idle sleeping.</div><div class="line"></div><div class="line">-m Create an assertion to prevent the disk from idle sleeping.</div><div class="line"></div><div class="line">-s Create an assertion to prevent the system from sleeping. This assertion is valid only when system is running on AC power.</div><div class="line"></div><div class="line">-u Create an assertion to declare that user is active. If the display is off, this option turns the display on and prevents the display from going</div><div class="line"> into idle sleep. If a timeout is not specified with '-t' option, then this assertion is taken with a default of 5 second timeout.</div></pre></td></tr></table></figure>
<p>配合<code>alfred</code>的<code>Caffeinate Control</code>效果拔群。</p>
<div class="tags">
<a class="tag-link" href="/tags/osx/">osx</a>
</div>
</section>
</article>
<article class="post ">
<h2 class="title">
<a href="/2018/03/22/osx-10-13-python-SSL报错-ssl-module-in-Python-is-not-available)/">
osx 10.13 python SSL报错(ssl module in Python is not available)
</a>
</h2>
<time>
3月 22, 2018
</time>
<section class="content">
<h1 id="待更新。。。"><a href="#待更新。。。" class="headerlink" title="待更新。。。"></a>待更新。。。</h1><p>###问题描述<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">$ pip install pyopenssl --trusted-host pypi.python.org</div><div class="line">pip is configured with locations that require TLS/SSL, however the ssl module <span class="keyword">in</span> Python is not available.</div><div class="line">Collecting pyopenssl</div><div class="line"> Could not fetch URL https://pypi.python.org/simple/pyopenssl/: There was a problem confirming the ssl certificate: Can<span class="string">'t connect to HTTPS URL because the SSL module is not available. - skipping</span></div><div class="line"> Could not find a version that satisfies the requirement pyopenssl (from versions: )</div><div class="line">No matching distribution found for pyopenssl</div></pre></td></tr></table></figure></p>
<p>From <a href="http://cpython-devguide.readthedocs.io/setup/#build-dependencies" target="_blank" rel="noopener">Python Developer’s Guide</a></p>
<blockquote>
<p>As of OS X 10.11, Apple no longer provides header files for the deprecated system version of OpenSSL which means that you will not be able to build the _ssl extension.<br>
<div class="readmore">
<a href="/2018/03/22/osx-10-13-python-SSL报错-ssl-module-in-Python-is-not-available)/">Read More</a>
</div>
<div class="tags">
<a class="tag-link" href="/tags/osx/">osx</a>
</div>
</section>
</article>
<article class="post ">
<h2 class="title">
<a href="/2018/03/19/使用privoxy让iterm走ss代理/">
使用privoxy让iterm走ss代理
</a>
</h2>
<time>
3月 19, 2018
</time>
<section class="content">
<p>主要参考<a href="https://tech.jandou.com/to-accelerate-the-terminal.html" target="_blank" rel="noopener">使用 shadowsocks 加速 Mac 自带终端或iTerm 2</a></p>
<p><strong>shadowsocks-NG自带privoxy</strong></p>
<h3 id="Privoxy配置"><a href="#Privoxy配置" class="headerlink" title="Privoxy配置"></a>Privoxy配置</h3><p>在<code>vim /usr/local/etc/privoxy/config</code>中添加</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div></pre></td><td class="code"><pre><div class="line">listen-address 0.0.0.0:1087 #全局域网可访问</div><div class="line">forward-socks5 / localhost:1080 . #最后有个.</div></pre></td></tr></table></figure>
<p>然后<code>sudo privoxy /usr/local/privoxy/config</code></p>
<p>mac段查看端口<code>lsof -iTCP:1087</code> </p>
<h3 id="使用ShadowsocksX-NG"><a href="#使用ShadowsocksX-NG" class="headerlink" title="使用ShadowsocksX-NG"></a>使用ShadowsocksX-NG</h3><p>在<code>HTTP Proxy Preference</code>选端口</p>
<div class="readmore">
<a href="/2018/03/19/使用privoxy让iterm走ss代理/">Read More</a>
</div>
</section>
</article>
<article class="post ">
<h2 class="title">
<a href="/2017/11/25/osx-transfer-file-to-android/">
osx transfer file to android
</a>
</h2>
<time>
11月 25, 2017
</time>
<section class="content">
<p>一百年没写的blog<br>osx没法读android的mtp然后用airdrop真的是慢道靠背,还好可以用adb传东西。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">$ adb root</div><div class="line">$ adb remount</div><div class="line">//确保可以rw</div><div class="line"><span class="variable">$adb</span> push Downloads/Persona_JPN_PSP-Caravan/cvn-persona.iso /sdcard/persona.iso</div></pre></td></tr></table></figure>
<div class="tags">
<a class="tag-link" href="/tags/osx/">osx</a>
</div>
</section>
</article>
<article class="post ">
<h2 class="title">
<a href="/2017/05/06/firefox关闭javascript/">
firefox关闭javascript
</a>
</h2>
<time>
5月 6, 2017
</time>
<section class="content">
<p>访问<code>about:config</code></p>
<p>把<code>javascript.enabled</code>设置为<code>false</code>.</p>
<p>这样就可以直接复制一些需要登录才能复制的网页上的内容了(比如360doc)。</p>
<div class="tags">
<a class="tag-link" href="/tags/firefox/">firefox</a>
</div>
</section>
</article>
</section>
<nav id="page-nav">
<a class="next" rel="next" href="/page/2/">
<span class="text">Next</span>
<span class="icon icon-chevron-right"></span>
</a>
</nav>
<script>setLoadingBarProgress(60);</script>
</main>
<footer id="footer" class="clearfix">
<div class="search">
<form name="searchform" id="searchform" class="u-search-form">
<input type="text" id="searchinput" class="u-search-input" placeholder="Looking for something?" />
<button type="submit" id="u-search-btn-submit" class="u-search-btn-submit">
<span class="icon icon-search"></span>
</button>
</form>
</div>
<div class="social-wrapper">
<a href="https://github.com/artchen" class="social github"
target="_blank" rel="external">
<span class="icon icon-github"></span>
</a>
<a href="https://twitter.com/otakism" class="social twitter"
target="_blank" rel="external">
<span class="icon icon-twitter"></span>
</a>
<a href="/atom.xml" class="social rss"
target="_blank" rel="external">
<span class="icon icon-rss"></span>
</a>
<a href="https://plus.google.com/+ArtChenOtakism/posts" class="social google"
target="_blank" rel="external">
<span class="icon icon-google"></span>
</a>
<a href="http://weibo.com/otakism/" class="social sina-weibo"
target="_blank" rel="external">
<span class="icon icon-sina-weibo"></span>
</a>
</div>
<div>Theme <span class="codename">Typescript</span> designed by <a href="http://rakugaki.me/" target="_blank">Art Chen</a>.</div>
<div>© <a href="/">Alex's Heya</a></div>
</footer>
<script>setLoadingBarProgress(80);</script>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script>window.jQuery || document.write('<script src="/js/jquery.min.js"><\/script>')</script>
<script src="/js/jquery.fitvids.js"></script>
<script>
var GOOGLE_CUSTOM_SEARCH_API_KEY = "";
var GOOGLE_CUSTOM_SEARCH_ENGINE_ID = "";
var ALGOLIA_API_KEY = "";
var ALGOLIA_APP_ID = "";
var ALGOLIA_INDEX_NAME = "";
var AZURE_SERVICE_NAME = "";
var AZURE_INDEX_NAME = "";
var AZURE_QUERY_KEY = "";
var BAIDU_API_ID = "";
var SEARCH_SERVICE = "google";
</script>
<script src="/js/search.js"></script>
<script src="/js/app.js"></script>
<script>setLoadingBarProgress(100);</script>
</body>
</html>