Skip to content

Instantly share code, notes, and snippets.

View alexandrerocco's full-sized avatar
😁

Alexandre Rocco alexandrerocco

😁
View GitHub Profile
@alexandrerocco
alexandrerocco / find_iam_user.py
Last active August 29, 2015 14:05 — forked from OnlyInAmerica/find_iam_user.py
Finds an AWS IAM user that corresponds to the access key passed by the command line parameter.
# Find the IAM username belonging to the command line parameter
# Useful for finding IAM user corresponding to a compromised AWS credential
# Requirements:
#
# Environmental variables:
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
# python:
# boto
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get -y install python-software-properties
sudo apt-add-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get -y install nodejs
# Install git to get statsd
sudo apt-get -y install git
@alexandrerocco
alexandrerocco / install-htop.sh
Last active May 8, 2022 09:18 — forked from magemore/gist:4499587
Amazon Linux - Install htop
# update
sudo yum -y update
sudo yum -y upgrade
# enable EPEL6 by changing enabled=0 -> enabled=1
sudo vim /etc/yum.repos.d/epel.repo
# install htop
sudo yum install htop
@alexandrerocco
alexandrerocco / redis install.sh
Last active December 18, 2015 14:59 — forked from antond/redis install
Automated setup script for Redis Server on CentOS
### Set up SO:
sudo -s
yum -y update
yum -y install gcc gcc-c++ make
### Download and install Redis:
cd /opt
wget -q http://redis.googlecode.com/files/redis-2.6.14.tar.gz
tar xzf redis-2.6.14.tar.gz
rm -f redis-2.6.14.tar.gz