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
''' | |
Script to paginate and fetch entire log stream | |
USAGE | |
* Make sure to set the correct aws region environment variable and have the creds loaded | |
* Replace GROUP_NAME and STREAM_NAME variables | |
* Untested |
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
^+v::Send {Raw}%Clipboard% |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: >- | |
This template creates 2 Windows Active Directory Domain Controllers into private subnets in separate Availability Zones inside a VPC. The | |
default Domain Administrator password will be the one retrieved from the instance. For adding members to the domain, ensure that they are launched | |
using the domain member security group created by this template and then configure them to use the AD instances fixed private IP addresses as the DNS | |
server. **WARNING** This template creates Amazon EC2 Windows instance and related resources. You will be billed for the AWS resources used if you | |
create a stack from this template. (qs-1qup6rae5) | |
Metadata: | |
cfn-lint: | |
config: |
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
# SHORCUTS | |
# Ctrl - T new vertical pane | |
# Ctrl + U new hroizontal plane | |
# Alt + P kill pane | |
# Alt + W kill window | |
# Alt + P kill session | |
# Page Up / Page Down - shift windows | |
# 0 is too far from ` ;) | |
set -g base-index 1 |
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/python3 | |
# you might want to run python3 -m pip install dnspython before running this script | |
import sys | |
import dns.query | |
import dns.zone | |
import dns.resolver | |
# formatting setup | |
from colorama import Fore, 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
from digi.xbee.models.address import XBee64BitAddress, XBee16BitAddress, XBeeIMEIAddress | |
from digi.xbee.devices import RemoteXBeeDevice, ZigBeeDevice | |
from digi.xbee.exception import InvalidOperatingModeException, XBeeException, TimeoutException | |
import time | |
import RPi.GPIO as GPIO | |
import traceback | |
from digi.xbee.util import utils | |
import sys |
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
from pymongo import MongoClient | |
client = MongoClient() | |
db = client.voyagerDB | |
COL_WIDTH = 30 | |
SMALL_COL_WIDTH = 13 |