I write about

    Sublime Text useful python snippets

    For the past few months, I have been trying to move from using Geany to using Sublime Text as my primary text editor. I find myself repeating some repetitive operations dozen times a day when coding in python, such as import IPython;IPython.embed() and etc. So here are some of my... [Read More]

    System V init script(start-stop-daemon)

    I've been looking for efficient ways to start at boot my NodeJS dependent applications, with inspiration from https://gist.github.com/alobato/1968852, I modified it to my own needs. Link might interest you as well: http://big-elephants.com/2013-01/writing-your-own-init-scripts/ https://www.cyberciti.biz/tips/linux-write-sys-v-init-script-to-start-stop-service.html Copy template to /etc/init.d and rename it to something meaningful. Then edit the script and enter that name... [Read More]

    Installing latest Node.js on Raspberry Pi B+

    So, I've been battling with updating my node.js via apt-get, for some apparent reason seems like they've discontinued updates or maybe I've been doing it wrong all along - who knows. But I found a way to bypass apt-get and go back to the basics. Note: This assumes that the... [Read More]

    Bachelor's project demo

    https://www.youtube.com/playlist?list=PL_VWrf_GRsBxr38XZuRrFHBBI3EpLQJ29 So after completing my diploma, and it becoming redundant in the working industry. I had to set my eyes on a Bachelor's degree. Trust me it was not easy, in the sense of being a part-time student, full-time employee, a father, a fiance and being stuck on some island... [Read More]

    Raspberry PI Swap partition

    To resize swap partition: sudo nano /etc/dphys-swapfile sudo dphys-swapfile setup sudo dphys-swapfile swapon To check the current swap status: swapon -s To turn off all swap: sudo swapoff -a To turn on swap as defined in /etc/fstab: sudo swapon -a To turn on swap, using a specified file: sudo swapon... [Read More]

    Replacing A Failed Hard Drive In A Software RAID1 Array

    Credit goes to Author:falko Replacing A Failed Hard Drive In A Software RAID1 Array. This guide shows how to remove a failed hard drive from a Linux RAID1 array (software RAID), and how to add a new hard disk to the RAID1 array without losing data. NOTE: There is a new... [Read More]