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...
Running bash scripts using udev rules

Running bash scripts using udev rules

I’ve been playing with udev rules for a couple of days and I’ve been quite interested in the capabilities it offers. I highly recommend this two documents: Udev Rules examples How to write udev rules This guide reflects the whole process from connecting...
Determine if a string is a panagram with python

Determine if a string is a panagram with python

A pangram is a sentence that contains every single letter of the alphabet at least once. For example, the sentence “The quick brown fox jumps over the lazy dog” is a pangram, because it uses the letters A-Z at least once (case is irrelevant). I’ve...
Find missing number in sequence with python

Find missing number in sequence with python

This code snippet is designed to find the missing number in a sequence of integers with python 2.7. I’ve tested it with several lists in python which are commented at the start of the script. Miguel Ortiz #!/usb/bin/python #miguel.ortiz #s=[-1, -4, -7, -10, -13,...
IPP=P, APP=Error[10]

IPP=P, APP=Error[10]

IPP=P, APP=Error[10] is an error in the UIC TS890 Terminal produced when I tried running a user application in a Production Terminal Mode without certificate. I’ve loaded the application using the UIC development environment with UIC Eclipse on the TS890 device...