# Tools

### Pandoc
https://pandoc.org/

```bash
pandoc -f markdown -t org -o output_file.org input_file.md
```

### Docker
#### Docker Hub mirror
https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6

```bash
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://9natnp0v.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
```

#### 一些实践
- https://github.com/y0ngb1n/dockerized

### Git
#### Gitea
https://github.com/go-gitea/gitea
https://gitea.io/en-us/

### 科学上网

### Emacs/Vim

### GNU Make

### CMake

### LaTeX -- 写文章

### 画图
- https://excalidraw.com/

### 文件的压缩与解压缩
https://wiki.archlinux.org/title/Archiving_and_compression

### SSH
#### Quickly Setup SSH Agent
```bash
eval `ssh-agent` && ssh-add
```

https://twitter.com/slicknet/status/1555246335883767808

### sed
https://www.gnu.org/software/sed/manual/sed.html

常用命令：

- Replace first occurrence in each line: `sed 's/{{regex}}*{{replace}}*' {{filename}}`
- Replace all occurrences: `sed -r 's/{{regex}}/{{replace}}/g' {{filename}}`
- In-place replace: `sed -i 's/{{find}}/{{replace}}/g' {{filename}}`
- Replace only on matching lines: `sed '/{{line_pattern}}*s*{{find}}*{{replace}}*' {{filename}}`
- Delete matching lines: `sed '/{{line_pattern}}/d' {{filename}}`
- Print first 11 lines: `sed 11q {{filename}}`
- Apply multiple expressions: `sed -e 's/{{find}}*{{replace}}*' -e 's/{{find}}*{{replace}}*' {{filename}}`
- Change separator: `sed 's#{{find}}#{{replace}}#' {{filename}}`

from https://github.com/tldr-pages/tldr/blob/main/pages/common/sed.md

### awk
https://www.gnu.org/software/gawk/

常用命令：

- Print the fifth column: `awk '{print $5}' {{filename}}`
- Print second column of lines containing "foo": `awk '*{{foo}}* {print $2}' {{filename}}`
- Print last column, comma-separated: `awk -F ',' '{print $NF}' {{filename}}`
- Sum values in first column: `awk '{s+=$1} END {print s}' {{filename}}`
- Print every third line from first line: `awk 'NR%3==1' {{filename}}`
- Conditional printing: `awk '{if ($1 == "foo") print "Exact match foo"; else print "Baz"}' {{filename}}`

from https://github.com/tldr-pages/tldr/blob/main/pages/common/awk.md

### Music Tools
- https://github.com/navidrome/navidrome - 自托管音乐流媒体
- https://github.com/rainner/soma-fm-player - Soma FM 播放器
- https://www.lofi.cafe/ - Lofi 音乐
- https://earth.fm/ - 自然声音

### Code Sharing
https://github.com/screego/server - 实时代码分享

### Misc
- [Google Webfonts Helper](https://google-webfonts-helper.herokuapp.com/fonts)
- [Prepaid SIM card wiki](https://prepaid-data-sim-card.fandom.com/wiki/Prepaid_SIM_with_data)


相关：[[pandoc-md2org|pandoc-md2org]]
