Skip to content

Instantly share code, notes, and snippets.

View Richard-Barrett's full-sized avatar
🏠
Working from home

Richard Barrett Richard-Barrett

🏠
Working from home
View GitHub Profile
@Richard-Barrett
Richard-Barrett / okta_saml2aws_awscli_download_s3objects.md
Last active October 7, 2022 20:56
Okta Saml2AWS + AWS CLI To Download S3 Bucket Objects

How To Download S3 Objects When Using Okta Saml2aws via AWS CLI

Your organization may have Okta set up as a SAML Connection to an AWS Account. As a result, you may find yourself needing to download an S3 object from within your CLI.

First things first include downloading the following:

  • Saml2aws
  • awscli

To install the above, will be dependent on your OS such as Windows, or Mac.

@Richard-Barrett
Richard-Barrett / migrate_openstack_l3_agents.sh
Last active November 10, 2021 15:42
Migrate OpenStack L3 and DHCP Agents on OpenStack Kolla-Ansible
#!/bin/bash
# =============================================
# Created by: Richard Barrett
# Date Created: 11/09/2021
# Purpose: Migrate OpenStack L3 Agents
# Company: Charter Spectrum
# =============================================
# Documentation:
# ========================================================================================
@Richard-Barrett
Richard-Barrett / make_docker_run_command.sh
Created October 23, 2021 21:18
Interactive Script to Make Docker Run Command on Container Inspect Using run.tpl
#!/bin/bash
# =============================================
# Created by: Richard Barrett
# Date Created: 10/23/2021
# Purpose: Make Docker Run Command
# Company: Mirantis
# =============================================
# Documentation:
# ========================================================================================
@Richard-Barrett
Richard-Barrett / run.tpl
Created October 23, 2021 21:00
Copy of run.tpl from https://gist.github.com/efrecon/8ce9c75d518b6eb863f667442d7bc679 for use with another of my scripts
{* Originally: https://gist.github.com/efrecon/8ce9c75d518b6eb863f667442d7bc679 *}
{* Author: https://gist.github.com/efrecon *}
{* Use: For Personal Use Alongside Another Gist for Interactive Prompt on Pull Run Command *}
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
@Richard-Barrett
Richard-Barrett / mke_configtoml_download.sh
Created October 20, 2021 15:06
Interactive Script To Download The Miratnis MKE config.toml File
#!/bin/bash
# =============================================
# Created by: Richard Barrett
# Date Created: 10/20/2021
# Purpose: Auto MKE Config TOML Download
# Company: Mirantis
# =============================================
# Documentation:
# ========================================================================================
@Richard-Barrett
Richard-Barrett / msr_reconfigure.sh
Created October 4, 2021 17:44
Reconfigure MSR TLS Certs
#!/bin/bash
# ===============================================
# Created by: Richard Barrett
# Date Created: 10/04/2021
# Purpose: Interactive MSR Reconfigure
# Company: Mirantis
# ===============================================
# System Variables
# ================
@Richard-Barrett
Richard-Barrett / PowerShell Customization.md
Created September 3, 2021 15:43 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@Richard-Barrett
Richard-Barrett / mke_check_xfsinfo.sh
Created June 24, 2021 00:26
Mirantis MKE XFS Check Script
#!/bin/bash
# ===============================================
# Created by: Richard Barrett
# Date Created: 06/23/2021
# Purpose: Mirantis MKE XFS Config Check
# Company: Mirantis
# ===============================================
ROLE = "$(sudo docker node inspect self | jq '.[] .Spec.Role')"
MANAGER = "$(echo '"manager"')"
@Richard-Barrett
Richard-Barrett / openstack-collector.sh
Last active October 21, 2021 15:31
OpenStack Collection Info Script
#!/bin/bash
# ======================================================
# Author: Richard Barrett
# Date Created: 06/08/2021
# Purpose: Initialize OpenStack Collection Script
# ======================================================
# Official documentation
# ==========================================================================================================================================================
# ...

Keybase proof

I hereby claim:

  • I am richard-barrett on github.
  • I am richardbarrett (https://keybase.io/richardbarrett) on keybase.
  • I have a public key ASDJjyo4EC-WC9hgVeiWVzRU_FIpB-1WlCRtIl0q-xc3mAo

To claim this, I am signing this object: