May 29 2008

Adding Swap Space to a Linux box

First make the swapfile (This example adds 256mb):

# dd if=/dev/zero of=/mnt/swapfile1 bs=1024 count=256k
# mkswap -c /mnt/swapfile1

Now attach the file to existing swap space:

# swapon /mnt/swapfile1

Bam! you’re done =)

.: Adam


May 29 2008

Sheesh…

This has to be one of the most expensive business trips I’ve ever taken. Here’s a run down:

- $80 for a new phone because I lost mine the night before I had to leave for San Francisco

- $50 movies to watch on the plane (7 hour plan ride)

- $40 cab ride to the airport (didn’t have any vouchers to give me, so I can’t expense it)

- $85 power cord for my mac (left mine at home)

- $10 razor (left mine at home)

- $100 new shoes (my only presentable pair were covered in mud from a weekend of paintball

- $55 jacket. It was way colder here than I was expecting and needed something to keep warm for walking around the city

- $10 taxi to get me to the place to buy the jacket on my lunch break

- $8 subway lunch (register was broke, so no receipt)

That’s it so far, but I still got 2 days left here =)

.: Adam