This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/bin/bash | |
# atlassian-heap-dump.sh - dump a heap using GDB for a crashed application | |
# Accepts a single argument: the PID of the JVM | |
# Author: James Gray (jgray@atlassian.com) | |
# Copyright Atlassian P/L | |
# License: MIT | |
# Are we root? | |
if [ $UID -ne 0 ]; then |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/bin/bash | |
_opts () { | |
perl -ne ' | |
print if s/^.IP .\\fB\\-/-/ and s/\\(f(P|I|B|R)|)|".*//g; | |
print if s/^.IX Item .\-/-/ and s/"//g; | |
print if s/^.It Fl /-/;' | |
} | |
_man_generic() { |