Clean Mac OSX '.DS_Store' and '._*' files

21 février, 2011 (09:06) | Autres

$ find . -name .DS_Store -exec rm -v {} \;
$ find . -name ._* -exec rm -v {} \;

To prevent Mac OSX from creating these files on network storage, execute the following command in Mac OSX terminal:

defaults write com.apple.desktopservices DSDontWriteNetworkStores true

http://hints.macworld.com/article.php?story=2005070300463515

Force fsck on boot using '/forcefsck'

5 janvier, 2011 (09:35) | Debian / Linux

By creating /forcefsck file you will force the Linux system (or rc scripts) to perform a full file system check.

Create a file called forcefsck:

# touch /forcefsck

Now reboot the system:

# reboot

Inversely, you can force a fast boot:

# touch /fastboot

From http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot…

Export display (for controlling rhythmbox)

2 janvier, 2011 (14:30) | Debian / Linux

In '.bashrc'

export DISPLAY=:0.0
export `grep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -o rhythmbox)/environ 2>/dev/null` >/dev/null

Then:

$ rhythmbox-client --next
$ rhythmbox-client --previous
$ rhythmbox-client --volume-up
...

Faceplouc

7 décembre, 2010 (11:17) | Autres