Debugging Wifi Connectivity and Routing

by damonp on June 12, 2010

Sometimes wifi connectivity issues can be massaged a little by getting a little pushy with it… turn your internal airport card off. Leave it off for a minute then turn it back on and see if by forcing it to attempt to re-connect to your local network.  Oftentimes this will clear up minor issues.

Check your routing tables:

netstat -nr

Get just the default route:

netstat -nr | grep default

In action:

[root@howie ~]$ netstat -nr | grep default
5:default            192.168.1.1        UGSc           11        5     en1

Popularity: 2% [?]

{ 0 comments }

Cloudy Costa Rican Sunset

by damonp on June 2, 2010

Looks like it’s going to rain tonight.

Popularity: 3% [?]

{ 0 comments }

iPhone Goodreader and Email

28 April 2010

Goodreader is simply the best PDF / document reader around for the iPad. It allows you to download documents in a dozen different ways and store them locally on your device. Another great feature is the ability to directly email these as attachments from inside Goodreader. Unfortunately, said feature is limited somewhat by the limitations [...]

Read the full article →

Enable Sendmail for PHP mail() in OSX

25 February 2010

Since this didn’t dawn on me for thirty minutes while I pursued other avenues… In /etc/hostconfig add/edit a line like: MAILSERVER=-YES- Note to self: Look for more OSX server administration clients.

Read the full article →

Apache Log Grepping

14 September 2009

Nothing beats a full stats package, but with a little grepping and a logfile and we can figure out some quick statistics. Get only hits coming from Google.com/search: grep ‘google.com/search’ access_log | head -1 Extract only the referrer field: grep ‘google.com/search’ access_log | head -1 | awk ‘{print $11}’ Get the search terms only: grep [...]

Read the full article →

Find setuid root Files

10 September 2009

Find all setuid / setgid files owned by root:
find / -user root -type f \( -perm -4000 -o -perm -2000 \) -exec ls -ld ‘{}’ \;

Find all setuid / setgid files owned by any user:
find / -type f \( -perm -4000 -o -perm -2000 \) -exec ls -ld ‘{}’ \;

Read the full article →

Debugging HTTP Headers with cURL

31 August 2009

curl -I http://damonparker.org More info on cURL

Read the full article →

Back

29 August 2009

After nearly two years with not much to say, I decided to pick up the blog again. It was a long and winding journey, this time in between. Maybe more on that later. I should be updating the pages of the blog with current info about myself and my projects over the next few weeks. [...]

Read the full article →

DNS, Lookupd and OS X

15 November 2007

Pre-Leopard the command to force OS X to flush and reload it’s DNS cache was: sudo lookupd -flushcache In Leopard, lookupd no longer exists. Instead force a DNS cache refresh with: sudo dscacheutil -flushcache

Read the full article →

OSX Scrollbars Top and Bottom

5 November 2007

In Terminal: defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth

Read the full article →