I hereby claim:
- I am brandoncruz3 on github.
- I am bcruz (https://keybase.io/bcruz) on keybase.
- I have a public key ASC0P5KZq334Tn5DtTJljXbckZFj6wp5JBd0khKokWkF0Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const fs = require('fs'); | |
const path = require('path'); | |
const AWS = require('aws-sdk'); | |
const { BUCKET_NAME, AWS_ACCESS_ID, AWS_SECRET_KEY } = process.env; | |
// helpers | |
function uploadToS3(file, name, type) { |
import boto3 | |
iam = boto3.client('iam') | |
def find_user_and_groups(): | |
for userlist in iam.list_users()['Users']: | |
userGroups = iam.list_groups_for_user(UserName=userlist['UserName']) | |
print("Username: " + userlist['UserName']) | |
print("Assigned groups: ") | |
for groupName in userGroups['Groups']: |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |