I write about

    Move files by date into different directory using CLI

    A while back I was unfortunate in such a way that my HDD that I primarily use as photo archive started having mechanical issues, and before It died on my arms I had the opportunity to backup most of my pictures, however most of them were truncated and had to... [Read More]
    Tags: Bash linux ubuntu

    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]

    Cool Bash Tricks

    Create ~/.inputrc and fill it with this: "\e[A": history-search-backward "\e[B": history-search-forward This allows you to search through your history using the up and down arrows … i.e. type "cd" and press the up arrow and you'll search through everything in your history that starts with "cd". It's a little bit... [Read More]

    Automatically connect a RPi to a Wifi network

    Setting up WiFi connection Start by booting the Raspberry Pi, connected to a display and a keyboard. Open up the terminal and edit the network interfaces file: $ sudo nano /etc/network/interfaces This file contains all known network interfaces, it'll probably have a line or two in there already. Change the... [Read More]

    Cool bash hack(s)

    This hack ensures that when you log on to a server/pc it will execute a screen session which minimizes the risks of you losing your work in case of network disruptions . Just copy command to your bashrc file and source it. #Best used when you have to work on... [Read More]

    RPi What's My IP

    Do you know what really grinds my gears. Having to boot Raspberry Pi with a new image on and no HDTV to configure and find the IP in order to ssh to it, and have fun with it. Grrrrrrrrr... That's when I decided why not create a script, that when... [Read More]

    Include eps in Latex

    Recently I wanted to include a directed graph in a LaTeX doc­u­ment. unfortunately I couldn't import an svg file to my document. So which meant I had to find another alternative method rather than converting the file to any other image format to avoid rasterization. $ sudo apt-get install inkscape $... [Read More]

    How to mount Google Drive on your Linux(Ubuntu) system

    I have always been a fan of cloud storage as anything can happen on my mechanical harddrive, but now that I have completely migrated to Ubuntu and having to realise that the is no support whatsoever for Google drive applications, I was on a quest to find a working and... [Read More]