Skip to content

Instantly share code, notes, and snippets.

View rdkr's full-sized avatar

Neel Radhakrishnan rdkr

View GitHub Profile
@springmeyer
springmeyer / install-pcp.sh
Last active August 22, 2018 15:09 — forked from johanstenberg92/install-pcp.sh
Install Performance Co-Pilot on Amazon Linux AMI
#!/bin/sh
set -eu
if [ "$(id -u)" != "0" ]; then
echo "Sorry, you are not root."
exit 1
fi
if !(type pcp 2>/dev/null;) then
@ambakshi
ambakshi / iam-assume-role.sh
Last active July 6, 2024 02:59
Assume an IAM role. An interesting way of doing IAM roles is to give the instance permissions to assume another role, but no actual permissions by default. I got this idea while setting up security monkey: http://securitymonkey.readthedocs.org/en/latest/quickstart1.html#setup-iam-roles.
#!/bin/bash
#
# Assume the given role, and print out a set of environment variables
# for use with aws cli.
#
# To use:
#
# $ eval $(./iam-assume-role.sh)
#