This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import logging | |
class S(BaseHTTPRequestHandler): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Notify of Homebrew updates via Notification Center on macOS | |
# Forked from: https://gist.github.com/streeter/3254906 | |
# https://github.com/julienXX/terminal-notifier | |
# https://github.com/vjeantet/alerter | |
# Author: Ivan Sanchez https://todmephis.cf/ | |
# Twetter: https://twitter.com/todmephis | |
# Requires: terminal-notifier, alerter. Install with: | |
# brew install terminal-notifier |