mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2025-02-20 11:29:15 +08:00
first seperate build
This commit is contained in:
parent
f8d2686638
commit
3add1a89df
283
about_showing_ip.html
Normal file
283
about_showing_ip.html
Normal file
@ -0,0 +1,283 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>这一天终于来了, B站显示 IP 属地</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">这一天终于来了, B站显示 IP 属地</h1>
|
||||
<div id="table-of-contents" role="doc-toc">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents" role="doc-toc">
|
||||
<ul>
|
||||
<li><a>1. 我的看法</a></li>
|
||||
<li><a>2. 2022-7-25-12:00 公开显示 IP 属地</a></li>
|
||||
<li><a>3. reference</a>
|
||||
<ul>
|
||||
<li><a>3.1. from zhihu</a></li>
|
||||
<li><a>3.2. why can't have ip on web</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
卸载吧…<br />
|
||||
</p>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> 我的看法</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
这个事情真正要打击的那些 <b>诈骗/造假/海外势力</b>, 并不会受到影响,<br />
|
||||
它们肯定会使用"虚拟专用网络"伪造IP.<br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
那些所谓的"翻车"博主, 大多数可能只是公司在国内, 却因为这件事被各大媒体揪出来.<br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
对于那些网络喷子, 这种事估计不会减少它们的言论, 反而会加重"地域黑"…<br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
对于普通人, 大多数肯定是没什么影响, 也根本不在意,<br />
|
||||
但是有些人, 只想公开自己想让别人看见的,<br />
|
||||
那这种平台的强制行为确实会让TA们很不满.<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> 2022-7-25-12:00 公开显示 IP 属地</h2>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">3.</span> reference</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">3.1.</span> <a href="https://zhuanlan.zhihu.com/p/508234267">from zhihu</a></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
掰锝胃, 这个链接的截图在B站不到半小时就被删除了…<br />
|
||||
B口口口口( ), 口口口口( ).<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">3.2.</span> why can't have ip on web</h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
<p>
|
||||
<a href="https://github.com/SocialSisterYi/bilibili-API-collect/issues/434">https://github.com/SocialSisterYi/bilibili-API-collect/issues/434</a><br />
|
||||
<a href="https://github.com/the1812/Bilibili-Evolved/discussions/3522">https://github.com/the1812/Bilibili-Evolved/discussions/3522</a><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-06-18 Sat 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
539
anaconda_kickstarts.html
Normal file
539
anaconda_kickstarts.html
Normal file
@ -0,0 +1,539 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>CentOS/Fedora 不同配置/变体都默认安装了什么软件(组)</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="description" content="Default Software(Group) in Different Installation Config/Variation of CentOS/Fedora" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">CentOS/Fedora 不同配置/变体都默认安装了什么软件(组)</h1>
|
||||
<div id="table-of-contents" role="doc-toc">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents" role="doc-toc">
|
||||
<ul>
|
||||
<li><a>1. CentOS</a></li>
|
||||
<li><a>2. Fedora</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
for <a href="https://cossig.org">https://cossig.org</a>(CentOS 中文特别兴趣小组)<br />
|
||||
link: <a href="https://www.cossig.org/391-centos-fedora-default-softwares">https://www.cossig.org/391-centos-fedora-default-softwares</a><br />
|
||||
所以我这回不用英文了哈哈<br />
|
||||
</p>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> CentOS</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
CentOS 安装时可选不同的配置<br />
|
||||
</p>
|
||||
<p width="512px">
|
||||
<img src="./../images/centos_install_config.png" alt="centos_install_config.png" width="512px" /><br />
|
||||
其实这些就是不同的软件组<br />
|
||||
CentOS-Stream 8 为例, 定义软件组的文件是 <a href="https://git.centos.org/centos/comps/blob/master/f/comps-centos-8-stream.xml">comps.xml</a><br />
|
||||
左边的基本环境就是 <code><environment></code> tag 列表<br />
|
||||
一共有11个<br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-xml"><<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">variant</span>=<span style="font-style: italic;">"BaseOS"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>custom-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Custom Operating System</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>5</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">variant</span>=<span style="font-style: italic;">"BaseOS"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>minimal-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Minimal Install</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>4</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>server-product-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Server</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>2</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">arch</span>=<span style="font-style: italic;">"aarch64,s390x,ppc64le,x86_64"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>graphical-server-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Server with GUI</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>1</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">variant</span>=<span style="font-style: italic;">"BaseOS"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>cloud-server-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Cloud Server</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>3</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">variant</span>=<span style="font-style: italic;">"BaseOS"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>web-server-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Web Server</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>50</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>infrastructure-server-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Infrastructure Server</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>60</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">variant</span>=<span style="font-style: italic;">"AppStream"</span> <span style="font-weight: bold; font-style: italic;">arch</span>=<span style="font-style: italic;">"x86_64,ppc64le"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>developer-workstation-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Development and Creative Workstation</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>90</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">variant</span>=<span style="font-style: italic;">"AppStream"</span> <span style="font-weight: bold; font-style: italic;">arch</span>=<span style="font-style: italic;">"x86_64,ppc64le"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>gnome-desktop-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>GNOME Desktop</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>80</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">variant</span>=<span style="font-style: italic;">"AppStream"</span> <span style="font-weight: bold; font-style: italic;">arch</span>=<span style="font-style: italic;">"x86_64,ppc64le"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>workstation-product-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Workstation</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>3</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span> <span style="font-weight: bold; font-style: italic;">variant</span>=<span style="font-style: italic;">"AppStream"</span> <span style="font-weight: bold; font-style: italic;">arch</span>=<span style="font-style: italic;">"x86_64"</span>>
|
||||
<<span style="font-weight: bold;">id</span>>virtualization-host-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Virtualization Host</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>70</<span style="font-weight: bold;">display_order</span>>
|
||||
<span style="font-weight: bold; font-style: italic;"><!----></span>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
</pre>
|
||||
</div>
|
||||
<p>
|
||||
但还是对不上, 应该很接近了…吧?<br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
想起来不联网是没法选择安装软件的<br />
|
||||
然后瞅一眼产生的临时文件 <code>/tmp/dnf.cache/</code><br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-text">├── appstream-831abc7e9d6a1a72
|
||||
│ ├── metalink.xml
|
||||
│ └── repodata
|
||||
│ ├── 95f4408838f85e23117d7d89ab47e1029692a443722e0e315fe3db07c32ee573-modules.yaml.xz
|
||||
│ ├── 2047121fda8828f9b4d611cbfb736a89048cb411356e7ac2bdd95d927d044791-filelists.xml.gz
|
||||
│ ├── e27fd8f9028bdc339a014f95debd07da4ef7b217522d14721af050aa9e7cf93e-primary.xml.gz
|
||||
│ ├── f0d518764a274c71de0773b3590932ded56234b2f6ac4bf025d125b7ed29269f-comps-AppStream.x86_64.xml
|
||||
│ ├── gen
|
||||
│ │ └── groups.xml
|
||||
│ └── repomd.xml
|
||||
├── baseos-044cae74d71fe9ea
|
||||
│ ├── metalink.xml
|
||||
│ └── repodata
|
||||
│ ├── 88ded6c02c5c3c62ab02250505cf0b8dee3af85819b666731c3cf813c275db6c-primary.xml.gz
|
||||
│ ├── b47aeefede03d4d530f4538bf8f73531fd1a6a2bb66ca1778e3423c4dec34121-filelists.xml.gz
|
||||
│ ├── d52d95f0f2d1a56b197a698aa328813a7e45e2d5b2883e04f4a3f604638b7a4a-comps-BaseOS.x86_64.xml
|
||||
│ ├── gen
|
||||
│ │ └── groups.xml
|
||||
│ └── repomd.xml
|
||||
</pre>
|
||||
</div>
|
||||
<p>
|
||||
那里面的 <code>*-comps-*.xml</code> 的 <code><environment></code> 的 <code><display_order></code><br />
|
||||
就正好是 1~4 和两个 99<br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<code>comps-AppStream.x86_64.xml</code><br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-xml"><<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>graphical-server-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Server with GUI</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">description</span>>An integrated, easy-to-manage server with a graphical interface.</<span style="font-weight: bold;">description</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>1</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>base-x</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>container-management</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>fonts</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>gnome-desktop</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>guest-desktop-agents</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>hardware-monitoring</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>hardware-support</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>headless-management</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>internet-browser</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>multimedia</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>networkmanager-submodules</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>print-client</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>server-product</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>standard</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>server-product-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Server</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">description</span>>An integrated, easy-to-manage server.</<span style="font-weight: bold;">description</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>2</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>container-management</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>hardware-support</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>headless-management</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>server-product</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>standard</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>virtualization-host-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Virtualization Host</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">description</span>>Minimal virtualization host.</<span style="font-weight: bold;">description</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>99</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>base</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>standard</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>virtualization-hypervisor</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>virtualization-tools</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>workstation-product-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Workstation</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">description</span>>Workstation is a user-friendly desktop system for laptops and PCs.</<span style="font-weight: bold;">description</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>4</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>base-x</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>fonts</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>gnome-desktop</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>guest-desktop-agents</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>hardware-support</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>internet-browser</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>multimedia</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>networkmanager-submodules</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>print-client</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>standard</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>workstation-product</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<code>comps-BaseOS.x86_64.xml</code><br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-xml"><<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>custom-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Custom Operating System</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">description</span>>Basic building block for a custom RHEL system.</<span style="font-weight: bold;">description</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>99</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>minimal-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Minimal Install</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">description</span>>Basic functionality.</<span style="font-weight: bold;">description</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>3</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>server-product-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Server</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">description</span>>An integrated, easy-to-manage server.</<span style="font-weight: bold;">description</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>2</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>hardware-support</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>headless-management</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>server-product</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>standard</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> Fedora</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
Fedora 分不同的变体, 常见的是 Server 和 Workstation<br />
|
||||
与 CentOS 不同, Fedora 是在 <a href="https://pagure.io/fedora-kickstarts/">kickstarts</a> 定义的变体<br />
|
||||
在 <code>[Payload]</code> 中定义了安装哪些软件(组)<br />
|
||||
然后根据 <a href="https://pagure.io/fedora-comps/blob/main/f/comps-f37.xml.in">comps.xml</a> 就知道安装了什么软件<br />
|
||||
</p>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> Workstation</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
<code>workstation-product-environment</code><br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-xml"><<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>workstation-product-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">_name</span>>Fedora Workstation</<span style="font-weight: bold;">_name</span>>
|
||||
<<span style="font-weight: bold;">_description</span>>Fedora Workstation is a user friendly desktop system for laptops and PCs.</<span style="font-weight: bold;">_description</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>2</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>base-x</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>container-management</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>firefox</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>fonts</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>gnome-desktop</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>guest-desktop-agents</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>hardware-support</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>libreoffice</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>multimedia</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>networkmanager-submodules</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>printing</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>workstation-product</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.2.</span> Server</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
<code>server-product-environment</code><br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-xml"><<span style="font-weight: bold;">environment</span>>
|
||||
<<span style="font-weight: bold;">id</span>>server-product-environment</<span style="font-weight: bold;">id</span>>
|
||||
<<span style="font-weight: bold;">name</span>>Server</<span style="font-weight: bold;">name</span>>
|
||||
<<span style="font-weight: bold;">display_order</span>>2</<span style="font-weight: bold;">display_order</span>>
|
||||
<<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>server-product</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>standard</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>core</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>hardware-support</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>headless-management</<span style="font-weight: bold;">groupid</span>>
|
||||
<<span style="font-weight: bold;">groupid</span>>container-management</<span style="font-weight: bold;">groupid</span>>
|
||||
</<span style="font-weight: bold;">grouplist</span>>
|
||||
<<span style="font-weight: bold;">optionlist</span>><span style="font-weight: bold; font-style: italic;"><!----></span></<span style="font-weight: bold;">optionlist</span>>
|
||||
</<span style="font-weight: bold;">environment</span>>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-09-29 Thu 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
398
binary_exploit.html
Normal file
398
binary_exploit.html
Normal file
@ -0,0 +1,398 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Binary Exploit Resources I Recently Trying to Learn</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Binary Exploit Resources I Recently Trying to Learn</h1>
|
||||
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> resources</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.1.</span> video</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
<a href="https://youtube.com/playlist?list=PLhixgUqwRTjxglIswKp9mpkfPNfHkzyeN">Binary Exploitation / Memory Corruption by LiveOverflow</a><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.2.</span> website</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.2.1.</span> <a href="https://play.picoctf.org/practice">picoCTF</a></h4>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.2.2.</span> <a href="https://exploit.education/">exploit education</a></h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> tools</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> code auditing</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
|
||||
<div class="figure">
|
||||
<p><img src="./../images/fedora_security_lab.png" alt="fedora_security_lab.png" /><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.1.1.</span> pscan</h4>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.1.2.</span> rats</h4>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.1.3.</span> splint</h4>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.1.4.</span> flawfinder</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.2.</span> debug</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.2.1.</span> gdb</h4>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.3.</span> reverse</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.3.1.</span> <a href="https://book.rada.re/">radare2</a></h4>
|
||||
<div class="outline-text-4" id="text-2-3-1">
|
||||
</div>
|
||||
<ol class="org-ol">
|
||||
<li><a></a>iaito<br /></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.3.2.</span> hopper(non-free)</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">3.</span> notes on video</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">3.1.</span> <a href="https://youtu.be/6jSKldt7Eqs">0x04: asm basics</a></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">3.1.1.</span> to show assembly in the source code window in gud, <code>M-x gdb-display-disassembly-buffer</code></h4>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">3.1.2.</span> links</h4>
|
||||
<div class="outline-text-4" id="text-3-1-2">
|
||||
</div>
|
||||
<ol class="org-ol">
|
||||
<li><a></a><a href="https://microcorruption.com/">https://microcorruption.com/</a><br /></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">3.2.</span> <a href="https://youtu.be/3NTXFUxcKPc">0x06: tools</a></h3>
|
||||
<div class="outline-text-3" id="text-3-2">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">3.2.1.</span> simple tools</h4>
|
||||
<div class="outline-text-4" id="text-3-2-1">
|
||||
</div>
|
||||
<ol class="org-ol">
|
||||
<li><a></a>hexdump<br /></li>
|
||||
<li><a></a>strings<br />
|
||||
<div class="outline-text-5" id="text-3-2-1-2">
|
||||
<p>
|
||||
all printable letters<br />
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<li><a></a>objdump<br />
|
||||
<div class="outline-text-5" id="text-3-2-1-3">
|
||||
<p>
|
||||
disassembler<br />
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<li><a></a>strace/ltrace<br />
|
||||
<div class="outline-text-5" id="text-3-2-1-4">
|
||||
<p>
|
||||
trace sys/lib call<br />
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">3.2.2.</span> <a href="https://youtu.be/mT1V7IL2FHY">0x0A: deal with numbers</a></h4>
|
||||
<div class="outline-text-4" id="text-3-2-2">
|
||||
</div>
|
||||
<ol class="org-ol">
|
||||
<li><a></a>endian?<br />
|
||||
<div class="outline-text-5" id="text-3-2-2-1">
|
||||
<p>
|
||||
from <a href="https://zh.wikipedia.org/zh-cn/%E5%AD%97%E8%8A%82%E5%BA%8F">Wikipedia</a><br />
|
||||
<img src="../images/Big-Endian.svg.png " alt="Big-Endian.svg.png " /><img src="../images/Little-Endian.svg.png" alt="Little-Endian.svg.png" /><br />
|
||||
x86 is little endian<br />
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<li><a></a>tools<br />
|
||||
<ol class="org-ol">
|
||||
<li><a></a>python<br />
|
||||
<div class="outline-text-6" id="text-3-2-2-2-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-python">>>> <span style="font-weight: bold;">int</span>(<span style="font-style: italic;">'111'</span>, 2)
|
||||
7
|
||||
>>> <span style="font-weight: bold;">hex</span>(123)
|
||||
<span style="font-style: italic;">'0x7b'</span>
|
||||
>>> <span style="font-weight: bold;">import</span> struct
|
||||
<span style="font-weight: bold; font-style: italic;"># </span><span style="font-weight: bold; font-style: italic;">https://docs.python.org/3.10/library/struct.html#format-characters</span>
|
||||
>>> struct.pack(<span style="font-style: italic;">"<I"</span>, 0x61626364) <span style="font-weight: bold; font-style: italic;"># </span><span style="font-weight: bold; font-style: italic;">little endian</span>
|
||||
b<span style="font-style: italic;">'dcba'</span>
|
||||
>>> struct.pack(<span style="font-style: italic;">">I"</span>, 0x61626364) <span style="font-weight: bold; font-style: italic;"># </span><span style="font-weight: bold; font-style: italic;">big endian</span>
|
||||
b<span style="font-style: italic;">'abcd'</span>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li><a></a>iex<br />
|
||||
<div class="outline-text-6" id="text-3-2-2-2-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-elixir">iex(1)> <<0x61626364::32>>
|
||||
<span style="font-style: italic;">"abcd"</span>
|
||||
iex(2)> <span style="font-weight: bold; text-decoration: underline;">Base</span>.decode16(<span style="font-style: italic;">"61626364"</span>)
|
||||
{<span style="font-weight: bold;">:ok</span>, <span style="font-style: italic;">"abcd"</span>}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-06-29 Wed 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
685
cheatsheet.html
Normal file
685
cheatsheet.html
Normal file
@ -0,0 +1,685 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Editor Cheatsheet</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Editor Cheatsheet</h1>
|
||||
<div id="table-of-contents" role="doc-toc">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents" role="doc-toc">
|
||||
<ul>
|
||||
<li><a>1. VIM</a>
|
||||
<ul>
|
||||
<li><a>1.1. deletion</a></li>
|
||||
<li><a>1.2. edit</a></li>
|
||||
<li><a>1.3. movement</a></li>
|
||||
<li><a>1.4. visual</a></li>
|
||||
<li><a>1.5. file/split</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a>2. EMACS</a>
|
||||
<ul>
|
||||
<li><a>2.1. org</a></li>
|
||||
<li><a>2.2. normal</a></li>
|
||||
<li><a>2.3. eww/elpher (essensial)</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a>3. Git</a></li>
|
||||
<li><a>4. Fish</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> VIM</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.1.</span> deletion</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">D</td>
|
||||
<td class="org-left">delete to end of line</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.2.</span> edit</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">u/C-r</td>
|
||||
<td class="org-left">撤销/重做</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">c i {</td>
|
||||
<td class="org-left">change inside {}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">"{register}y/p</td>
|
||||
<td class="org-left">向/从寄存器拷贝</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.3.</span> movement</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">w/e</td>
|
||||
<td class="org-left">下一个单词/单词尾</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">b</td>
|
||||
<td class="org-left">单词头</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">H/M/L</td>
|
||||
<td class="org-left">当前页面可见顶部/中间/底部</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-u(f)/d</td>
|
||||
<td class="org-left">上/下翻页</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">%</td>
|
||||
<td class="org-left">到对应括号</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">{}</td>
|
||||
<td class="org-left">段落跳转</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">g ;</td>
|
||||
<td class="org-left">goto last change</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">g */#</td>
|
||||
<td class="org-left">正/反查找光标下的词</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">g d/D</td>
|
||||
<td class="org-left">跳转到本地/全局定义</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.4.</span> visual</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
<th scope="col" class="org-left">next</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">C-v</td>
|
||||
<td class="org-left">矩形区域选择</td>
|
||||
<td class="org-left">S-i 插入, esc 批量执行</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.5.</span> file/split</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">:n/:N</td>
|
||||
<td class="org-left">文件之间切换</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">:b</td>
|
||||
<td class="org-left">切换到文件</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-w h/j/k/l</td>
|
||||
<td class="org-left">切换分屏窗口</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">ZZ</td>
|
||||
<td class="org-left">:wq</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> EMACS</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> org</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">C-c |</td>
|
||||
<td class="org-left">创建表格</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-c C-e</td>
|
||||
<td class="org-left">导出 HTML</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-c C-x C-v</td>
|
||||
<td class="org-left">toggle render images</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-c C-l</td>
|
||||
<td class="org-left">编辑链接</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-c C-,</td>
|
||||
<td class="org-left">org-insert-structure-template</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<b>Bold</b> <i>italic</i> <span class="underline">underline</span> <del>strikethrough</del> <code>code</code> <code>verbatim</code><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.2.</span> normal</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">M-%</td>
|
||||
<td class="org-left">替换</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">M-;</td>
|
||||
<td class="org-left">区域切换注释</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-x C-;</td>
|
||||
<td class="org-left">行切换注释</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-y</td>
|
||||
<td class="org-left">paste to minibuffer</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">M-&/!</td>
|
||||
<td class="org-left">async/shell command</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C-M-\</td>
|
||||
<td class="org-left">indent-region</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.3.</span> eww/elpher (essensial)</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">TAB</td>
|
||||
<td class="org-left">shr-next-link/elpher-next-link</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">d</td>
|
||||
<td class="org-left">eww-download/elpher-download</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">g</td>
|
||||
<td class="org-left">eww-reload/elpher-go</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">G</td>
|
||||
<td class="org-left">eww</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">l</td>
|
||||
<td class="org-left">eww-back-url</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">ˆ</td>
|
||||
<td class="org-left">elpher-back-url</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">&</td>
|
||||
<td class="org-left">eww-browse-with-external-browser</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">w</td>
|
||||
<td class="org-left">eww-copy-page-url</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">C/c</td>
|
||||
<td class="org-left">elpher-copy-current/link-url</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">v</td>
|
||||
<td class="org-left">eww-view-page-source</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">.</td>
|
||||
<td class="org-left">elpher-view-raw</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">3.</span> Git</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
Git 能离线使用只是个传说, 你仍然需要联网搜索该用哪个命令传什么参数<br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-shell">git log --stat | perl -ne <span style="font-style: italic;">'END { print $c } $c += $1 if /(\d+) insertions/;'</span>
|
||||
git log --pretty=tformat: --numstat | awk <span style="font-style: italic;">'{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }'</span>
|
||||
git log --graph --color --decorate --abbrev-commit
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">4.</span> Fish</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
|
||||
|
||||
<colgroup>
|
||||
<col class="org-left" />
|
||||
|
||||
<col class="org-left" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" class="org-left">key</th>
|
||||
<th scope="col" class="org-left">usage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="org-left">M-Left/Right</td>
|
||||
<td class="org-left">jump world, or prevd/nextd</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">M-s</td>
|
||||
<td class="org-left">sudo the last command</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="org-left">M-w</td>
|
||||
<td class="org-left">what is this</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-06-13 Mon 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
254
clear_kernel_compile_fix.html
Normal file
254
clear_kernel_compile_fix.html
Normal file
@ -0,0 +1,254 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Clear Kernel Build Error? Fix It</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="description" content="arch/x86/kernel/cpu/intel_epb.c:171:2: error: call to undeclared function 'sched _set_itmt_power_ratio'" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Clear Kernel Build Error? Fix It</h1>
|
||||
<p>
|
||||
when I compile <a href="https://github.com/gentoobr/overlay/tree/master/sys-kernel/clear-sources">Clear</a> kernel with LLVM enabled, I got this error:<br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-text">arch/x86/kernel/cpu/intel_epb.c:172:2: error: call to undeclared function 'sched_set_itmt_power_ratio';
|
||||
ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
|
||||
sched_set_itmt_power_ratio(256 - val * 2, cpu);
|
||||
^
|
||||
arch/x86/kernel/cpu/intel_epb.c:172:2: note: did you mean 'sched_set_itmt_core_prio'?
|
||||
./arch/x86/include/asm/topology.h:189:20: note: 'sched_set_itmt_core_prio' declared here
|
||||
static inline void sched_set_itmt_core_prio(int prio, int core_cpu)
|
||||
^
|
||||
1 error generated.
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
it's obvious that the <a href="https://github.com/clearlinux-pkgs/linux/blob/main/0128-itmt_epb-use-epb-to-scale-itmt.patch">sched_set_itmt_power_ratio</a> function is undeclared<br />
|
||||
so I added the following like the function on top of it<br />
|
||||
and it is able to compile :)<br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-diff"><span style="font-weight: bold;">--- </span><span style="font-weight: bold;">/home/gentoo/linux/topology.h</span>
|
||||
<span style="font-weight: bold;">+++ </span><span style="font-weight: bold;">arch/x86/include/asm/topology.h</span>
|
||||
<span style="font-weight: bold;">@@ -189,6 +189,9 @@</span>
|
||||
static inline void sched_set_itmt_core_prio(int prio, int core_cpu)
|
||||
{
|
||||
}
|
||||
+static inline void sched_set_itmt_power_ratio(int prio, int core_cpu)
|
||||
+{
|
||||
+}
|
||||
static inline int sched_set_itmt_support(void)
|
||||
{
|
||||
return 0;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Notice: I'm ignorant about C programming, so if anything's wrong, please contact me<br />
|
||||
</p>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-11-04 Fri 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
281
gentoo_llvm_targets.html
Normal file
281
gentoo_llvm_targets.html
Normal file
@ -0,0 +1,281 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Gentoo LLVM_TARGETS not Working?</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Gentoo LLVM_TARGETS not Working?</h1>
|
||||
<p>
|
||||
Recently, I would like to test switching from <code>gcc</code> to <a href="https://wiki.gentoo.org/wiki/Clang">clang</a> on my Gentoo VM.<br />
|
||||
<del>warning: you will be crazy to have too many packages can't be build with clang</del><br />
|
||||
</p>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> problem</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
First I want to make <a href="https://llvm.org">LLVM</a> not targeting too many platform, but changing <code>LLVM_TARGETS</code> don't work<br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-shell">[ebuild N ] sys-devel/llvm-15.0.3:15::gentoo <span style="font-weight: bold; font-style: italic;">USE</span>=<span style="font-style: italic;">"binutils-plugin libffi</span>
|
||||
<span style="font-style: italic;">ncurses -debug -doc -exegesis -libedit -test -verify-sig -xar -xml -z3 -zstd"</span>
|
||||
<span style="font-weight: bold; font-style: italic;">LLVM_TARGETS</span>=<span style="font-style: italic;">"(AArch64) (AMDGPU) (ARM) (AVR) (BPF) (Hexagon) (Lanai) (MSP430)</span>
|
||||
<span style="font-style: italic;">(Mips) (NVPTX) (PowerPC) (RISCV) (Sparc) (SystemZ) (VE) (WebAssembly) (X86)</span>
|
||||
<span style="font-style: italic;">(XCore) (-ARC) (-CSKY) (-DirectX) (-LoongArch) (-M68k) (-SPIRV)"</span> 241 KiB
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> and I found <a href="https://forums.gentoo.org/viewtopic.php?p=8694331">[solved] LLVM_TARGETS not respected?</a>(Mar 2022) on gentoo forum</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
It seems that global <code>LLVM_TARGETS</code> setting is not respected,<br />
|
||||
and flags such as <code>llvm_targets_AArch64</code>, <code>llvm_targets_ARM</code>, are no longer there.<br />
|
||||
They're now forced by default as a precaution.<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">3.</span> <i><b>solution</b></i></h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">3.1.</span> add something like <code>*/* -llvm_targets_AArch64</code> into <code>/etc/portage/profile/package.use.force</code></h3>
|
||||
<div class="outline-text-3" id="text-3-1">
|
||||
<p>
|
||||
I excluded all targets exept for X86, but still 3 left: AMDGPU, BPF, NVPTX<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">3.2.</span> so I also add <code>sys-devel/llvm -llvm_targets_AMDGPU -llvm_targets_BPF -llvm_targets_NVPTX</code> in <code>/etc/portage/package.use/</code></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">3.3.</span> and don't forget to add that three excluder to clang or other compiler that uses llvm</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">4.</span> finally I got this:</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-shell">[ebuild N ] sys-devel/llvm-15.0.3:15::gentoo <span style="font-weight: bold; font-style: italic;">USE</span>=<span style="font-style: italic;">"binutils-plugin libffi</span>
|
||||
<span style="font-style: italic;">ncurses -debug -doc -exegesis -libedit -test -verify-sig -xar -xml -z3 -zstd"</span>
|
||||
<span style="font-weight: bold; font-style: italic;">LLVM_TARGETS</span>=<span style="font-style: italic;">"(X86) -AArch64 -AMDGPU (-ARC) -ARM -AVR -BPF (-CSKY) (-DirectX)</span>
|
||||
<span style="font-style: italic;">-Hexagon -Lanai (-LoongArch) (-M68k) -MSP430 -Mips -NVPTX -PowerPC -RISCV</span>
|
||||
<span style="font-style: italic;">(-SPIRV) -Sparc -SystemZ -VE -WebAssembly -XCore"</span> 241 KiB
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-10-29 Sat 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
290
ideas.html
Normal file
290
ideas.html
Normal file
@ -0,0 +1,290 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>画大饼</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">画大饼</h1>
|
||||
<div id="table-of-contents" role="doc-toc">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents" role="doc-toc">
|
||||
<ul>
|
||||
<li><a>1. 对我将来的视频网站的一些畅想</a></li>
|
||||
<li><a>2. Rust wasm 制作 schemetic/litemetica 渲染器</a>
|
||||
<ul>
|
||||
<li><a>2.1. a vscode extension</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a>3. 用 sway 实现用窗口玩游戏(×)用游戏玩窗口(√)的效果</a></li>
|
||||
<li><a>4. 不同 Linux 内核(xanmod, clear)玩 MC 性能对比</a></li>
|
||||
<li><a>5. emacs mode: eww show <code>console.log()</code> in Message</a></li>
|
||||
<li><a>6. win7WM</a></li>
|
||||
<li><a>7. join DN42</a></li>
|
||||
<li><a>8. 一个能使用 APP(key) 功能的 bili 客户端</a></li>
|
||||
<li><a>9. 用 eww 实现苹果的 "灵动岛"?</a></li>
|
||||
<li><a>10. Nethack x Minecraft</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
here are some of my ideas, most of which are unachieveable now<br />
|
||||
you can steal them, but you'd better let me know and add a reference<br />
|
||||
</p>
|
||||
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> <a href="https://dongdigua.github.io/plan_for_my_video_site">对我将来的视频网站的一些畅想</a></h2>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> Rust wasm 制作 schemetic/litemetica 渲染器</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> <a href="https://github.com/misode/vscode-nbt">a vscode extension</a></h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">3.</span> 用 sway 实现<a href="https://www.bilibili.com/video/BV1TE41147gK">用窗口玩游戏(×)用游戏玩窗口(√)</a>的效果</h2>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">4.</span> 不同 Linux 内核(xanmod, clear)玩 MC 性能对比</h2>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">5.</span> emacs mode: eww show <code>console.log()</code> in Message</h2>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">6.</span> win7WM</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
<p>
|
||||
just a <a href="https://support.microsoft.com/en-us/windows/windows-7-support-ended-on-january-14-2020-b75d4580-2cc7-895a-2c9c-1466d9a53962">dream</a><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">7.</span> join DN42</h2>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">8.</span> 一个能使用 APP(key) 功能的 bili 客户端</h2>
|
||||
<div class="outline-text-2" id="text-8">
|
||||
<p>
|
||||
用于点踩和查看IP属地<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">9.</span> 用 eww 实现苹果的 "灵动岛"?</h2>
|
||||
<div class="outline-text-2" id="text-9">
|
||||
<p>
|
||||
呵呵, 在B站看到这样的基本就是壁纸软件的广告<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">10.</span> Nethack x Minecraft</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-09-09 Fri 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
1275
internet_collections.html
Normal file
1275
internet_collections.html
Normal file
File diff suppressed because it is too large
Load Diff
321
matrix.html
Normal file
321
matrix.html
Normal file
@ -0,0 +1,321 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Matrix chat (clients comparation, proxy setting)</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="description" content="Matrix 通信(客户端对比, 代理设置)" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Matrix chat (clients comparation, proxy setting)</h1>
|
||||
<div id="table-of-contents" role="doc-toc">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents" role="doc-toc">
|
||||
<ul>
|
||||
<li><a>1. comparation of clients, sorted by satisfaction</a>
|
||||
<ul>
|
||||
<li><a>1.1. neochat</a></li>
|
||||
<li><a>1.2. quaternion</a></li>
|
||||
<li><a>1.3. ement.el</a></li>
|
||||
<li><a>1.4. fractal</a></li>
|
||||
<li><a>1.5. thunderbird</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a>2. how to set proxy</a>
|
||||
<ul>
|
||||
<li><a>2.1. neochat</a></li>
|
||||
<li><a>2.2. fractal</a></li>
|
||||
<li><a>2.3. ement.el</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
I wanna use matrix just because many people use it.<br />
|
||||
</p>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> comparation of clients, sorted by satisfaction</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.1.</span> neochat</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
💓kde<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.2.</span> quaternion</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
small but have most of function<br />
|
||||
fancy scrollbar, can configure proxy in app<br />
|
||||
wayland support not good: error copying image(like qutebrowser)<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.3.</span> ement.el</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
I like doing everything in emacs, with keyboard<br />
|
||||
but it don't work: <a href="https://github.com/alphapapa/ement.el/issues/77">https://github.com/alphapapa/ement.el/issues/77</a><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.4.</span> fractal</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
HUGE and not fully fonctionall<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.5.</span> thunderbird</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
all-in-one solution, matrix support is not good: cannot show picture<br />
|
||||
I even don't use it for email(I use Geary)<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> how to set proxy</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> neochat</h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
<p>
|
||||
env: <code>http_proxy</code><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.2.</span> fractal</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
env: <code>https_proxy</code><br />
|
||||
accroding to reqwest document<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.3.</span> ement.el</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
var: <code>plz-curl-default-args</code><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-09-22 Thu 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
251
moonboos.html
Normal file
251
moonboos.html
Normal file
@ -0,0 +1,251 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>庄主其人</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">庄主其人</h1>
|
||||
<blockquote>
|
||||
<p>
|
||||
互联网是有记忆的<br />
|
||||
全都是你的所作所为<br />
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> 扩充自 <a href="https://www.bilibili.com/video/BV1be4y1f7PQ">庄主人肉大炮</a> 我的置顶评论</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
如果再遇到给它洗白的人, 可以把下面这些怼过去<br />
|
||||
</p>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.1.</span> <a href="https://moonboos.fandom.com/zh">日月脏主 Wiki</a></h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
大多数都在这里<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.2.</span> <a href="https://www.bilibili.com/video/BV1as411v7Xn">玩家怪物分离踏板</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.3.</span> <a href="https://t.bilibili.com/439570012759880564">无限活塞递归</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.4.</span> <a href="https://www.bilibili.com/video/BV1hR4y1L7Ra">fallen屠龙炮</a></h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
最开始根本没有标注原作者, 而且还说"感谢TIS成员的帮助", 然而TIS成员并没有进行任何帮助<br />
|
||||
后来迫于压力才更改简介<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-09-11 Sun 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
290
new_blog_arch.html
Normal file
290
new_blog_arch.html
Normal file
@ -0,0 +1,290 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>New Blog Architecture</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="description" content="It's time" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">New Blog Architecture</h1>
|
||||
<div id="table-of-contents" role="doc-toc">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents" role="doc-toc">
|
||||
<ul>
|
||||
<li><a>1. Idea is:</a>
|
||||
<ul>
|
||||
<li><a>1.1. clearly look at the diff</a></li>
|
||||
<li><a>1.2. delete the generated files if I want</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a>2. So what</a>
|
||||
<ul>
|
||||
<li><a>2.1. use <code>filter-branch</code> to remove the huge <code>feed.xml</code> in the full history</a></li>
|
||||
<li><a>2.2. ignore the generated files in the source repo</a></li>
|
||||
<li><a>2.3. merge the source repo into site repo when I think it's ok</a></li>
|
||||
<li><a>2.4. and I will use the same stratagy on my YW sub-website if there's no problem</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a>3. Need Advice</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
I've never fully learnt git before(only search for garbage when meeted with problem), so I recently read <a href="https://git-scm.com/book">ProGit</a>.<br />
|
||||
And I have some good ideas on my repo architecture: I should make use of branch, obviously.<br />
|
||||
</p>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> Idea is:</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
seperate the source file(org) and the generated files(html, feed.xml)<br />
|
||||
so I can<br />
|
||||
</p>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.1.</span> clearly look at the diff</h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.2.</span> delete the generated files if I want</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
because those static files are really unecessary and takes much space<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> So what</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> use <code>filter-branch</code> to remove the huge <code>feed.xml</code> in the full history</h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.2.</span> ignore the generated files in the source repo</h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.3.</span> merge the source repo into site repo when I think it's ok</h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.4.</span> and I will use the same stratagy on my YW sub-website if there's no problem</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">3.</span> Need Advice</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<p>
|
||||
I'm really new to do this.<br />
|
||||
If you have a better idea, or this is somehow useful to you,<br />
|
||||
<b>contact me, please!</b><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-11-20 Sun 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
309
nixos.html
Normal file
309
nixos.html
Normal file
@ -0,0 +1,309 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Build a Minimal NixOS LiveCD with swaywm</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Build a Minimal NixOS LiveCD with swaywm</h1>
|
||||
<div id="table-of-contents" role="doc-toc">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents" role="doc-toc">
|
||||
<ul>
|
||||
<li><a>1. problem & solution</a>
|
||||
<ul>
|
||||
<li><a>1.1. unable to drop root</a></li>
|
||||
<li><a>1.2. in normal user, libseat permission deniened</a></li>
|
||||
<li><a>1.3. egl error</a></li>
|
||||
<li><a>1.4. config files from outside</a></li>
|
||||
<li><a>1.5. cleanup builds</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a>2. reference</a>
|
||||
<ul>
|
||||
<li><a>2.1. nixos without systemd?</a></li>
|
||||
<li><a>2.2. an example config</a></li>
|
||||
<li><a>2.3. Xe: Super Bootable 64</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> problem & solution</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.1.</span> unable to drop root</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
donot run under root<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.2.</span> in normal user, libseat permission deniened</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
add user in <code>video</code> group<br />
|
||||
login as user, not root<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.3.</span> egl error</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
enable 3D acceleration in VirtualBox<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.4.</span> config files from outside</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
<img src="../images/irc-nixiso.png" alt="irc-nixiso.png" /> <br />
|
||||
but it is copied using xoriso to <code>/iso/</code><br />
|
||||
so I need to write a systemd service to automagically sync it at boot<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.5.</span> cleanup builds</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
<code>/nix/store/</code> takes too much space after build<br />
|
||||
</p>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-sh">unlink result
|
||||
nix-store <path>
|
||||
</pre>
|
||||
</div>
|
||||
<p>
|
||||
and there're a few tools for visualising disk size:<br />
|
||||
<a href="https://nixos.wiki/wiki/Cleaning_the_nix_store">https://nixos.wiki/wiki/Cleaning_the_nix_store</a><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> reference</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> <a href="https://sr.ht/~guido/nixos-init-freedom/">nixos without systemd?</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.2.</span> <a href="https://gist.github.com/kborling/76805ade81ac5bfdd712df294208c878">an example config</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.3.</span> <a href="https://xeiaso.net/blog/super-bootable-64-2020-05-06">Xe: Super Bootable 64</a></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-09-17 Sat 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
246
recommend_everforest_theme.html
Normal file
246
recommend_everforest_theme.html
Normal file
@ -0,0 +1,246 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Recommend EverForest Theme</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Recommend EverForest Theme</h1>
|
||||
<p>
|
||||
强烈推荐 everforest 这个主题<br />
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
Everforest is a green based color scheme, it's designed to be warm and soft in order to protect developers' eyes.<br />
|
||||
</p>
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
是一个绿色系护眼主题, 正如名字, 有森林的气息<br />
|
||||
分为暗色和亮色, 每一种都有三种不同深浅的背景<br />
|
||||
<a href="https://github.com/sainnhe">作者</a>是中国人, 制作了许多高质量 Vim 主题<br />
|
||||
</p>
|
||||
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> emacs</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
这个主题在 2022-06-29 才开始制作 <a href="https://github.com/Theory-of-Everything/everforest-emacs">emacs 版本</a><br />
|
||||
目前还没在 melpa 上, 所以需要手动安装<br />
|
||||
我一看到这个就从 <a href="https://github.com/arcticicestudio/nord-emacs">Nord</a> 换过来了<br />
|
||||
我加入了 whitespace-mode 的支持, <del>默认的颜色太晃眼睛啦</del><br />
|
||||
<b>希望大家能一起帮忙贡献这个主题</b><br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
放一段 Rust <a href="https://github.com/dongdigua/AxolotlVM">代码</a>的效果<br />
|
||||
<img src="../images/everforest.png" alt="everforest.png" /><br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-06-27 Mon 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
306
recover_udisk.html
Normal file
306
recover_udisk.html
Normal file
@ -0,0 +1,306 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>记一次帮老师修U盘</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="description" content="驱动器 F 中的磁盘未格式化, 想现在格式化吗?" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">记一次帮老师修U盘</h1>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2>发生甚么事了</h2>
|
||||
<div class="outline-text-2">
|
||||
<p>
|
||||
老师上课放(U盘里)视频的时候 "啪" 把U盘拔了!<br />
|
||||
下一次插上就提示 "是否格式化" :)<br />
|
||||
反正闲时间太多, 我就准备试试给修复一下, 使用我在我文具盒里待了两年的工具箱: <a href="https://www.ventoy.net">Ventoy</a> 启动盘<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2>咋整</h2>
|
||||
<div class="outline-text-2">
|
||||
<p>
|
||||
我首先是对 Linux 文件系统有一定基础, 也进行过不少操作(如多次安装gentoo和arch)<br />
|
||||
也搞过一些文件系统损坏的事(比如调分区坏过C盘), 还算有经验<br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
于是我上老师电脑启动了两年前放在工具箱盘里的 Fedora Workstation 34<br />
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="outline-3">
|
||||
<h3>第一次尝试</h3>
|
||||
<div class="outline-text-3">
|
||||
<p>
|
||||
把老师的U盘插上, "嘎嗒"一声熟悉的 gnome 提示音, U盘没显示<br />
|
||||
有 <code>/dev/sdc</code><br />
|
||||
<code>mount -t</code> 试试? 是不是没文件系统坏了没识别? 不是<br />
|
||||
<code>fsck</code> 试试? 不行<br />
|
||||
嗯??? 似乎有点超出我的知识储备和经验了<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3>第二次尝试</h3>
|
||||
<div class="outline-text-3">
|
||||
<p>
|
||||
只有一个整盘, 没有分区号? 凭直觉, 我觉得那就是分区表坏了<br />
|
||||
然后查了一下(当然用英文查), 有没有能修复分区表的? <a href="https://www.cgsecurity.org">testdisk</a><br />
|
||||
然后先用 <code>dd</code> 整盘备份一下, 跑 testdisk<br />
|
||||
很简单就把分区表恢复出来了!<br />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
那就开始拷文件吧…"文件不完整"<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3>第三次尝试</h3>
|
||||
<div class="outline-text-3">
|
||||
<p>
|
||||
和 testdisk 一家的软件还有 <code>photorec</code>, 我似乎在 <a href="https://linux.cn">linuxcn</a> 见过(懒得去找链接了)<br />
|
||||
这东西一看就知道是通过文件头来识别并恢复文件的<br />
|
||||
那就跑呗<br />
|
||||
一节课之后, 文件(和曾经被删除的)都回来了<br />
|
||||
开心!<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-ad" class="outline-2">
|
||||
<h2 id="ad">接活?</h2>
|
||||
<div class="outline-text-2" id="text-ad">
|
||||
<p>
|
||||
我可以比较廉价的进行数据恢复<br />
|
||||
联系我后将磁盘镜像传到 FTP 服务器, <b>不接百度网盘</b><br />
|
||||
暂定价如下:<br />
|
||||
</p>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3>16GiB 以下 0.3 XMR</h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3>16~64GiB 0.5 XMR</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2>后续</h2>
|
||||
<div class="outline-text-2">
|
||||
<p>
|
||||
恢复完之后我想瞅瞅那些教学视频, 正常来讲 f34 应该有解码器的, 但是没有<br />
|
||||
是不是我连着网给我删了?<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-11-13 Sun 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
411
wayland.html
Normal file
411
wayland.html
Normal file
@ -0,0 +1,411 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Something About Wayland(swaywm)</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Something About Wayland(swaywm)</h1>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> Solution</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.1.</span> iBus</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.1.1.</span> <a href="https://www.reddit.com/r/swaywm/comments/djkj5m/ibus_on_swaywm/">reddit: ibus on swaywm</a></h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<p>
|
||||
emacs pyim<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.2.</span> Emacs transparent, terminal blur</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
sway can't, probably wayfire?<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.3.</span> Authorization required, but no authorization protocol specified</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.3.1.</span> <code>sudo -E</code></h4>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.3.2.</span> lxpolkit(directly execute) or polkit-gnome(prettier, at /usr/libexec/polkit-gnome-authentication-agent-1)</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.4.</span> cannot start sway on lightdm</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
yes, still not stable, and it can't remenber which DE you used last time<br />
|
||||
<del>so use gdm is a better choice?</del><br />
|
||||
SDDM is fantastic! <a href="https://youtu.be/2p7FINJSlAk">It is themeable</a>,<br />
|
||||
I'm using <b><code>elarun</code></b>, a oxygen-like smooth crystal theme, materia-kde is also a good choice<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.5.</span> obs</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
don't remove the <code>include</code> line in sway/config<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.6.</span> cursor theme not working</h3>
|
||||
<div class="outline-text-3" id="text-1-6">
|
||||
<p>
|
||||
<a href="https://github.com/swaywm/sway/issues/6931">from this issue</a><br />
|
||||
add <code>seat seat0 xcursor_theme Oxygen_White</code> in sway config file<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.7.</span> touchpad gesture like gnome</h3>
|
||||
<div class="outline-text-3" id="text-1-7">
|
||||
<p>
|
||||
use libinput-gestures<br />
|
||||
</p>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.7.1.</span> <a href="https://github.com/swaywm/sway/issues/1514">issue #1514: touchpad gestures to switch workspaces</a></h4>
|
||||
<div class="outline-text-4" id="text-1-7-1">
|
||||
</div>
|
||||
<ol class="org-ol">
|
||||
<li><a></a><a href="https://github.com/swaywm/sway/pull/4952">pull #4952</a><br />
|
||||
<ol class="org-ol">
|
||||
<li><a></a><a href="https://github.com/swaywm/sway/pull/6778">pull #6778</a><br /></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.7.2.</span> r/swaywm</h4>
|
||||
<div class="outline-text-4" id="text-1-7-2">
|
||||
</div>
|
||||
<ol class="org-ol">
|
||||
<li><a></a><a href="https://www.reddit.com/r/swaywm/comments/px5vmw/how_are_you_configuring_touchpad_gestures/">https://www.reddit.com/r/swaywm/comments/px5vmw/how_are_you_configuring_touchpad_gestures/</a><br /></li>
|
||||
<li><a></a><a href="https://www.reddit.com/r/swaywm/comments/em0jnx/can_sway_handle_threefour_finger_touchpad_gestures/">https://www.reddit.com/r/swaywm/comments/em0jnx/can_sway_handle_threefour_finger_touchpad_gestures/</a><br /></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.8.</span> notify-send don't work</h3>
|
||||
<div class="outline-text-3" id="text-1-8">
|
||||
<p>
|
||||
mako, a notification daemon<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.9.</span> <span class="todo TODO">TODO</span> <a href="https://github.com/WayfireWM/wayfire/issues/1329">Wayfire crashes when closing foot terminal</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.10.</span> emacs tool-bar not working(cannot toggle and icon theme missing)</h3>
|
||||
<div class="outline-text-3" id="text-1-10">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.10.1.</span> cannot toggle: disable custon <code>default-frame-alist</code>, or just use floating mode</h4>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.10.2.</span> <span class="todo TODO">TODO</span> icon theme missing: ?</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">1.11.</span> <a href="https://www.reddit.com/r/swaywm/comments/scz5k6/option_create_on_workspace_prev_on_outputnext_on/">Option –create on workspace prev_on_output|next_on_output?</a></h3>
|
||||
<div class="outline-text-3" id="text-1-11">
|
||||
<p>
|
||||
this feature is not compatible with i3, so sway didn't accept the pr<br />
|
||||
</p>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.11.1.</span> <a href="https://www.reddit.com/r/swaywm/comments/mmfwnu/sway_command_workspace_next/">shell script solution</a></h4>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">1.11.2.</span> <a href="https://github.com/oati/sway-workspace-manager">rust, probably useful</a></h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> Ref</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> <a href="https://coda.world/sway-explore-and-giveup">Sway: 从尝试到放弃</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.2.</span> <a href="https://shinta.ro/posts/migration-from-xorg-to-wayland/">从 Xorg 迁移到 Wayland</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.3.</span> <a href="https://github.com/emersion/xdg-desktop-portal-wlr/wiki/Screencast-Compatibility#obs">xdg-desktop-portal wiki: obs</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.4.</span> <a href="https://www.reddit.com/r/swaywm/comments/jdoo8m/how_do_i_find_out_the_names_of_certain_keys/">prtsc is Print</a></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
<code>xev/wev</code> is helpful<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.5.</span> <a href="https://www.reddit.com/r/swaywm/comments/ehqsuw/autochanging_background_for_sway/">reddit: auto-changing sway background</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.6.</span> Configs</h3>
|
||||
<div class="outline-text-3" id="text-2-6">
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.6.1.</span> <a href="https://github.com/ziap/dotfiles">https://github.com/ziap/dotfiles</a></h4>
|
||||
<div class="outline-text-4" id="text-2-6-1">
|
||||
<p>
|
||||
a great config<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.6.2.</span> <a href="https://github.com/Ruixi-rebirth/sway-dotfiles">Ruixi-rebirth's dotfiles</a></h4>
|
||||
<div class="outline-text-4" id="text-2-6-2">
|
||||
<p>
|
||||
sway, very beautiful, from COSSIG<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.6.3.</span> <a href="https://www.reddit.com/r/unixporn/comments/vc9912/river_riced_river_a_dynamic_tiling_wayland/">a Paid config</a></h4>
|
||||
<div class="outline-text-4" id="text-2-6-3">
|
||||
<p>
|
||||
this is excellent, but…not for me, I'd like something simpler<br />
|
||||
</p>
|
||||
</div>
|
||||
<ol class="org-ol">
|
||||
<li><a></a><a href="https://archcraft.io">archcraft</a><br /></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.6.4.</span> <a href="https://github.com/rxyhn/yoru">夜 - Yoru</a></h4>
|
||||
<div class="outline-text-4" id="text-2-6-4">
|
||||
<p>
|
||||
awesome config!<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-08-07 Sun 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
279
weird_mglndd.html
Normal file
279
weird_mglndd.html
Normal file
@ -0,0 +1,279 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2022-12-02 Fri 12:43 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>Something About MGLNDD Scans</title>
|
||||
<meta name="author" content="dongdigua" />
|
||||
<meta name="description" content="sus" />
|
||||
<meta name="generator" content="Org Mode" />
|
||||
<style>
|
||||
#content { max-width: 60em; margin: auto; }
|
||||
.title { text-align: center;
|
||||
margin-bottom: .2em; }
|
||||
.subtitle { text-align: center;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
margin-top:0; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { font-family: monospace; color: green; }
|
||||
.priority { font-family: monospace; color: orange; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #e6e6e6;
|
||||
border-radius: 3px;
|
||||
background-color: #f2f2f2;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 12px;
|
||||
padding: 3px;
|
||||
color: #555;
|
||||
background-color: #f2f2f299;
|
||||
}
|
||||
pre.src:hover:before { display: inline; margin-top: 14px;}
|
||||
/* Languages per Org manual */
|
||||
pre.src-asymptote:before { content: 'Asymptote'; }
|
||||
pre.src-awk:before { content: 'Awk'; }
|
||||
pre.src-authinfo::before { content: 'Authinfo'; }
|
||||
pre.src-C:before { content: 'C'; }
|
||||
/* pre.src-C++ doesn't work in CSS */
|
||||
pre.src-clojure:before { content: 'Clojure'; }
|
||||
pre.src-css:before { content: 'CSS'; }
|
||||
pre.src-D:before { content: 'D'; }
|
||||
pre.src-ditaa:before { content: 'ditaa'; }
|
||||
pre.src-dot:before { content: 'Graphviz'; }
|
||||
pre.src-calc:before { content: 'Emacs Calc'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-fortran:before { content: 'Fortran'; }
|
||||
pre.src-gnuplot:before { content: 'gnuplot'; }
|
||||
pre.src-haskell:before { content: 'Haskell'; }
|
||||
pre.src-hledger:before { content: 'hledger'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-js:before { content: 'Javascript'; }
|
||||
pre.src-latex:before { content: 'LaTeX'; }
|
||||
pre.src-ledger:before { content: 'Ledger'; }
|
||||
pre.src-lisp:before { content: 'Lisp'; }
|
||||
pre.src-lilypond:before { content: 'Lilypond'; }
|
||||
pre.src-lua:before { content: 'Lua'; }
|
||||
pre.src-matlab:before { content: 'MATLAB'; }
|
||||
pre.src-mscgen:before { content: 'Mscgen'; }
|
||||
pre.src-ocaml:before { content: 'Objective Caml'; }
|
||||
pre.src-octave:before { content: 'Octave'; }
|
||||
pre.src-org:before { content: 'Org mode'; }
|
||||
pre.src-oz:before { content: 'OZ'; }
|
||||
pre.src-plantuml:before { content: 'Plantuml'; }
|
||||
pre.src-processing:before { content: 'Processing.js'; }
|
||||
pre.src-python:before { content: 'Python'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-ruby:before { content: 'Ruby'; }
|
||||
pre.src-sass:before { content: 'Sass'; }
|
||||
pre.src-scheme:before { content: 'Scheme'; }
|
||||
pre.src-screen:before { content: 'Gnu Screen'; }
|
||||
pre.src-sed:before { content: 'Sed'; }
|
||||
pre.src-sh:before { content: 'shell'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
pre.src-sqlite:before { content: 'SQLite'; }
|
||||
/* additional languages in org.el's org-babel-load-languages alist */
|
||||
pre.src-forth:before { content: 'Forth'; }
|
||||
pre.src-io:before { content: 'IO'; }
|
||||
pre.src-J:before { content: 'J'; }
|
||||
pre.src-makefile:before { content: 'Makefile'; }
|
||||
pre.src-maxima:before { content: 'Maxima'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
||||
pre.src-scala:before { content: 'Scala'; }
|
||||
pre.src-shell:before { content: 'Shell Script'; }
|
||||
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
||||
/* additional language identifiers per "defun org-babel-execute"
|
||||
in ob-*.el */
|
||||
pre.src-cpp:before { content: 'C++'; }
|
||||
pre.src-abc:before { content: 'ABC'; }
|
||||
pre.src-coq:before { content: 'Coq'; }
|
||||
pre.src-groovy:before { content: 'Groovy'; }
|
||||
/* additional language identifiers from org-babel-shell-names in
|
||||
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
||||
the execution function name together. */
|
||||
pre.src-bash:before { content: 'bash'; }
|
||||
pre.src-csh:before { content: 'csh'; }
|
||||
pre.src-ash:before { content: 'ash'; }
|
||||
pre.src-dash:before { content: 'dash'; }
|
||||
pre.src-ksh:before { content: 'ksh'; }
|
||||
pre.src-mksh:before { content: 'mksh'; }
|
||||
pre.src-posh:before { content: 'posh'; }
|
||||
/* Additional Emacs modes also supported by the LaTeX listings package */
|
||||
pre.src-ada:before { content: 'Ada'; }
|
||||
pre.src-asm:before { content: 'Assembler'; }
|
||||
pre.src-caml:before { content: 'Caml'; }
|
||||
pre.src-delphi:before { content: 'Delphi'; }
|
||||
pre.src-html:before { content: 'HTML'; }
|
||||
pre.src-idl:before { content: 'IDL'; }
|
||||
pre.src-mercury:before { content: 'Mercury'; }
|
||||
pre.src-metapost:before { content: 'MetaPost'; }
|
||||
pre.src-modula-2:before { content: 'Modula-2'; }
|
||||
pre.src-pascal:before { content: 'Pascal'; }
|
||||
pre.src-ps:before { content: 'PostScript'; }
|
||||
pre.src-prolog:before { content: 'Prolog'; }
|
||||
pre.src-simula:before { content: 'Simula'; }
|
||||
pre.src-tcl:before { content: 'tcl'; }
|
||||
pre.src-tex:before { content: 'TeX'; }
|
||||
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
||||
pre.src-verilog:before { content: 'Verilog'; }
|
||||
pre.src-vhdl:before { content: 'VHDL'; }
|
||||
pre.src-xml:before { content: 'XML'; }
|
||||
pre.src-nxml:before { content: 'XML'; }
|
||||
/* add a generic configuration mode; LaTeX export needs an additional
|
||||
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
||||
pre.src-conf:before { content: 'Configuration File'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.org-right { text-align: center; }
|
||||
th.org-left { text-align: center; }
|
||||
th.org-center { text-align: center; }
|
||||
td.org-right { text-align: right; }
|
||||
td.org-left { text-align: left; }
|
||||
td.org-center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara { display: inline; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.equation-container {
|
||||
display: table;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.equation {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.equation-label {
|
||||
display: table-cell;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
.org-svg { width: 90%; }
|
||||
</style>
|
||||
<link rel='stylesheet' type='text/css' href='css/main.css' />
|
||||
</head>
|
||||
<body>
|
||||
<div id="org-div-home-and-up">
|
||||
<a accesskey="h" href="./../posts"> UP </a>
|
||||
|
|
||||
<a accesskey="H" href="https://dongdigua.github.io"> HOME </a>
|
||||
</div><div id="content" class="content">
|
||||
<h1 class="title">Something About MGLNDD Scans</h1>
|
||||
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">1.</span> <span class="done DONE">DONE</span> <a href="https://stretchoid.com/">stretchoid opt-out</a></h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
<p>
|
||||
it's this domain's workers that COMSTANTLY scanning the WHOLE internet<br />
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-2">
|
||||
<h2><span class="section-number-2">2.</span> Some related link</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.1.</span> <a href="https://www.bilibili.com/read/cv16357621">my post on bilibili</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.2.</span> <a href="https://isc.sans.edu/diary/MGLNDD_%2A+Scans/28458">SANS internet storm center diary</a></h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p>
|
||||
about the scanner and IP range<br />
|
||||
</p>
|
||||
</div>
|
||||
<div class="outline-4">
|
||||
<h4><span class="section-number-4">2.2.1.</span> <a href="https://cybersafenv.org/2022/03/20/mglndd-scans-sun-mar-20th/">repost on cybersafenv</a></h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.3.</span> <a href="http://www.hackdig.com/04/hack-81133.htm">知名网络空间普查与网络测绘组织研究报告 第一期-组织名录篇</a></h3>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.4.</span> <a href="https://duanmofan.com/archives/librarymanagementsystem">【水蓝石】 近日图书馆出入人员信息逸事和小恶魔创造【持续更新】</a></h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<blockquote>
|
||||
<p>
|
||||
博客主评价,有很多包括stretchoid.com的组织,有的是把自己伪装成科研实验用数据,并没有恶意,有的是什么理由也不给,只是不停地扫描全网的网站。<br />
|
||||
其中也包括像密歇根大学,加州大学伯克利分校的访问信息。因为网络安全领域没有类似于“希波克拉底誓言”的东西,所以不能像医生一样信任<br />
|
||||
就像到处晃别人家的门把手而不打开不是犯罪,但是真正的打开就混在发现没有锁门,而晃门把手时。<br />
|
||||
</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
<ol class="org-ol">
|
||||
<li><a></a><a href="https://www.hackerfactor.com/blog/index.php?/archives/775-Scans-and-Attacks.html">HackerFactor: Scans & Attacks</a><br /></li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.5.</span> <a href="https://zhuanlan.zhihu.com/p/67186794">zhihu:repost-translation: 如何建立一个基本的蜜罐</a></h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p>
|
||||
the original post is gone<br />
|
||||
</p>
|
||||
<blockquote>
|
||||
<p>
|
||||
您还可以开始执行DNS和WHOIS查找,以找出每次扫描背后的人员。<br />
|
||||
在这个简短的样本中,我找到了一个伪“研究员”:107.170.202.111解析为“zg-0301f-15.stretchoid.com”。<br />
|
||||
他们没有确定他们正在做什么或为什么他们在161 / udp扫描我的蜜罐。(端口161 / udp是为简单的网络管理协议(SNMP)保留的,并且经常容易受到攻击。)<br />
|
||||
是的,他们把“malicious”拼错了 - 因此它可能不会出现在谷歌搜索“stretchoid and malicious”的结果中。<br />
|
||||
</p>
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
<div class="outline-3">
|
||||
<h3><span class="section-number-3">2.6.</span> <a href="https://www.digitalocean.com/community/questions/why-is-digital-ocean-showing-in-my-router-connecting-to-a-ps4">Why is Digital Ocean showing in my router, connecting to a PS4?</a></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
|
||||
<p class="author">Author: dongdigua</p>
|
||||
<p class="date">Date: 2022-08-17 Wed 00:00</p>
|
||||
<p class="date">Build: 2022-12-02 Fri 12:43</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user