Dec 8 2009

Arpspoof, Tcpkill, Tcpnice Tutorial

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,

net.ipv4.ip_forward = 1

in /etc/sysctl.conf
Continue reading


Nov 29 2009

Windows 7 Spooler Continuously Stops on Every Print Action

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


Nov 14 2009

PyQt and Snow Leopard

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:

  1. Get the latest versions of PyQt and SIP. You need Qt installed of course.
  2. Configure SIP using
  3. python configure.py --arch i386
  4. Configure PyQt using
  5. python configure.py --use-arch=i386
  6. 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

  7. If your Python still refuses to run in 32 bit mode, try
    arch -i386 python

Apr 19 2009

Open Current Terminal Directory in Finder

xiao

This bugged me today so here’s the one line solution

open .

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


Mar 7 2009

The Perfect Visor – Reborn!

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

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