Skip to content

Instantly share code, notes, and snippets.

@Ethanhackett
Ethanhackett / GitFit
Last active June 4, 2020 10:44
GitFit is a Git Hook that randomly selects an Exercise and Reps with an option to challenge a fellow co-worker.
#!/usr/bin/env python
# NAME: GitFit
# AUTHOR: @EthanHackett www.ethanhackett.com
# PURPOSE: Get engineers to be more active by adding exercises to daily git processes.
# INSTALL: Place this file in local git repo in hooks folder .git/hooks/this-file
# NOTES: For more information on Git visit https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
import ctypes # An included library with Python install.
import random # Includes random function for randomly picking Numbers & Exercises,