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 |
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): |