Skip to content

Instantly share code, notes, and snippets.

from sagemaker import get_execution_role
role = get_execution_role()
bucket='sagemaker-12272017t1706'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ezeeetm
ezeeetm / main.py
Created December 22, 2017 00:06
Automating Vulnerability Management on AWS with TripWire IP360
#!/usr/bin/env python
import xmlrpclib
import ssl
import logging
import os
import sys
import time
logging.basicConfig(level=logging.DEBUG)
@ezeeetm
ezeeetm / backupToS3.ps1
Last active January 22, 2019 07:33
backupToS3.ps1
# config
clear
$accessKey = "your AK" # these keys are for an IAM user with read/write access only to the -dr S3 account
$secretKey = "your SK"
$bucketName = "your bucketname"
$dataVol = "D:" # omit \
$dataDirs = $null
function initializeAwsSession
// Gray text are just helpful comments, you don’t need to type them. :)
/******* -----=====!! EASY STUFF TO MESS WITH !!=====------ ******/
// What analog pin should we use to read the value from the potentiometer?
int analogPin = 2; // Yep, you heard right: The coolest of the Analog pins...
// What pin is the LED connected to?
int ledPin = 13; // Contains a built in resistor!
@ezeeetm
ezeeetm / blueGreenDeploy.ps1
Created December 18, 2015 14:01
blueGreenDeploy.ps1
<#
.SYNOPSIS
Command line utility for initiating blue-green deployments, to be called by a build step, or by another script, in a Jenkins job.
.PARAMETER region
Optional/has default value. Specifies the AWS region, e.g. 'us-east-1'. See script Param section for allowed values.
.PARAMETER environment
Required. Specifies a friendly name for the environment, e.g. 'dev'. See script Param section for allowed values.