Skip to content

Instantly share code, notes, and snippets.

View look4regev's full-sized avatar
😎
Saving the world

Regev Golan look4regev

😎
Saving the world
View GitHub Profile
@AvnerCohen
AvnerCohen / python2.7.xx.bash
Last active October 25, 2018 10:12
Updated Python 2.7.xx on an Amazon AMI + make it default (in alternatives) and symlik pip ad virtualenv for future usage
#!/usr/bin/env bash
NEW_VERSION="2.7.14"
CURRENT_VERSION="$(python -V 2>&1)"
if [[ "$CURRENT_VERSION" == "Python $NEW_VERSION" ]]; then
echo "Python $NEW_VERSION already installed, aborting."
else
echo "Starting upgrade from ${CURRENT_VERSION} to ${NEW_VERSION}"
@keymon
keymon / rotate_my_creds.sh
Last active January 12, 2022 19:59
Script to rotate AWS access keys
#!/bin/bash
#
# Will rotate the credentials for the user and account that you have
# currently configured. It will print the shell `export` lines to use
# the creds.
#
# If you team uses STS with MFA to access the API, you must use those
# STS credentials.
#