Skip to content

Instantly share code, notes, and snippets.

View mehmetahsen's full-sized avatar

Mehmet Ahsen mehmetahsen

View GitHub Profile
@mehmetahsen
mehmetahsen / telegram.sh
Created May 7, 2021 20:46
Poor man's Telegram notifier
#!/bin/bash
# Bash Import/Source script
# Prints/Sends start/error/end messages
set -o pipefail
set -o errtrace
# Have below variables set
TELEGRAM_BOT_TOKEN=''
TELEGRAM_CHAT_ID=''
@mehmetahsen
mehmetahsen / envsubst_vs_heredoc.sh
Created December 21, 2020 19:01
envsubst vs bash here-doc
#
# With envsubst
#
$ cat webadmin.ini.tpl # a template file is required
[User:${CUBERITE_USERNAME}]
Password=${CUBERITE_PASSWORD}
[WebAdmin]
Enabled=1
Ports=8080