sudo apt update && sudo apt install wireguard-tools wireguard-dkms resolvconf
sudo dkms autoinstall
sudo dkms status- https://github.com/oasis-open/cti-python-stix2/
- https://stix2.readthedocs.io/en/latest/guide/patterns.html
- https://oasis-open.github.io/cti-documentation/stix/examples.html#
- https://gist.github.com/tahaconfiant/4bc2d5a50b37692b3b9c7ab7f8ea782d
- https://oasis-open.github.io/cti-documentation/stix/gettingstarted.html
- https://stix2-elevator.readthedocs.io/en/latest/stix-mappings.html
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
| # The following command works for downloading when using Git for Windows: | |
| # curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
| # | |
| # Download this file using PowerShell v3 under Windows with the following comand: | |
| # Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore | |
| # | |
| # or wget: | |
| # wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore | |
| # User-specific files |
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
| ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKjz5T3ofzG7CkWrYaTDSvkLOWMulDhovBf0Ijq0nB+C zeddee@turnip |
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 | |
| # sh doesn't support arrays | |
| # Helper script that | |
| # 1. SSH-es into remote hosts | |
| # 1. Runs firewall-cmd on remote hosts to open up ports needed | |
| set -e | |
| FW_COMMON="--zone=public --permanent" | |
| APPLICATION=("192.168.1.169") |
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 | |
| ### Small script to get AWS EC2 instance ID from 'kubectl describe node' | |
| alias k=kubectl | |
| while getopts ":n:" opt; do | |
| case ${opt} in | |
| n) NODE=${OPTARG} | |
| ;; |
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 | |
| for i in *.svg; do echo $i; d=$(echo $i | cut -d'-' -f1); date -d @${d} ; done |
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 json | |
| from datetime import datetime | |
| TRACE_ID='45b893611ffd06a3cfb3cbfe93e1f601' | |
| RUN_ID='579c4210-5dc3-4562-b3a6-916e090f6d81' | |
| def get_timestamp(timestamp: str) -> datetime: | |
| return datetime.strptime(timestamp,"%Y-%m-%dT%H:%M:%S.%fZ") | |
| def main(): |
OlderNewer