Skip to content

Instantly share code, notes, and snippets.

@White2001Offl
White2001Offl / Whatthecommit
Created September 15, 2021 07:19 — forked from seungwon0/Whatthecommit
Random commit message generator
#! /bin/sh
#
# whatthecommit - Random commit message generator
#
# Show random commit message from http://whatthecommit.com/.
#
# Seungwon Jeong <seungwon0@gmail.com>
#
# Copyright 2011 by Seungwon Jeong
@White2001Offl
White2001Offl / non_graceful_shutdown.py
Created April 4, 2021 04:23 — forked from clchiou/non_graceful_shutdown.py
Python ThreadPoolExecutor (non-)graceful shutdown
#!/usr/bin/env python3
import concurrent.futures.thread
import sys
import time
from concurrent.futures import ThreadPoolExecutor, as_completed
def remove_file(path):
print('Removing file %s' % path)