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 bash | |
# | |
# | |
# TODO: hostname | |
info() { | |
echo -e $( date "+[ %T.%3N ] ") "\033[01;32m[INF]\033[00m ${@}" | |
} |
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 bash | |
# | |
# AUTHOR: Daniel Leybovich | |
BASE_URL="http://www.oracle.com" | |
PLATFORM="Linux x64" | |
ARCHIVE="tar.gz" | |
# get link to download page | |
SUFFIX=$(curl "${BASE_URL}/technetwork/java/javase/downloads/index.html" 2>/dev/null | grep 'name="JDK8"' | sed -nr 's/.*href="([^"]+)".*/\1/p') |
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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
import json | |
from datetime import date | |
NEWLINE, DELIMITER = '\x01\n', '\x02' | |
def json_serial(obj): |