Rsync with telegram notifications

create a new script with: nano script.sh and paste the following:

This script will mount a share then proceed to sync the files and also delete files older then 7 days. Replace all the values within <> to ones that suits your needs.

make the script executable with sudo chmod +x script.sh

To make it auto run: sudo crontab -e

And paste the following:

0 1 * * * /location/of/script.sh

This will make the script run every night at 01:00

Robocopy with Telegram notifications

Create a new powershell script and paste the following code:

Of course replace all the <ChangeMe> with suiting values for your needs

This is what a notification looks like for me when it has finished

Minecraft server as a service in linux

This will show you how to run a mincecraft server as a service in linux

and paste the following, you will have to do some modifications to this:

Then paste the following commands to make it executable

To make the server autostart you simply type

sudo systemctl enable MinecraftServer

And to manually start and stop the server:

sudo systemctl start MinecraftServer

sudo systemctl stop MinecraftServer

if you want to enter the console for the minecraft server you type:

screen -r Minecraftserver

and to exit the console press:

ctrl +a +d

You can do this with as many minecraft servers as you like, just give each service a different name and also change Minecraftserver lines to something unique for each

Enable RTMP stream on unifi cameras

ssh into your camera and paste the following one-liner:

Then to access the stream: rtmp://<ip.address.of.camera>:1935/live/s0

NOTE: this wont survive a reboot and the procedure needs to be done every time the camera has lost its power

WordPress behind Nginx Proxy Manager

To get wordpress to play nicely behind Nginx Proxy manager you will have to do a few changes

Edit your wp-config.php and add the following lines:

And if you get error when logging into wp-admin you need to add this aswell to the top of wp-config.php:

in nginx proxy manager on the proxy host in advanced tab you will have to add:

b00tify, a wordpress theme by Pelle