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
"""Keep windows awake. | |
Build an executable with "pyinstaller ./keep_awake.py --noconsole --onefile" | |
Prevent OS sleep/hibernate in windows | |
* Derived from: https://stackoverflow.com/a/57647169/1965288 | |
* code from: https://github.com/h3llrais3r/Deluge-PreventSuspendPlus/blob/master/preventsuspendplus/core.py | |
* API documentation: https://msdn.microsoft.com/en-us/library/windows/desktop/aa373208(v=vs.85).aspx |
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
"""Asyncio serial port logger. | |
Requirements: | |
* pyserial | |
* pyserial-asyncio | |
* aiofiles | |
""" | |
import os |
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 | |
""" | |
Quickly change a ssh config HostName as well as reading and configuring the .ssh/config file. | |
Also supports syncing a pycharm http client env file. | |
""" | |
import fire | |
import shlex |
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
import sys | |
import builtins | |
import time | |
import warnings | |
from functools import wraps | |
def skip_without_screen(func): | |
@wraps(func) | |
def decorated(*args, **kwargs): |
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
""" | |
Check and store the prices of an item. | |
Create a find_prices.json file and run daily to see if prices changed. | |
..code-block:: json | |
{ | |
"Coffee Maker": { | |
"Vendor": { |
OlderNewer