brew install pyenv pyenv-virtualenv pyenv-virtualenvwrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Returns account number, region, account alias | |
Author: Tracy Phillips | |
""" | |
import boto3 | |
IAM_CLIENT = boto3.client("iam") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# What is that | |
# ============ | |
# | |
# This script will help you setting up your digital ocean | |
# infrastructure with Ansible v2.0+ and DO API v2 | |
# | |
# Usually, when working with DO, one is supposed to use digital_ocean.py | |
# inventory file, and spin up instances in a playbook. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
unset AWS_ACCESS_KEY_ID | |
unset AWS_SECRET_ACCESS_KEY | |
unset AWS_SECURITY_TOKEN | |
unset AWS_SESSION_TOKEN | |
while getopts "e:u:p:s:t:f:" arg ; do | |
case $arg in | |
p) |
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vi /etc/systemd/system/proxyclient.service | |
[Unit] | |
Description=Proxy Client | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/sbin/proxy_client -s metro.basoro.id -p 4900 -k key | |
TimeoutStartSec=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# cd ~/Library/Mobile\ Documents/com~apple~CloudDocs/Settings/dotfiles | |
if [[ ! -d ~/Library/Mobile\ Documents/com~apple~CloudDocs/Settings/dotfiles ]] | |
then | |
echo "${HOME}/Library/Mobile\ Documents/com~apple~CloudDocs/Settings/dotfiles does not exist!" | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################################################################ | |
## This is an unofficial nym-mixnode installer, which downloads, configures | |
## and runs the Nym mixnode in less than 1 minute. | |
## It creates a nym user which runs the node with a little help of | |
## a systemd. It automates even the systemd.service creation, so | |
## everytime you change your node config, simply just do it with this script | |
## to make sure your Nym-mixnode is running and mixin' packets! | |
## ------------------------------------------------------------------------- | |
## All credits go to the Nym team, creators of BASH, other FOSS used |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Source : https://s3.amazonaws.com/awsiammedia/public/sample/SAMLAPICLIADFS/samlapi_formauth.py | |
# Referenced from : https://aws.amazon.com/blogs/security/how-to-implement-a-general-solution-for-federated-apicli-access-using-saml-2-0/ | |
import sys | |
import boto.sts | |
import boto.s3 | |
import requests | |
import getpass |
OlderNewer