开发 Tips(9)

主要记录最近遇到的一些开发问题,解决方法。

1. pandoc 简单使用技巧

Pandoc 是由 John MacFarlane 开发的标记语言转换工具,可实现不同标记语言间的格式转换,堪称该领域中的 “瑞士军刀”。Pandoc 使用 Haskell 语言编写,以命令行形式实现与用户的交互,可支持多种操作系统。下载地址: https://github.com/jgm/pandoc/releases/ 。Pandoc 的基本指令格式是:

相关推荐

站点声明:本站部分内容转载自网络,作品版权归原作者及来源网站所有,任何内容转载、商业用途等均须联系原作者并注明来源。

相关侵权、举报、投诉及建议等,请发邮件至E-mail:service@mryunwei.com

回到顶部
1
pandoc [options] [input-file] ...
pandoc -o output.html input.md
pandoc -f markdown -t docx -o output.docx input.md
brew install tmux
tmux new -s session_name
tmux detach (快捷键:Ctrl+b+d)
tmux attach-session -t session_name
tmux kill-session -t session_name
tmux list-session
tmux kill-server
tmux switch -t session_name
tmux rename -t oldName newName
fdisk -l
fdisk /dev/vdc
mke2fs -j /dev/vdc
mount /dev/vdc /local_dir
yum install -y nfs-utils
systemctl start nfs-server.service & systemctl enable nfs-server.service
cat /etc/exports

/data/  192.168.10.0/24(rw,sync,no_root_squash,no_all_squash)
systemctl restart nfs-server
mount_nfs 服务器IP:服务器目录 客户端目录
umount /Users/username/nfs/
curl https://rclone.org/install.sh | sudo bash
rclone authorize "onedrive"
rclone config
Use auto config?
 * Say Y if not sure
 * Say N if you are working on a remote or headless machine
y) Yes
n) No
rclone mount DriveName:Folder LocalFolder --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 &