This file contains hidden or 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 sh | |
# | |
# Explain a given shell command using explanation from explainshell.com | |
# | |
# Usage: explainshell <command> | |
# | |
# Credit: Derived from https://github.com/benjamine/explain.sh | |
# License: MIT | |
URL="$*" |
This file contains hidden or 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 python | |
import os | |
import sys | |
import platform | |
import tempfile | |
from zipfile import ZipFile | |
if platform.system() == "Windows": | |
import win32api, win32con, win32process |
This file contains hidden or 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
from functools import wraps | |
import inspect | |
# This defines a decorator that can be used on an instance method, to stop it from being inherited by child classes | |
class _private_method(object): | |
def __init__(self, decorated): | |
self._decorated = decorated | |
def __set_name__(self, owner, name): | |
@wraps(self._decorated) |
NewerOlder