Skip to content

Instantly share code, notes, and snippets.

@aphexlog
aphexlog / audit_iam_accounts.py
Created January 16, 2020 16:58 — forked from DavidWittman/audit_iam_accounts.py
Parses the output from AWS credential reports and displays users which have been inactive for 60+ days.
#!/usr/bin/env python
# Parses the output from AWS credential reports and displays
# users which have been inactive for 60+ days.
#
# Usage:
# audit_iam_accounts.py credential_report.csv <days>
#
import csv
@aphexlog
aphexlog / chef-server-install.sh
Created June 6, 2018 05:51 — forked from EdHurtig/chef-server-install.sh
Bash Script to provision a Chef Server
#!/bin/bash
set -e
echo "Welcome to edhurtig's Chef Server Installation Script."
echo "Please change the following options or accept the defaults by just hitting enter"
PACKAGE_URL_BASE="https://web-dl.packagecloud.io/chef/stable/packages/ubuntu/trusty/"
read -i "$PACKAGE_URL_BASE" -p "Chef Server Package Download Location (base path): " PACKAGE_URL_BASE
PACKAGE_NAME="chef-server-core_12.0.8-1_amd64.deb"
@aphexlog
aphexlog / rhel7docker.md
Created March 28, 2018 20:32 — forked from WelshSean/rhel7docker.md
How to install Docker on RHEL7 using RedHat packages

on RHEL7 docker is available in the extras channel, we can see that it is disabled

[sean@localhost ~]$ subscription-manager repos --list | grep -i extras
Password: 
Repo ID:   rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/os
Repo ID:   rhel-7-server-extras-source-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (Source RPMs)