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)
let g:quickrun_config = {} | |
let g:quickrun_config.markdown = { | |
\ 'outputter' : 'null', | |
\ 'command' : 'open', | |
\ 'cmdopt' : '-a', | |
\ 'args' : 'Marked', | |
\ 'exec' : '%c %o %a %s', | |
\ } |
--- | |
bitbucket: | |
username: glidenote | |
password: !!hogemoge!! |
# log output | |
bind-key H pipe-pane 'cat >> $HOME/.tmux/tmux-#W.log' \; display-message 'Started logging to $HOME/.tmux/tmux-#W.log' | |
bind-key h pipe-pane \; display-message 'Ended logging to $HOME/.tmux/tmux-#W.log' | |
require 'formula' | |
class Ncurses < Formula | |
url 'http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz' | |
homepage 'http://www.gnu.org/software/ncurses/' | |
md5 '8cb9c412e5f2d96bc6f459aa8c6282a1' | |
# depends_on 'cmake' | |
def install |
# open current directory in Finder | |
alias f='open .' | |
# cd to the path of the front Finder window | |
cdf() { | |
target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'` | |
if [ "$target" != "" ]; then | |
cd "$target"; pwd | |
else | |
echo 'No Finder window found' >&2 |
#!/bin/sh | |
syntax_errors=0 | |
error_msg=$(mktemp /tmp/error_msg.XXXXXX) | |
if git rev-parse --quiet --verify HEAD > /dev/null | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object |
check_ssl() { | |
openssl s_client -connect $1:443 -showcerts << EOF | |
HEAD / HTTP/1.0 | |
EOF | |
} |
colorscheme solarized | |
set background=dark | |
let g:solarized_termcolors=256 | |
let g:solarized_termtrans=1 |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'cinch' | |
bot = Cinch::Bot.new do | |
configure do |c| | |
c.server = "irc.freenode.net" | |
c.channels = ["#hogemoge"] | |
c.nick = 'hayashi_bot' |