#### Kill all background jobs `kill $(jobs -p)` #### Run unit-testing and time all procedures `pytest --durations=0` #### Profiling of unittests ``` $ python -m cProfile -o profile $(which py.test) ``` Afterwards, in python ```python import pstats import sys with open('readable_format.txt', 'w') as stream: stats = pstats.Stats('profile', stream=stream) stats.print_stats() ``` Reference from [a post on stackOverflow](https://stackoverflow.com/questions/13532531/python-stats-how-do-i-write-it-to-a-human-readable-file) #### To pull changes from another branch and sync with my own Get the base branch: ``` $ git checkout v1 ``` Pull in any changes to make sure you have the latest version ``` git pull ``` Check out your branch ``` git checkout v1_adminui ``` Rebase your changes on top of the v1 changes ``` git rebase v1 ``` Optionally push your rebased branch ``` git push origin v1_adminui ``` Reference from [a post on StackOverflow](https://stackoverflow.com/questions/31471790/bitbucket-syncing-branch-with-another-branch?lq=1)