[BASH] Push notification to Telegram

Dec. 2, 2016 by

By using BASH Create the bot using Botfather and get the API Token 1. Add the Bot and start a chat 2. Get the chat_id by going to the https://api.telegram.org/bot<tokencode>/getUpdates for

[BASH] Send mail via terminal / script

Dec. 2, 2016 by

Given that you have setup postfix or similar and mailutils mail -a “Content-Type: text/plain; charset=UTF-8” -s “SUBJECT” “TO@ADDRESS.COM” -aFrom:”Christian Tamm”\<noreply@domain.com\> <<EOF This is my body EOF   Can be saved

[BASH] Script to trigger CSGO server restart

Dec. 2, 2016 by

Requirements: screen, cron and not being completly stupid 🙂 Can easily be scheduled with cronjob In this case my “screen” name is “aim” #!/bin/bash screen -S aim -p 0 -X