Image of Linux Kernel Development (3rd Edition)
Image of Beginning Google Maps API 3
Image of XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer)
Image of Android Wireless Application Development

Using PCI.IDS Database to Show PCI Vendor and Device Information in UEFI Shell

In this post, I describe a UEFI shell utility that I developed that displays PCI information including vendor and device descriptions from the PCI.IDS database.

Examining Intel Microcode in Lenovo Firmware Updates

This post demonstrates how to extract Intel microcode updates from a Lenovo firmware update using UEFItool and subsequently use an 010 Editor template to extract useful information from the extracted Intel microcode updates.

Sudo and Globbing

The question is how we can use the sudo utility to display a list of files in a directory to which we have absolutely no Unix filesystem privileges Consider the following directory and files contained therein: $ ls -l total 4 drwxrwx—. 2 root root 4096 May 22 21:14 demo $ su Password: XXXXXXXX # ls -l demo total 0 -rw-r–r–. 1 root root 0 May 22 21:14 file1 -rw-r–r–. 1 root root 0 May 22 21:14 file2 -rw-r–r–. 1 root root 0 May 22 21:14 file3 # exit exit Note the directory permissions are 770 and the user and

Gzip v Zip: Determing Which Type Of Archive

Sometimes it is different to easily tell which type of zipped archive you are dealing with because the zipped archive has an incorrect extension or no extension at all. Here is how to tell which you are dealing with: Zip file header: $ od -h zipped-file |head 0000000 8b1f … Gzip file header: $ od -h zipped-file |head 0000000 4b50 0403 …  

Remove Color Code Escape Sequences

Here is a simple way using sed to remove special characters such as color codes and other escape sequences from each line in a log file or the output from a utility like screen. $ sed -r “s/x1B[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g” If you wish to see the actual escape sequences, one way is to use the -r or -R options to the less utility -r or –raw-control-chars Causes “raw” control characters to be displayed. The default is to display control characters using the caret notation; for example, a control-A (octal 001) is displayed as “^A”. Warning: when the -r option is used, less