Skip to content

Instantly share code, notes, and snippets.

View eduardovra's full-sized avatar

Eduardo Vieira eduardovra

View GitHub Profile
@eduardovra
eduardovra / dynamodb_query_iterator.py
Created June 1, 2019 14:47
A function that handles pagination on a DynamoDB query operation, returning an iterator
import boto3
from boto3.dynamodb.conditions import Key
def query_dynamodb_table(table, params):
"""
Perform a Query operation and handles pagination automatically,
returning an iterator.
This will work for Scan operations too.
Tested on python 3.6
"""
@eduardovra
eduardovra / network_glossary.md
Last active March 14, 2018 12:34
Networking glossary

Protocols

Protocol Description
VRRP The Virtual Router Redundancy Protocol (VRRP) is a computer networking protocol that provides for automatic assignment of available Internet Protocol (IP) routers to participating hosts. This increases the availability and reliability of routing paths via automatic default gateway selections on an IP subnetwork.
GVRP Multiple Registration Protocol (MRP), which replaced Generic Attribute Registration Protocol (GARP), is a generic registration framework defined by the IEEE 802.1ak amendment to the IEEE 802.1Q standard. MRP allows bridges, switches or other similar devices to be able to register and de-register attribute values, such as VLAN identifiers and multicast group membership across a large LAN. MRP operates at the Data Link Layer.
EAPS Ethernet Automatic Protection Switching (EAPS) is used to create a fault tolerant topology by configuring a primary and secondary path for each VLAN.
ERPS Ethernet Ring Protectio
@eduardovra
eduardovra / extract_season.sh
Created April 1, 2013 00:19
Extract series season episodes
#!/bin/bash