Category Archives: hack

PDB style function backtrace in python using Inspect module.

A while back I had a conversation with a friend of mine, which went something like this(with some paraphrasing). Friend : Hey, is there a way in python to display the function calls which end up calling a certain function, … Continue reading

Posted in code, hack | Tagged , , , , , , , , | Leave a comment

notify.sh: Get notified when shell scripts go wrong.

TLDR: Project Summary: Can be used to automatically suspend execution of a shell script if runtime error occurs, followed by notifying the user who started the script. The suspended script can be easily resumed later by the user. This is … Continue reading

Posted in code, hack | Tagged , , , , , , | Leave a comment