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 nmap | |
| import time | |
| nm = nmap.PortScanner() | |
| nm.scan('10.0.1.0/24', '22') | |
| # clear screen | |
| sys.stdout.write(u"\u001b[2J\u001b[0;0H") | |
| sys.stdout.flush() | |
| time.sleep(0.2) |
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
| http: | |
| ... | |
| trusted_networks: | |
| - 127.0.0.1 | |
| rest_command: | |
| ha_rest_api: | |
| url: "http://localhost:8123/api/services/{{ service|replace('.', '/') }}" | |
| method: post | |
| content_type: application/json |
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 bash | |
| if [ -z "$1" ]; then | |
| echo "Missing submodule" | |
| exit 1 | |
| fi | |
| sn=$1 | |
| # verify that the folder is not deleted while there are unsaved changes |
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
| ########### Main Dashboard ############### | |
| - badges: [] | |
| cards: | |
| - cards: | |
| - content: | | |
| {% if now().month in (1,) %} | |
| ## January {{ now().day -}} , | |
| {% elif now().month in (2,) %} | |
| ## February {{ now().day -}}, | |
| {% elif now().month in (3,) %} |
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
| ' Hack to workaround the Powershell Console popup running on a Windows Scheduled Task | |
| ' Powershell limitations: https://github.com/PowerShell/PowerShell/issues/3028 | |
| ' | |
| ' Add this file in the same git root directory as the sync.ps1 | |
| ' | |
| Dim shell,command | |
| Dim oFSO : Set oFSO = CreateObject("Scripting.FileSystemObject") | |
| Dim sScriptDir : sScriptDir = oFSO.GetParentFolderName(WScript.ScriptFullName) | |
| command = "powershell.exe -nologo -File " & sScriptDir & "\sync.ps1" |
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 bash | |
| set -eu # do not proceed on error | |
| if [ $# -lt 1 ] || [ "$1" = "--help" ] || [ "$1" = "-h" ]; then | |
| cat <<EOF | |
| Quick command to get a shell inside a running docker container. | |
| Usage: dexec [container_name] [command] |
OlderNewer