A simple pyhs2 example for connecting to HiveServer2 from Python, running a query, and fetching the results.
Clean Up Leftover dmraid Metadata
If a disk keeps getting claimed by LVM because of stale dmraid metadata, disabling and clearing the old RAID signature can help.
Install Google's protobuf with easy_install
If easy_install cannot find protobuf's setup script, try installing it again with an explicit allowed host.
Fix "The resulting partition is not properly aligned for best performance"
How to choose a better starting sector in parted to avoid partition alignment warnings on large disks.
Why the RabbitMQ guest User Cannot Log In Remotely
RabbitMQ restricts the default guest user to localhost by default; here is how to change it, and why it is risky.
Get the Number of Running Processes in a Python Pool
A simple way to inspect a multiprocessing Pool and estimate how many tasks are still running by checking pool._cache.
Use Third-Party Python Libraries in Hadoop Streaming
If a Hadoop Streaming Python job cannot import a third-party library, pass PYTHONPATH through -cmdenv.
C Code for Reproducing a Segmentation Fault
A tiny shared library that crashes on purpose, useful for testing how Python behaves when a ctypes-loaded C library segfaults.
insecure_pssh: Parallel SSH with Per-Host Passwords
A modified version of pssh that supports storing a different password for each host in the host list file.
Fix GPG Encryption Failures in Crontab
When GPG works in a shell but fails in cron, adding --no-tty and --homedir usually fixes it.