You can use strace on a specific pid to figure out what a specific process is doing, e.g.:
strace -fp <pid>
You might see something like:
select(9, [3 5 8], [], [], {0, 999999}) = 0 (Timeout)
| {-# LANGUAGE BangPatterns #-} | |
| --module Data.Huffman where | |
| module Main where | |
| import Data.Char (intToDigit) | |
| import Data.List (insertBy, foldl', sortBy) | |
| import Data.Maybe (fromJust) | |
| import Data.Ord (comparing) | |
| import qualified Data.Binary.BitPut as P | |
| import qualified Data.Binary.Strict.BitGet as G |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
This article is now published on my website: Prefer Subshells for Context.
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer
Thanks for stopping by!
| # to execute this gist, run the line bellow in terminal | |
| \curl -L https://raw.github.com/gist/3875946/install_source_code_pro.sh | sh |
| #!/bin/bash | |
| # | |
| # Install Postgres 9.2 on a clean Ubuntu 12.04 | |
| """ | |
| LC_ALL issue | |
| comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file. | |
| sudo apt-get install language-pack-en-base | |
| sudo dpkg-reconfigure locales | |
| comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file. |
| # -*- coding: utf-8 -*- | |
| import sys | |
| import os | |
| import time | |
| import codecs | |
| import logging | |
| import subprocess | |
| import tempfile | |
| from functools import wraps | |
| PYSIDE = False |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats