Skip to content

Instantly share code, notes, and snippets.

View iashwash's full-sized avatar

Issa Ashwash iashwash

  • Area 1 Security
  • Redwood City, CA
View GitHub Profile
@iashwash
iashwash / keybase.md
Created February 12, 2017 19:35
Declare keybase identity

Keybase proof

I hereby claim:

  • I am iashwash on github.
  • I am issa (https://keybase.io/issa) on keybase.
  • I have a public key whose fingerprint is C74F AE93 DCE8 FA19 765B 7077 7D0E DDC7 EE52 EDFA

To claim this, I am signing this object:

@iashwash
iashwash / instance.py
Created March 16, 2016 22:40
Quick command-line way to stop or start an instance
#!/bin/env python
'''
Usage: python instance.py --help
Replace YOURKEYHERE and YOURSECRETKEYHERE and us-east-1
Setup:
pip install -r requirements.txt
'''
import boto3
@iashwash
iashwash / littlechef_lib_example.py
Created January 2, 2016 16:23
Simple example of using littlechef as a library.
#!/usr/bin/env python
from littlechef import runner as lc
# Update user and target
lc.env.user = 'ubuntu'
lc.env.host_string = 'node.yourdomain.net'
lc.env.kitchen_path = '/path/to/your/kitchen'
lc.env.http_proxy = None
lc.env.https_proxy = None
@iashwash
iashwash / test_s3_performance.py
Created October 13, 2015 20:49
Test Downloads From S3 Bucket for Performance Testing
#!/usr/bin/env python
# Simple script to test bandwidth connectivity to s3
# Requires boto python package
# Must run on a system that supports /dev/null
#
# Quick setup:
# sudo pip install virtualenv
# sudo pip install virtualenvwrapper
# source /usr/local/bin/virtualenvwrapper.sh
# mkvirtualenv s3load
@iashwash
iashwash / find_iam_user.py
Last active September 23, 2015 17:46 — forked from OnlyInAmerica/find_iam_user.py
Find an AWS IAM user corresponding to an AWS Access Key
# Modified from https://gist.github.com/OnlyInAmerica/9964456
# Find the IAM username belonging to the TARGET_ACCESS_KEY
# Useful for finding IAM user corresponding to a compromised AWS credential
#
# Usage:
# python find_iam_user AWS_KEY_ID
#
# Requirements:
#
# Environmental variables: