(menu-bar-mode -1) (tool-bar-mode -1) (setq blink-matching-paren nil) (show-paren-mode -1) (transient-mark-mode -1) (setq auto-mode-alist (cons (cons ".*" #'fundamental-mode) nil)) (setq truncate-partial-width-windows nil)
Contributed by Jon Webb
(setq isearch-lazy-highlight nil)To allow mark region highlighting with a more rational color scheme (this assumes reverse video (white on black), which is -r in the Emacs CLI or -rv in the xterm CLI if you run emacs -nw):
(transient-mark-mode 1) (set-face-foreground 'region "black") (set-face-background 'region "white")To turn off the audible beep (you can get the same effect with the -vb CLI argument for xterm):
(setq visible-bell t)And the all-important cutting back on auto-save madness (this gets Emacs down to just the ~ file and the one live # file):
(setq auto-save-default nil) (setq auto-save-interval 0) (setq auto-save-list-file-name nil) (setq auto-save-list-file-prefix nil)
Contributed by Mike Webb
# fdisk /dev/hda Command (m for help): p Disk /dev/hda: 2161 MB, 2161410048 bytes 128 heads, 63 sectors/track, 523 cylinders Units = cylinders of 8064 * 512 = 4128768 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 218 878944+ 6 FAT16 /dev/hda2 219 489 1092672 83 Linux /dev/hda3 490 523 137088 82 Linux swap Command (m for help): qFrom "Units =" line, (8064 / 2) = 4032 kilobytes / cylinder.
# dd if=/dev/zero of=/dev/hda1 bs=1024 count=878976Do this before installing Windows, so all those unwritten zeroes compress nicely.
# dd if=/dev/hda1 bs=1024 count=878976 |gzip -9 >/tmp/image_hda1.dd.gz
# gunzip -c /tmp/image_hda1.dd.gz |dd of=/dev/hda1 bs=1024 count=878976
Contributed by Jeff Mallatt
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
CompletionChar <-- 9 (REG_DWORD)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
AutoRun <-- "%HOMEDRIVE%%HOMEPATH%\newshell.bat" (REG_SZ)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
REG_SZ's named for app; value is command line.
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet###\Services\lanmanworkstation\parameters
enableplaintextpassword <-- 1 (REG_DWORD)
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet###\Services\Cdrom
Autorun <-- 0 (REG_DWORD)
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet###\Control\FileSystem
Win95TruncatedExtensions <-- 0 (REG_DWORD)
HKEY_CURRENT_USER\Control Panel\Desktop
MenuShowDelay <-- "200" (REG_SZ)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
EnableBalloonTips <-- 0 (REG_DWORD)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz
NoRun <-- 1 (REG_DWORD)
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet###\Control\Session Manager\Environment
REG_SZ's and REG_EXPAND_SZ's named for variable name; value is value.
Contributed by Jeff Mallatt
sed '/^$/d'
tr -d '\r'
ls -Q
awk '{sum=sum+$5}END{print sum}'
strace -o my-trace.out command
/sbin/fuser file
reset
cp /foo/bar/something.txt{,.bak}
for n in * ; do echo $n ; echo $n $n ; done
Ctrl-R
Contributed by Jeff Mallatt
runas /profile /user:user "cmd"
Contributed by Jeff Mallatt
You need to tell ls to use the C locale, by setting the "LC_ALL" environment variable to "C":
export LC_ALL=C
You can do this for ls alone by using an alias:
alias ls='LC_ALL=C ls'
Contributed by Jeff Mallatt
"C:\"),
there is a hidden file named "boot.ini". In its
[operating systems] section is a line that looks something
like:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional" /fastdetect
Duplicate that line, change the "name" and add the
"/numproc=1" argument. E.g.:
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Professional - uP" /fastdetect /numproc=1
Contributed by Jeff Mallatt
about:config
Some of the more useful (to me) items are:
| Preference Name | Values | Description |
|---|---|---|
browser.chrome.favicons |
true/false |
Whether or not to show "favorite" icons. |
browser.chrome.site_icons |
true/false |
Whether or not to show "site" icons. |
browser.chrome.toolbar_tips |
true/false |
Whether or not to show toolbar tips. |
browser.startup.page |
integer (0 = don't load) |
Whether or not to load home page at startup. |
image.animation_mode |
normal, once |
How many times to show an animated image. |
Contributed by Jeff Mallatt
Tips and Tricks
/
15 Allen St., No. 2
Arlington, MA 02474-6809 (781) 641-3327 Last Updated: 12 Apr 2007 |
[ validate ] |