Find how to check and tune your ext filesystem here.
Category Archives: Scripts
How to set up Windows 7 with Bitlocker and Linux multiboot PC
If you have to keep Bitlocker-encrypted windows and some Linux distro safely side by side on the same PC, check out this how to. It does not matter do you want Linux to be encrypted too, both options are also described.
How to use RPi & SIM900 GSM/GPRS add-on to open the gates
If gate to your parking place opens up with a phonecall from your cellphone, bundle up with your buddies, set up RPi and save some money. Read more how to call out when you call in here.
Few commandline examples
As my head is not capable to remember everything, I started to write down useful information about the commandline tools I use. So, if you are wondering how to split video or change its framerate without re-encoding or how to jump between apt/dpkg/yum/rpm or manipulate pdf files or something else, check out this page for starters.
Calculating Pi (π) with bash
I just created this post for people who ended up in this site searching for ways to get pi value with bash shell. There are multiple ways for calculation but I like following:
1. make sure you have package bc installed. It comes from package named “bc” on debian.
2. run command below where parameter scale is number of decimal places after comma.
export BC_LINE_LENGTH=0;bc -lq <<< "scale=1000;4*a(1)"
Alternatively you could make a shellscript like this:
#!/bin/bash
DP=1000
export BC_LINE_LENGTH=0
pi=`bc -lq <<< "scale=${DP};4*a(1)"`
echo ${pi}
exit 0
Environment variable BC_LINE_LENGTH with 0 value is needed to disable result line splitting with backslash and newline.