Add hacker's diary shell function