Linux tips! (useful fortune)

debian: Which package architecture am I using?
$ dpkg --print-architecture
armhf
sysctl,minidlna: increase inotify watches
$ grep inotify /etc/sysctl.conf
fs.inotify.max_user_watches = 10000

# sysctl -p /etc/sysctl.conf
disk,smart: Get your disk's temperature using SMART
# smartctl  -a /dev/sda | grep Temperature_Celsius
194 Temperature_Celsius    0x0022 039 053 000  Old_age  Always - 39 (0 15 0 0 0)
disk,raid: Get some details about your RAID array
mdadm --detail /dev/md0
photo: remove all exif info from photo
exiftool -all= DSC_0017.jpg
git,quilt: publish set of quilt patches against git repo
quilt push -a
git add somefiles && git commit -m "some message"                    x N
git format-patch --cover-letter --thread -s f107ff81e5
git reset --soft f107ff81e5
quilt pop -a
git reset f107ff81e5
git: create set of patches for submission, with cover letter and proper threading
git format-patch --cover-letter --thread -s f107ff81
git: First kernel version to contain a given commit.
git tag --contains 
v2.6.35
v2.6.35-rc6
v2.6.36
v2.6.36-rc1
v2.6.36-rc2
...
fs: Need some fast file system: extend shm
$ mount -o remount,size=2G /run/shm/
groups: Just added yourself to a new group; no need to reboot
$ sudo adduser arno dialout
$ newgroup
apt: Prevent apt to use pdiffs
# cat > /etc/apt/apt.conf
Acquire::Pdiffs "false";
^D