new post: new blog architecture

This commit is contained in:
dongdigua 2022-11-20 15:10:14 +08:00
parent 4c6dc868b7
commit c2e2d5a853
8 changed files with 39 additions and 9 deletions

View File

@ -1,4 +1,9 @@
<title>404</title> <title>404</title>
<style>
body {
background-color: #f1f1f1;
}
</style>
<center> <center>
<img src="./images/404.png" alt="404.png"> <img src="./images/404.png" alt="404.png">
</center> </center>

View File

@ -35,7 +35,7 @@
(payment "<a href=https://dongdigua.github.io/xmr>Monero</a>") (payment "<a href=https://dongdigua.github.io/xmr>Monero</a>")
(pgp "<a href=https://dongdigua.github.io/pgpkey.txt>0x56CEE157C9F5334F</a>") (pgp "<a href=https://dongdigua.github.io/pgpkey.txt>0x56CEE157C9F5334F</a>")
(paid-service <font color="grey">; pay in monero</font> (paid-service <font color="grey">; pay in monero</font>
'(("<a href="https://dongdigua.github.io/recover_udisk#ad">data recovery"</a> . 0.5) '(("data recovery" . 0.5)
("kernel configure" . 0.1))) ("kernel configure" . 0.1)))
(interests (interests
'("computer science" "cyber security" '("computer science" "cyber security"
@ -44,8 +44,6 @@
"anime" "anime"
(Lost (In (Suspicious (Parentheses)))))))) (Lost (In (Suspicious (Parentheses))))))))
</pre> </pre>
<br>
random-quote:
<center>"<span id="quote"></span>"</center> <center>"<span id="quote"></span>"</center>
</div> </div>
</body> </body>

View File

@ -12,9 +12,10 @@ var data = [
"李无用地瓜碱水, 硒钫铕𬭶鿔合金", "李无用地瓜碱水, 硒钫铕𬭶鿔合金",
"There will be an answer: Let It Be", "There will be an answer: Let It Be",
"<a id=quote href=https://calm.com>Take a deep breath</a>", "<a id=quote href=https://calm.com>Take a deep breath</a>",
"怂: 从心",
"The internet is FULL, go away!", "The internet is FULL, go away!",
"<a id=quote href=https://git-scm.com/book>May the --force be with you</a>", "<a id=quote href=new_blog_arch>May the --force be with you</a>",
"<a id=quote href=https://suckless.org>Software that sucks less</a>", "<a id=quote href=https://suckless.org>Software that sucks less</a>",
"whoami: No system is safe", "whoami: No system is safe",
"DROP it at <a id=quote href=https://lttstore.com>lttstore.com</a>", "DROP it at <a id=quote href=https://lttstore.com>lttstore.com</a>",
@ -30,7 +31,7 @@ var data = [
"衬衫的价格是9磅15便士", "衬衫的价格是9磅15便士",
"李彦宏: 我想中国人可以更加开放,对隐私问题没有那么敏感。\n如果他们愿意用隐私交换便捷性很多情况下他们是愿意的。", "李彦宏: 我想中国人可以更加开放,对隐私问题没有那么敏感。\n如果他们愿意用隐私交换便捷性很多情况下他们是愿意的。",
"<a id=quote href=https://wiki.evageeks.org/A.T._Field>AT&T field</a>", "<a id=quote href=https://wiki.evageeks.org/A.T._Field>AT&T field</a>",
"I <EFBFBD> Unicode", "I Unicode",
]; ];
var index = Math.floor((Math.random() * data.length)); var index = Math.floor((Math.random() * data.length));

View File

@ -33,7 +33,6 @@
|-----+--------------+------------------------| |-----+--------------+------------------------|
| C-v | 矩形区域选择 | S-i 插入, esc 批量执行 | | C-v | 矩形区域选择 | S-i 插入, esc 批量执行 |
** file/split ** file/split
| key | usage | | key | usage |
|-------------+--------------| |-------------+--------------|
@ -42,8 +41,6 @@
| C-w h/j/k/l | 切换分屏窗口 | | C-w h/j/k/l | 切换分屏窗口 |
| ZZ | :wq | | ZZ | :wq |
* EMACS * EMACS
** org ** org
| key | usage | | key | usage |
@ -86,7 +83,7 @@ Git 能离线使用只是个传说, 你仍然需要联网搜索该用哪个命
#+BEGIN_SRC shell #+BEGIN_SRC shell
git log --stat | perl -ne 'END { print $c } $c += $1 if /(\d+) insertions/;' git log --stat | perl -ne 'END { print $c } $c += $1 if /(\d+) insertions/;'
git log --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' git log --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }'
git log --color --graph --decorate -M --pretty=oneline --abbrev-commit -M git log --graph --color --decorate --abbrev-commit
#+END_SRC #+END_SRC
* Fish * Fish

View File

@ -18,3 +18,4 @@ just a [[https://support.microsoft.com/en-us/windows/windows-7-support-ended-on-
用于点踩和查看IP属地 用于点踩和查看IP属地
* 用 eww 实现苹果的 "灵动岛"? * 用 eww 实现苹果的 "灵动岛"?
呵呵, 在B站看到这样的基本就是壁纸软件的广告 呵呵, 在B站看到这样的基本就是壁纸软件的广告
* Nethack x Minecraft

View File

@ -250,11 +250,13 @@ plan9
0:06 nonono all the opensource are controlled by coporation actually, 0:06 nonono all the opensource are controlled by coporation actually,
they create a text editor plugin and sell the free code for $10 a month they create a text editor plugin and sell the free code for $10 a month
*** [[https://youtu.be/BAo5C2qbLq8][Computerphile: Network Time Protocol (NTP)]] *** [[https://youtu.be/BAo5C2qbLq8][Computerphile: Network Time Protocol (NTP)]]
*** [[https://www.youtube.com/playlist?list=PLknodeJt-I5H_zK-udgi5XhhYrnDoLHkP][Gavin Freeborn: Commandline tools and tips]]
** Cyber Security ** Cyber Security
*** [[https://youtu.be/x_R1DeZxGc0][Discover Vulnerabilities in Intel CPUs!]] *** [[https://youtu.be/x_R1DeZxGc0][Discover Vulnerabilities in Intel CPUs!]]
*** [[https://youtu.be/2--1ph-4IaY][shit express hacked]] *** [[https://youtu.be/2--1ph-4IaY][shit express hacked]]
*** [[https://www.youtube.com/playlist?list=PL5--8gKSku15NSeLgrZX9hSEnqPTWoSJ0][DT: Privacy & Security]] *** [[https://www.youtube.com/playlist?list=PL5--8gKSku15NSeLgrZX9hSEnqPTWoSJ0][DT: Privacy & Security]]
*** [[https://youtu.be/UeAKTjx_eKA][Student Finds Hidden Devices in the College Library]]
*** [[https://youtu.be/QxNsyrftJ8I][Chris Titus Tech: The Biggest Linux Security Mistakes]] *** [[https://youtu.be/QxNsyrftJ8I][Chris Titus Tech: The Biggest Linux Security Mistakes]]
"Security is a journey, not a destination!" "Security is a journey, not a destination!"
*** [[https://youtu.be/S4E4yAktjug?t=998][How To Become Invisible Online # level 3]] *** [[https://youtu.be/S4E4yAktjug?t=998][How To Become Invisible Online # level 3]]

24
org/new_blog_arch.org Normal file
View File

@ -0,0 +1,24 @@
#+TITLE: New Blog Architecture
#+DESCRIPTION: It's time
#+DATE: <2022-11-20 Sun>
I've never fully learnt git before(only search for garbage when meeted with problem), so I recently read [[https://git-scm.com/book][ProGit]].
And I have some good ideas on my repo architecture: I should make use of branch, obviously.
* Idea is:
seperate the source file(org) and the generated files(html, feed.xml)
so I can
** clearly look at the diff
** delete the generated files if I want
because those static files are really unecessary and takes much space
* So what
** use =filter-branch= to remove the huge =feed.xml= in the full history
** ignore the generated files in the source repo
** merge the source repo into site repo when I think it's ok
** and I will use the same stratagy on my YW sub-website if there's no problem
* Need Advice
I'm really new to do this.
If you have a better idea, or this is somehow useful to you,
*contact me, please!*

View File

@ -1,5 +1,7 @@
## Table of Contents ## Table of Contents
### Posts (sorted by time) ### Posts (sorted by time)
- [New Blog Repo Architecture](new_blog_arch)<br>
please contct me if you have a better idea
- [记一次帮老师修U盘](recover_udisk)<br> - [记一次帮老师修U盘](recover_udisk)<br>
- [Clear Kernel Compile Error? Fix It](clear_kernel_compile_fix)<br> - [Clear Kernel Compile Error? Fix It](clear_kernel_compile_fix)<br>
- [Gentoo LLVM\_TARGETS not Working?](gentoo_llvm_targets)<br> - [Gentoo LLVM\_TARGETS not Working?](gentoo_llvm_targets)<br>