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 socket | |
import click | |
@click.command() | |
@click.argument('ip') | |
@click.argument('ports', nargs=-1, type=int) | |
def check(ip, ports): |
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 python3 | |
import json | |
import os | |
from uuid import uuid4 as uuid | |
D3_HTML = """ | |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> |
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
Public Domain |
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
ansible-playbook -i "127.0.0.1," -c local playbook.yml |
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
@ECHO OFF && PUSHD "%~dp0" && SETLOCAL | |
set interactive=1 | |
echo %cmdcmdline% | find /i "%~0" >nul | |
if not errorlevel 1 set interactive=0 | |
REM ==================================================================== | |
REM Build: Clean | |
REM ==================================================================== |
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 | |
""" | |
Calculates return on investment over time. | |
Usage: | |
calc_roi [options] | |
Options: | |
-h, --help This message | |
-u, --unit-cost <uc> Cost per panel (USD) [Default: 750] |