Dec
8
2009
xiao
Notes to self because I never remember
To arpspoof, turn on IP forwarding:
echo 1 > /proc/sys/net/ipv4/ip_forward
with Linux (might need su) or more permanently,
in /etc/sysctl.conf
Continue reading
no comments | tags: arp, arpspoof, bsd, forwarding, hack, ip, linux, Mac, spoofing, tcpkill, tcpnice | posted in Tips
Nov
29
2009
xiao
Spooler simply stops every time you try to print or add a printer or something? You can keep restarting it but will never be able to print something? I won’t pretend to know your problem since it depends on potentially so many things but if you have a MacBook, one thing worth investigating is have you been running VMWare Fusion? The ThinPrint drivers of the VMWare Tools seem to be able to cause this problem when you run the same machine in BootCamp mode. Unfortunately, you can’t just uninstall it. Uninstalling VMWare Tools from inside virtual mode seems to solve this problem
no comments | tags: bootcamp, Fusion, Mac, Macbook, print, spooler, ThinPrint, tools, VMWare, Windows | posted in Tips
Nov
14
2009
xiao
There are some 64-bit related issues when using PyQt and Snow Leopard. There’s the way to resolve it by reverting to 32-bits:
- Get the latest versions of PyQt and SIP. You need Qt installed of course.
- Configure SIP using
python configure.py --arch i386
- Configure PyQt using
python configure.py --use-arch=i386
- Finally, make sure your python is running in 32-bit mode because current Qt doesn’t support 64-bit mode. Add
export VERSIONER_PYTHON_PREFER_32_BIT=yes
to your .bash_profile in your home directory
- If your Python still refuses to run in 32 bit mode, try
no comments | tags: 32, 64, i386, Mac, PyQt, Python, Qt, SIP, Snow Leopard | posted in Tips
Apr
19
2009
xiao
This bugged me today so here’s the one line solution
So after applying the Perfect Visor from my previous blog post, this can be even faster to navigate to awkward Mac style directories than remembering the even more awkward Finder key combo to “Go to Folder”
open ~/Library/Logs/CrashReporter/
Because you can tab-complete or to go hidden folders
no comments | tags: apple, directory, finder, Mac, terminal | posted in Tips
Mar
7
2009
xiao
The Visor Terminal, one of my most used hack-features. This guide helps you put your Mac Terminal to the zenith of usability and convenience.

Visor Terminal
The drop-down Quake-style terminal window is extremely convenient to run commands without disrupting the current workflow. Unfortunately the default install is very messy. It needs an open terminal program running in the background which can’t be closed and takes up valuable Dock space. Continue reading
7 comments | tags: AppleScript, blacktree, command line, hack, Mac, perfect, prompt, quake, SIMBL, terminal, visor | posted in Tips