Skip to main content


Showing posts from July, 2017

My favourite alias in .bashrc on Ubuntu

Colorizing and handling system/kernel logs alias logread='cat /var/log/syslog | ccze -A' alias logclear='sudo truncate -s 0 /var/log/syslog' alias logsave='cat /var/log/syslog | ccze -h > ~/log.html' alias dmesgread='dmesg | ccze -A' alias dmesgclear='sudo dmesg -c' alias dmesgsave='dmesg | ccze -h > ~/log.html' You will have to install ccze (sudo apt-get install ccze)

Replacing batteries in Black and Decker DP240 2.4V Direct-Plug Rechargeable Screwdriver

I have owned a Black and Decker DP240 Cordless Electric Screwdriver for 5 years now. Its battery had started losing its capacity to hold charge, so I looked online to see if it was possible to change its batteries. I couldn't find any blog/DIY guide on which batteries to replace the internal ones with and how to go about pry open the screwdriver and putting it back. So here are some photos outlining how I changed the batteries in mine and turned it into new. To open the screwdrive, you will need a set of "Torx Pin 6 lobe" screwdriver set. You cant use regular torx screwdriver bits. You need ones with holes in the center of the bits so that the center pin on the screw can fit into those holes. You can buy just a set of just the bits here. Torx pin 6 lobe Screwdrivers to open the shell Screwdriver with the shell opened It seems that the screwdriver comes with two AA size 1.2V NiCd 800 mAh cells installed I replaced the 800mAh batteries with 2550 mAh