apt install -y nginx rsync - Add the
githubuser:
adduser --disabled-password --gecos "" --home /home/github github| #!/usr/bin/env bash | |
| pushd $ZETZ_PATH | |
| FZF_DEFAULT_COMMAND="find *.md -type f" \ | |
| fzf --height=100% --preview-window=right:45%:wrap \ | |
| --preview 'bat --language=md --style=plain --color=always {}' \ | |
| --bind 'enter:execute($EDITOR {})' \ | |
| --bind 'ctrl-r:reload($SHELL -c "${FZF_DEFAULT_COMMAND}")' \ | |
| --bind 'ctrl-x:execute-silent(rm -f {})+reload($SHELL -c "${FZF_DEFAULT_COMMAND}")' \ |
| ''' | |
| This script checks for the existence of a directory called "chats" | |
| in the current working directory and looks for XML files to read. | |
| Once the parsing is done, it creates an SQLite DB file, and a table | |
| for storing the date, from, to, text and style attributes of the messages. | |
| ''' | |
| import os | |
| import sys |