Monthly Archives: May 2010

Small script to build Linux Kernel

Make sure we have busybox, otherwise install it:sudo apt-get install busyboxAnd then save the following lines to o file and execute it:VERSION=2.6.34-p4makemake modules && sudo make modules_installsudo make installsudo mkinitramfs -o /boot/initrd.img-${VERSION} ${VERSION} Advertisements

Posted in Uncategorized | Leave a comment

How to calculate tax

The following code is to calculate tax amount we will pay for tax year 2010. #include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>typedef struct { double min; double max; double taxPct;} Bracket_t;typedef enum { single, married_jointly, married_separately, head_of_household} FilingStatus_t;// married filing separatelyBracket_t BracketTable2008[] … Continue reading

Posted in Uncategorized | Leave a comment