安装

sudo apt install texlive-full

包还蛮大的,3GB下载,5GB展开

Interface zh_CN

Options->Configure TeXstudio->General->Language

Hello world

1
2
3
4
5
6
7
8
9
10
11
12
13
% !TEX program = xelatex
% !Mode:: "TeX:UTF-8"
%Save as UTF-8, run xelatex.

\documentclass{article}

\usepackage{xeCJK}

\begin{document}

hello,你好

\end{document}

Big Demo

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
% !TEX program = xelatex
% !Mode:: "TeX:UTF-8"
% Save as UTF-8, run xelatex.

\documentclass{article}
\title{My first document}
\date{2013-09-01}
\author{John Doe \thanks{funded by the Overleaf team}}
\usepackage{xeCJK}

\begin{document}
\pagenumbering{gobble}
\maketitle
\newpage
\pagenumbering{arabic}

\begin{abstract}
This is a simple paragraph at the beginning of the
document. A brief introduction about the main subject.
\end{abstract}

\tableofcontents

\section{Introduction}

This is the first section.

Lorem ipsum dolor sit amet, consectetuer adipiscing
elit. Etiam lobortisfacilisis sem. Nullam nec mi et
neque pharetra sollicitudin. Praesent imperdietmi nec ante.
Donec ullamcorper, felis non sodales...

\subsection{First Subsection}
Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...

\subsection{Second Subsection}
Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...

\subsubsection{subsubsection}
subsubsection

\paragraph{paragraph}
paragraph

\subparagraph{subparagraph}
subparagraph

\section{Second Section}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Etiam lobortis facilisissem. Nullam nec mi et neque pharetra
sollicitudin. Praesent imperdiet mi necante...

\section*{Unnumbered Section}
\addcontentsline{toc}{section}{Unnumbered Section}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Etiam lobortis facilisissem. Nullam nec mi et neque pharetra
sollicitudin. Praesent imperdiet mi necante...

hello,你好 \LaTeX{}

% This line here is a comment. It will not be printed in the document.

Some of the \textbf{greatest}
discoveries in \underline{science}
were made by \textbf{\textit{accident}}.

% Unordered lists

\begin{itemize}
\item The individual entries are indicated with a black dot, a so-called bullet.
\item The text in the entries may be of any length.
\end{itemize}

%Ordered lists

\begin{enumerate}
\item This is the first entry in our list
\item The list numbers increase with each entry we add
\end{enumerate}

In physics, the mass-energy equivalence is stated
by the equation $E=mc^2$, discovered in 1905 by Albert Einstein.

The mass-energy equivalence is described by the famous equation
\[ E=mc^2 \]
discovered in 1905 by Albert Einstein.
In natural units ($c = 1$), the formula expresses the identity
\begin{equation}
E=m
\end{equation}


Subscripts in math mode are written as $a_b$ and superscripts are written as $a^b$. These can be combined an nested to write expressions such as

\[ T^{i_1 i_2 \dots i_p}_{j_1 j_2 \dots j_q} = T(x^{i_1},\dots,x^{i_p},e_{j_1},\dots,e_{j_q}) \]

We write integrals using $\int$ and fractions using $\frac{a}{b}$. Limits are placed on integrals using superscripts and subscripts:

\[ \int_0^1 \frac{dx}{e^x} = \frac{e-1}{e} \]

Lower case Greek letters are written as $\omega$ $\delta$ etc. while upper case Greek letters are written as $\Omega$ $\Delta$.

Mathematical operators are prefixed with a backslash as $\sin(\beta)$, $\cos(\alpha)$, $\log(x)$ etc.


\begin{center}
\begin{tabular}{ c c c }
cell1 & cell2 & cell3 \\
cell4 & cell5 & cell6 \\
cell7 & cell8 & cell9
\end{tabular}
\end{center}

\begin{center}
\begin{tabular}{ |c|c|c| }
\hline
cell1 & cell2 & cell3 \\
cell4 & cell5 & cell6 \\
cell7 & cell8 & cell9 \\
\hline
\end{tabular}
\end{center}

Table \ref{table:data} is an example of referenced \LaTeX{} elements.

\begin{table}[h!]
\centering
\begin{tabular}{||c c c c||}
\hline
Col1 & Col2 & Col2 & Col3 \\ [0.5ex]
\hline\hline
1 & 6 & 87837 & 787 \\
2 & 7 & 78 & 5415 \\
3 & 545 & 778 & 7507 \\
4 & 545 & 18744 & 7560 \\
5 & 88 & 788 & 6344 \\ [1ex]
\hline
\end{tabular}
\caption{Table to test captions and labels}
\label{table:data}
\end{table}

\end{document}

more tutorial

https://www.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes

众所周知,我电脑目前只有16G,虽然Ubuntu本身吃不了多少内存,要同时开Dota2,VMware,Chrome之类的,gitlab/jenkins对我来说已经太大了

要想在自己本地电脑上玩个git server,(虽然也没啥卵用,毕竟一般来说私有的本地git就管理了不需要server,公开的都丢github

就要找一个小内存占用的

建立一个宿主上的存放gogs数据的文件夹,我这边数据类都丢在/data里,所以我这是mkdir -p /data/gogs

然后启动

1
docker run --name=gogs -p 10022:22 -p 10080:3000 -v /data/gogs:/data gogs/gogs

然后网页开localhost:10080就好了

这里需要注意的是git设置用[git@192.XXX.XXX.XXX:10022]:cromarmot/demo.git的形式

这样就可以dota2+vmware+chrome+nextcloud+gogs了,好耶,虽然也不知道有啥卵用

https://github.com/gogs/gogs/tree/main/docker

有些别人整理过的,暂时也不太需要二次整理的文章,建立索引,缺点是可能失效链接和无法自己维护, 移除用twitter书签的, 手机 Pocket, 网页书签栏,

文章

分布式文件系统的演化

GO 编程模式:K8S VISITOR 模式

proposals/enhanced-default-processor

ng packages

牛油果烤面包

捕蛇者说

ng ivy

美团技术团队

tidb

gnu core utils 源码

regex 填字游戏

stanford cs 329s 机器学习设计

ncnn

go语言设计与实现

Learning How to Learn

git

hacker101

typescript challenge

Sylvester Equation

pingcap database learning path

FB vector

logrotate

timing attack

py spider

The Aggregate Magic Algorithms

py command line

Modern MVVM iOS App Architecture with Combine and SwiftUI

k8s 调度

tsinghua aos

RUST语言的编程范式 coolshell

sourcetrail

cmu type theory

Abstract Algobra Youtube

kube ladder

Project Zero

交互

概念上, 这几类

  1. 触发一个远端方法
  2. 数据共享
  3. 响应式触发

回顾经典

说道通信,那就回顾一下Linux的通信方式,IPC

  • 共享文件
  • 共享内存
  • 管道(命名和匿名)
  • 消息队列
  • sockets
  • signal
閱讀全文 »