Hosting WordPress sites on t2.nano instances

Published on Author adventurerLeave a comment

Since AWS have now introduced a t2.nano instance, it is even cheaper to run a single instance for very low volume services, which don’t need the CPU performance of a t2.micro. However one thing to watch out for is memory – t2.nano instances only come with 512Mb of RAM, and I found that the mysqld… Continue reading Hosting WordPress sites on t2.nano instances

RaspberryPi: Running a Python script on boot

Published on Author adventurerLeave a comment

To run a script called myproject/myscript.py on boot, first create the script and ensure it has execute permissions. Then create a config file for systemctl as follows: % sudo vi /lib/systemd/system/myscript.service containing the following [Unit] Description=My Script After=multi-user.target [Service] Type=idle ExecStart=/usr/bin/python /home/pi/myproject/myscript.py [Install] WantedBy=multi-user.target Set the correct permissions on the config file % sudo chmod… Continue reading RaspberryPi: Running a Python script on boot