Skip to content

Instantly share code, notes, and snippets.

View matwerber1's full-sized avatar

Mathew Werber matwerber1

  • Seattle
View GitHub Profile
@matwerber1
matwerber1 / aws-cli-eksctl-create-iamidentitymapping
Last active October 13, 2023 04:06
Snippet of Amazon EKS aws-auth configmap that grants cluster admin permissions to a specific AWS SSO role/permission set
# Example command
eksctl create iamidentitymapping \
--cluster YOUR_CLUSTER_NAME \
--arn arn:aws:iam::999999999999:role/AWSReservedSSO_YOUR-ROLE_NAME_xxxxxxxxxxxc \
--username cluster-admin \
--group system:masters
@matwerber1
matwerber1 / ec2-node-amzn.sh
Created September 26, 2018 02:57 — forked from ogckw/ec2-node-amzn.sh
ec2-amazon-linux-node-userdata
#!/bin/bash
# Program:
# EC2 initially install node.js, git for development environment.
# You can modify nodev and nvmv for changing node and nvm version.
# Set permission to ec2-user install above.
# History:
# 2017/07/25 Hans First release
home=/home/ec2-user
nodev='8.11.2'
nvmv='0.33.11'
@matwerber1
matwerber1 / google-sheet-formula-parse-iso86001-date-strings.md
Created July 30, 2022 03:28
Google Sheet Formula to convert ISO86001 date from string to usable timestamp data type.

Google sheet formula to convert a ISO86001 string to a date time:

Input: 2022-06-23T16:31:34.036000+00:00 (cell A2)

Formula: SUM(SPLIT(left(A2,len(A2)-6),"T"))

Output: (a properly-formatted datetime)