Debug initramfs, unpack – repack initrd.img and run-init

Debug initramfs, unpack – repack initrd.img and run-init

When working with a Linux system being loaded through PXE / tftpboot / NFS in a device without hard disk it could happen that we need to understand or fix problems at boot time process, part of it is initramfs. The procedure to unpack an initrd.img is simple: # create...
Grep not parsing the whole file because of NUL

Grep not parsing the whole file because of NUL

Today  I’ve found a nice problem to solve in stack overflow. There was this guy claiming why unix utility grep didn’t parse this file in his Linux. Long story short the file was being somehow “recognized” as binary for grep, because it had four...
Export BASH variables to PHP

Export BASH variables to PHP

I’ve been working in a little project to create HTML representations of certain processes / infrastructure in our company. Because I wanted to make something easy to maintain, I decided to create a unique configuration file with all the paths (variables) for...
Setup terminator default layout with custom commands

Setup terminator default layout with custom commands

I’ve been working with terminator for years and one of the best things you can do is personalize your own layout with custom commands in each window. Be careful, terminator version 1.90 won’t render layouts properly. I’m using terminator 1.91 In my...