Posts

Create Keyboard Shortcut with Razer Blackwidow

First, enable macro keys on Linux . Then, install xmacro: sudo apt-get install xmacro Record a macro: xmacrorec2 > test.macro Wrap it up in test.sh: #!/bin/bash cat test.macro | xmacroplay -d 0 $DISPLAY > /dev/null 2>/dev/null Finally, go to System Settings/Keyboard/shortcuts to create a custom shortcut to run test.sh.

Find Out Which Package A File Belongs To

Install apt-file: sudo apt-get install apt-file Update: sudo apt-file update Search: apt-file search easy.h

Set Default Magnet Link Handler for Chrome on Ubuntu 12.04

To use Deluge gvfs-mime --set x-scheme-handler/magnet deluge.desktop To use qBittorrent gvfs-mime --set x-scheme-handler/magnet qBittorrent.desktop

How to Change Environment Variable Using Registry Key

See kb104011 You can modify user environment variables by editing the following Registry key: HKEY_CURRENT_USER \ Environment You can modify system environment variables by editing the following Registry key: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Session Manager \ Environment Note that any environment variable that needs to be expanded (for example, when you use %SYSTEM%) must be stored in the registry as a REG_EXPAND_SZ registry value. Any values of type REG_SZ will not be expanded when read from the registry. Note that RegEdit.exe does not have a way to add REG_EXPAND_SZ. Use RegEdt32.exe when editing these values manually. However, note that modifications to the environment variables do not result in immediate change. For example, if you start another Command Prompt after making the changes, the environment variables will reflect the previous (not the current) values. The chan

Speed Up Windows 7 Shutdown

Install Microsoft Windows Performance Toolkit and run the following the collect performance data xbootmgr -trace shutdown -noPrepReboot -traceFlags BASE+DRIVERS+CSWITCH+POWER -resultPath C:\trace After restart, extract shutdown related information from the trace xperf /tti -i "shutdown_BASE+DRIVERS+CSWITCH+POWER_1.etl" -o shutdown_info.xml -a shutdown

Skype Video on Ubuntu

Logitech USB: $ lsusb ... Bus 001 Device 004: ID 046d:08d9 Logitech, Inc. QuickCam IM/Connect Bus 001 Device 005: ID 046d:c31d Logitech, Inc. Bus 001 Device 006: ID 046d:c05b Logitech, Inc. It works with v4l2 sudo gstreamer-properties But Skype 2.2Beta failed to show video. The workaround: LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so /usr/bin/skype

MacBook Pro F11 and F12 on Ubuntu 11.10

After installation, all function keys work out of box except for F11 and F12, which are used for mouse emulation by default. To get those keys back: sudo apt-get remove mouseemu