Skip to content

Instantly share code, notes, and snippets.

View gist:4f44b80e756ef50ddfab14d3456e7a4d
"twilio": {
"collected_data": {
"collect_is_parent_guardian": {
"answers": {
"is_parent_guardian": {
"confirm_attempts": 0,
"answer": "Yes",
"filled": true,
"type": "Twilio.YES_NO",
ruanbekker /
Created Jan 31, 2018
Getting Secrets from SSM using GetParameter Example with Python and Boto3

Bash Environment Example with SSM to get Parameter Values using GetParameter:

IAM Policy:

    "Version": "2012-10-17",
    "Statement": [
            "Sid": "Stmt1517398919242",
from scapy.all import *
def spoof_reply(pkt):
Craft a valid ICMP echo-reply based on an intercepted
ICMP echo-request
if (pkt[2].type == 8):
#check if the ICMP is a request
w3irdrobot /
Last active Feb 4, 2022
Reading Data From Kinesis
from datetime import datetime, timedelta
import json
import boto
def get_kinesis_data_iterator(stream_name, minutes_running):
# Connect to Kinesis
kinesis = boto.connect_kinesis()
# Get data about Kinesis stream for Tag Monitor
kinesis_stream = kinesis.describe_stream(stream_name)
myusuf3 /
Created Nov 3, 2014
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
stephenhardy / git-clearHistory
Created Apr 26, 2013
Steps to clear out the history of a git/github repository
View git-clearHistory
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin<YOUR ACCOUNT>/<YOUR REPOS>.git