-
Notifications
You must be signed in to change notification settings - Fork 0
/
bo-ke-bei-wang.html
196 lines (152 loc) · 6.56 KB
/
bo-ke-bei-wang.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>A Corner in the Complex World - 博客备忘</title>
<meta name="description" content="">
<meta name="author" content="yx">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="/theme/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="/theme/bootstrap.min.css" rel="stylesheet">
<link href="/theme/bootstrap.min.responsive.css" rel="stylesheet">
<link href="/theme/local.css" rel="stylesheet">
<link href="/theme/pygments.css" rel="stylesheet">
<link href="/theme/tipuesearch/tipuesearch.css" rel="stylesheet">
<!-- So Firefox can bookmark->"abo this site" -->
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="">A Corner in the Complex World</a>
<div class="nav-collapse">
<ul class="nav">
<li><a href="/pages/about.html">About</a></li>
<li><a href="/pages/collections.html">Collections</a></li>
<li><a href="/pages/research.html">Research</a></li>
</ul>
</div>
<form id="searchform" action="/search" onsubmit="return (this.elements['q'].value.length > 0)">
<input id="searchbox" type="text" name="q" size="12" placeholder="Search">
</form>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="row">
<div class="span9">
<div class='article'>
<div class="content-title">
<h1>博客备忘</h1>
21 二月 2017
by <a class="url fn" href="/author/yx.html">yx</a>
</div>
<div><p>折腾了几个小时, 博客总算上线了\(^o^)/.
特地记下提交新日志的流程备忘.</p>
<p>在content中写一个md文件, 生成页面并本地观看:
pelican /path/to/content</p>
<p>for python 2:
cd output
python -m SimpleHTTPServer</p>
<p>for python 3:
cd output
python -m http.server</p>
<p>然后提交到github page:
cd output
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/xxx/xxx.github.io.git
git push -u origin master</p>
<p>注意, 如果自己的github上已有这个repo 而又没有提前pull到本地,
并且想直接用本地整体覆盖github repo
可以在提交时加上 --force, 不要用mix相关的命令, 页面会与原来的混合, 乱码
git push -u origin master --force</p>
<p>在git push时, 需要用户名和密码. 如果不想每次输入,
可以在本机上 touch ~/.git-credentials,
然后文件中键入 https://username:[email protected]
再git config --global credential.helper store
执行完看 ~/.gitconfig 会多一项:
[credential]
helper = store</p>
<p>并且git bash 也可免输密码登录,
详情可看下面的帖子:
http://ju.outofmemory.cn/entry/253212</p></div>
<hr>
</div>
</div>
<div class="span3">
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Site
</li>
<li><a href="/archives.html">Archives</a>
<li><a href="/tags.html">Tags</a>
</ul>
</div>
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Categories
</li>
<li><a href="/category/books-zi-yuan-sou-ji.html">Books; 资源搜集</a></li>
<li><a href="/category/ke-yan.html">科研</a></li>
<li><a href="/category/machine-learning.html">machine learning</a></li>
<li><a href="/category/misc.html">Misc</a></li>
<li><a href="/category/molecular-simulation-data-analysis-computational-toolkit.html">molecular simulation, data analysis, computational toolkit</a></li>
<li><a href="/category/programming.html">programming</a></li>
<li><a href="/category/python.html">python</a></li>
<li><a href="/category/statistical-physics-machine-learning.html">statistical physics, machine learning</a></li>
<li><a href="/category/tech.html">Tech</a></li>
<li><a href="/category/zhi-tu-jian-mo.html">制图建模</a></li>
<li><a href="/category/zi-yuan-sou-ji.html">资源搜集</a></li>
</ul>
</div>
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Links
</li>
<li><a href="https://www.complexityexplorer.org">Complexity Explorer</a></li>
<li><a href="https://santafe.edu">Santa Fe Institute</a></li>
<li><a href="https://www.kitp.ucsb.edu">KITP UCSB</a></li>
<li><a href="http://kits.ucas.ac.cn">KITS</a></li>
<li><a href="https://compphys.go.ro">Computational Physics Blog with Code</a></li>
<li><a href="http://swarma.blog.caixin.com/">集智俱乐部博客</a></li>
<li><a href="https://computational-communication.com/about/">计算传播网</a></li>
<li><a href="https://www.complexity-explorables.org">Complexity Explorables</a></li>
</ul>
</div>
<div class="social">
<div class="well" style="padding: 8px 0; background-color: #FBFBFB;">
<ul class="nav nav-list">
<li class="nav-header">
Social
</li>
<li><a href="https://twitter.com/yangxi1209">@yangxi1209</a></li>
<li><a href="https://my.vultr.com/">我的Vultr</a></li>
</ul>
</div>
</div>
</div>
</div> </div>
<footer>
<br />
<p><a href="">A Corner in the Complex World</a> © yx 2019</p>
</footer>
</div> <!-- /container -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="/theme/bootstrap-collapse.js"></script>
</body>
</html>