Debugging Linux
- Kernel command line to send printk's to serial port: console=ttyS1,9600 earlyprintk=serial,ttyS1,9600 (adjust tty and baud rate as necessary)
- IOMMU kernel command line settings: intel_iommu=on intremap=off iommu=pt
- Dump printk's to console: echo 8 > /proc/sys/kernel/printk
- Flush the buffer cache: echo 3 > /proc/sys/vm/drop_caches
Using 4K displays with Windows 7
- To make the majority of the text readable:
-- Set the font size scaling to "custom" and 140
- To make Xming fonts readable:
-- Modify the shortcut used to launch xming (right-click -> properties), and add "-dpi 125" to arguments
Dealing with Microsoft Excel
- Allow opening multiple sheets in separate windows, and double clicking on files to open them:
-- Modify the registry as follows:
- HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open\command:
-- (default): Change "C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE" /dde to "C:\Program Files (x86)\Microsoft Office\Office14\EXCEL.EXE" /e "%1"
-- command: Either delete or change /dde to /e "%1" as well
- Delete HKEY_CLASSES_ROOT\Excel.Sheet.8\shell\Open\ddexec
- Repeat above procedure for HKEY_CLASSES_ROOT\Excel.Sheet.12\shell\Open\
X fonts with Mac OSX
Use the Andale Mono font with [x]emacs running via X11
Plan A:
- Install the following fink packages: applesystemfonts and msttcorefonts
- Run xfontpath enable
Plan B:
- cp /Library/Fonts/Andale Mono.ttf /usr/X11R6/lib/X11/fonts/TTF
- xset fp+ /usr/X11R6/lib/X11/fonts/TTF/
- xset fp rehash
- xfontpath enable
Emacs
Use this .emacs init file
Cscope
Grab the cbrowser gui interface here
Rules to generate cscope database automatically from a makefile here
Tramp syntax for tunnelling emacs sessions over SSH
emacs /username@server:path
|