Skip to content

Instantly share code, notes, and snippets.

View ryandeivert's full-sized avatar
👨‍🌾

ryandeivert

👨‍🌾
View GitHub Profile
@ryandeivert
ryandeivert / transfer_ssm_file.sh
Created January 24, 2025 03:17 — forked from lukeplausin/transfer_ssm_file.sh
Transfer a file to EC2 SSM instance without using S3 (SSM only)
# This script will explain how to transfer a file to EC2 using SSM ONLY!
# You will need to have permission to run SSM commands on the target machine and have sudo access as well
# Infos
INSTANCE_ID=i-1234567890
FILE_NAME=the_file.tar.gz
# Step 1: Run command on machine to install netcat and dump from port to filename
# < Start session

Importing Existing Kinesis Stream

# Generate the StreamAlert terraform files to static directory
$ python manage.py --build-dir ~/sa_build_dir generate

# Change to directory with terraform files
$ cd ~/sa_build_dir

# Run init
@ryandeivert
ryandeivert / example.md
Last active July 18, 2019 22:12
very contrived example of caching matcher
from datetime import datetime, timedelta

from stream_alert.shared.rule import rule

import boto3
from botocore.exceptions import ClientError


class CachingMatcher(object):

Keybase proof

I hereby claim:

  • I am ryandeivert on github.
  • I am ryandeivert (https://keybase.io/ryandeivert) on keybase.
  • I have a public key ASBbBxwYBEfKR9KNyu-EacsXPfPu4h-r7apaDiqrTxC8PQo

To claim this, I am signing this object: