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
parse_git_branch() { | |
OUT=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
if [ -n "$OUT" ]; then | |
echo $OUT | |
else | |
echo 'N/A' | |
fi | |
} | |
parse_node_version(){ |
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.7 | |
import os | |
from datetime import datetime,timedelta | |
from yeelight import Bulb,Flow,BulbException | |
from yeelight.flows import night_mode | |
# MAC Address target devices | |
TARGET_DEVICES = [ | |
'00:00:00:00:00:00', |
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.7 | |
import sys | |
import time | |
from datetime import datetime,timedelta | |
from ftplib import FTP | |
from urllib.request import urlretrieve | |
DEBUG = True | |
FTP_HOST = "192.168.X.X" | |
FTP_DEFAULT_FOLDER = 'Data' |