Skip to content

Instantly share code, notes, and snippets.

View krlittle's full-sized avatar
🤓
Always be learnin'

Ken Little krlittle

🤓
Always be learnin'
View GitHub Profile
@krlittle
krlittle / unblock_port.bat
Created April 16, 2020 14:51
[Windows batch] - so I don't have to remember how to unblock a port in Windows
ECHO OFF
set /p port=Which port is blocked?
netstat -ano | findstr %port%
set /p pid=What is the pid of the process you would like to terminate?
taskkill /pid %pid% /F
PAUSE
@krlittle
krlittle / call_list_printer.py
Last active March 1, 2018 19:17
[Python] - a simple callable function to print out items in a list
import list_printer
days = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]
list_printer.print_items_in_list(days)