Skip to content

Instantly share code, notes, and snippets.

View jgentil's full-sized avatar
🧙‍♂️
jpg

Jon-Pierre Gentil jgentil

🧙‍♂️
jpg
  • Eden Prairie, MN
View GitHub Profile
@jgentil
jgentil / keybase.md
Created September 25, 2018 20:43
keybase.md

Keybase proof

I hereby claim:

  • I am jgentil on github.
  • I am zenethian (https://keybase.io/zenethian) on keybase.
  • I have a public key ASB-67XmUpr0IURDegQwOtGgvk099dzYfFl5zZZY9BbaNwo

To claim this, I am signing this object:

@jgentil
jgentil / safeshutdown.py
Last active June 11, 2026 18:50
Safely Shutdown a Windows Console process by name
### Pass an executable name to this and it will terminate it
### sending a Control-C event to it. It must be running in
### a tradiditonal Windows console host window.
### For Windows 10+
### Requires Python 3.9+ and no dependencies.
import ctypes
from ctypes import wintypes
import sys
import time