Using SIW to Find Hardware in Windows

I’ve often resorted to loading up a Linux livecd and running “lspci” just to get an idea of what hardware is in a box. Let’s face it, even if box manufacturers do provide the drivers you need, that model may have shipped with one of 4 different NICs, video cards, etc. So it used to be I had to run a linux cd and the lspci command to get the PCI devices table but not anymore…

Continue reading “Using SIW to Find Hardware in Windows”

Useful find Commands

Recursive, multi-file find and replace with grep and xargs for performance:


[sourcecode language=’bash’]grep -rl ‘what_to_find’ ./ | xargs sed -i ‘s/what_to_find/what_to_replace_with/g'[/sourcecode]

PutĀ  a not in front of that expression:

[sourcecode language=’bash’]find ./ ! -type d[/sourcecode]

Escape wildcards to avoid the shell expanding them:

If you just quote it; “*.avi” you can often run into trouble.

[sourcecode language=’bash’]find ./ -name \*.avi[/sourcecode]

Prune empty directories

[sourcecode language=’bash’]find ./ -depth -type d -empty -exec rmdir -v {} \;[/sourcecode]


Disable Recent Documents in Gnome 2.22.3

So even Windows lets you disable the Recent Documents feature, but for some reason Gnome really wants to remember what files you’ve been messing with. Personally I never use this menu item (usually under Places in the Gnome Main Menu) and find it to be a bit of a privacy concern.

Surprisingly enough there are no documented settings for Recent Documents, not even something in gconf-editor, so people have been going stone age to prevent this functionality. In the past you could change permissions for the file that stores the data in your home directory, but it seems in later versions of Gnome the following is the current method of choice.

Continue reading “Disable Recent Documents in Gnome 2.22.3”