How to increase the size of a Virtualbox VDI disk image on a Macintosh computer. And other useful tips.

How to expand a VDI disk image on a Macintosh computer: http://mithunme.wordpress.com/2013/07/08/how-to-increase-the-disk-size-of-a-ubuntu-vdi-on-mac/. This would also be applicable to a Linux machine. A very useful tip. How to add a standard user to the /etc/sudoers file on a Macintosh computer: http://mithunme.wordpress.com/2013/02/10/adding-a-standard-user-to-etcsudoers-in-mac-os-x/. This is also applicable to a Linux machine. How to…

Read More

Some miscellaneous BASH tricks. Useful tips for all Linux users.

This command shows how to display a listing of files with ls and show line numbers at the same time. homer@deep-thought ~/Desktop/Site % ls | nl 1 back.jpg 2 bejiitas_phpb1 3 bejiitas_phpb1.sql 4 cgi-bin 5 Files.tar.lzma 6 Map07Tufb.zip 7 my2.tar.lzma 8 program.c 9 quake38.jpg 10 sysinfo 11 tekcrazy_2.zip 12 wrap.rarhomer@deep-thought…

Read More

Cool C programs and some very useful code snippets to make programming even more fun.

A very obfuscated C program. typedef unsigned char t;t*F="%c",l[]="|\\/=_ \n](.\0(),*(.(=(}*.)[[*.",N=’\n’,* r;typedef(*H)();extern H Ar;Q(a){return(a|-a)>>31;}H S(c,a){return(H)(a&~c|(int )Ar&c);}extern t*ist;V(t*u){*u^=*u&2^(*u>>7)*185;}Z(t*u,t n){*u-=n;}e(t c,H h){ R(h,Q(* r^c));} I(){r=l +7-4*Q( getchar ()^*l); }R(H h, int c){Ar=S (c,h);- main() ;}P(){r ++;}z() { O(&N);} O(t*c){ printf( F,+*c); }T(){r= "This is not a function\n" ;}w(U){ U=Z(r,8 ); r-=~Q(* r/8-4); return…

Read More

The Linux file-system tree explained.

The Linux file-system tree explained. The standard Linux installation is laid out in various folders that each have a different role to play in the smooth running of a Linux distribution. |-/ |-/bin |-/boot |-/dev |-/etc |-/home/username |-/lib |-/lost+found |-/mnt |-/proc |-/root |-/sbin |-/tmp |-/usr |-/usr/local |-/var|-/ |-/bin |-/boot |-/dev…

Read More

Some Ubuntu and Linux Mint tips and tricks.

Uncompressing rar files.Adding all files in current folder to a zip file.Mounting an improperly shut down Windows XP installation with Knoppix 6.4 Linux.Reading just the start or ending of a file.Some useful bash aliases. Apt errors. To deal with the message you get sometimes telling you that some packages have…

Read More