Skip to content

Instantly share code, notes, and snippets.

@lcoutinho
lcoutinho / auto_configure_aws_cli_sso_roles.sh
Created August 6, 2024 21:05 — forked from lukeplausin/auto_configure_aws_cli_sso_roles.sh
Automatically configure AWS SSO configuration file for all available accounts and roles
#!/bin/bash -e
# How to use this script:
# 1. Follow these instructions to configure a single AWS account to do initial login with SSO
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html
# 2. Export AWS_PROFILE=... and then run "aws sso login" to get an SSO token
# 3. Once signed in with AWS SSO, run this script to automatically list out all the other accounts and roles and add them to your config file
# If you want to filter roles / accounts in the process, or validate config before committing it, you can customise the script to do this.
@lcoutinho
lcoutinho / setup_selenium.sh
Last active May 3, 2017 05:15 — forked from curtismcmullan/setup_selenium.sh
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in
@lcoutinho
lcoutinho / install_grumphp.sh
Created January 30, 2017 19:55
Instalação GrumPHP (Code-Quality)
if [ ! -d "$HOME/.composer/vendor/bin" ]; then
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
fi
composer global require phpro/grumphp
composer global update phpro/grumphp
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> $HOME/.bashrc
source ~/.bashrc
@lcoutinho
lcoutinho / phalconphp_php7_ubuntu_16_04.sh
Created July 13, 2016 18:40 — forked from jl91/phalconphp_php7_ubuntu_16_04.sh
PhalconPhp with PHP7 Installation on Ubuntu 16.04
#!/bin/bash
# PhalconPhp with PHP7 installation on ubuntu:16.04
sudo apt-get update
sudo apt-get install -y php7.0-fpm \
php7.0-cli \
php7.0-curl \
php7.0-gd \