Thu 06 February 2020 sysadmin How to repair a corrupted MySQL database Did your MySQL database got corrupted? Don't you have a recent backup? In this post I'll present three simple methods to restore your data.
Thu 30 January 2020 sysadmin MySQL incremental backup with mysqldump and rdiff-backup In this post I will show you a simple method to perform a MySQL incremental backup. This method is quite effective for small and medium databases.
Fri 03 January 2020 sysadmin Bitbucket Pipelines and Ansible: Continuous delivery for your Django project Achieve a powerful yet simple continuous delivery setup for your Django project, using free tools like Bitbucket Pipelines and Ansible.
Thu 07 February 2019 sysadmin How to move docker data directory to another location on Ubuntu Move Docker data directory in 5 minutes following this simple step by step guide.
Tue 24 July 2018 sysadmin Backup and restore apt packages on Debian-Ubuntu Suppose you want to install all the apt packages already installed on one server to another one. On the source machine execute the following commands to make a list of installed packages and their “states” (installed manually or automatically): sudo dpkg --get-selections > pkgs_selection.lst sudo apt-mark showauto > …
Wed 10 May 2017 sysadmin A simple Python email gateway Say you have a Django web application that you want to integrate with emails to make it possibile to send data and files to your web application over SMTP. The good news is that Python has a simple SMTP daemon in the standard library, together with modules to parse emails …
Tue 02 May 2017 sysadmin How to deploy a Django project in 15 minutes with Ansible In this post I explain how to deploy a Django project in 15 minutes with Ansible. Automate your deploy will save you time and helps in avoiding errors.
Mon 07 December 2015 sysadmin Configure SFTP access to your Ubuntu server through SSH Sometimes you have to give your users a way to manage files on your server. A typical scenario is a web server where your users manage their websites by themselves. The classical approach in this scenario was to use FTP to give file management capabilities to your users, but it …
Tue 03 June 2014 sysadmin How to turn your Raspberry PI in a Google Cloud Print device Google Cloud Print (GCP) is a quite useful Google service, allowing you to print in a GCP compliant printer from everywhere and from every device of yours, be it a desktop, a tablet or a smartphone. There are quote a lot of printers out there supporting GCP out of the …
Sun 13 October 2013 sysadmin Django on windows: how to make Django run in CherryPy as a Windows service Recently a client asked me to investigate the possibility to have a Django application hosted in a Windows environment. I looked around a bit and there are many ways to achieve this goal. I found the “pure Python” approach described here simpler to deploy and configure, yet very powerful and …