Skip to content

Instantly share code, notes, and snippets.

View eamonnfaherty's full-sized avatar

Eamonn Faherty eamonnfaherty

View GitHub Profile
import json
import yaml
import os
from pathlib import Path
def load_manifest(manifest_path):
# Load the expanded manifest YAML file
with open(manifest_path, 'r') as f:
#!/usr/bin/env bash
set -e
echo "Starting to prune change sets"
ALL_STACKS=$(aws cloudformation list-stacks --stack-status-filter CREATE_COMPLETE UPDATE_COMPLETE UPDATE_ROLLBACK_COMPLETE --query 'StackSummaries[].StackName' --output text)
for STACK_NAME in $ALL_STACKS
do
@eamonnfaherty
eamonnfaherty / gist:7ac332daf24a0d6d7fc313c8ba72045c
Created January 20, 2021 15:07
terminates products, deletes products and portfolios across your org
import boto3
from multiprocessing import Pool
import traceback
# config
account_access_role_arn = "arn:aws:iam::{}:role/OrganizationAccountAccessRole"
regions_to_clean = [
"eu-west-1",
"eu-west-2",
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
AWSTemplateFormatVersion: '2010-09-09'
Description: IAM Role needed to use AWS Organizations to assume role into member AWS Accounts.
Parameters:
ServiceCatalogFactoryAccountId:
Description: The account you will be installing AWS Service Catalog Factory into
Type: String
Cable Modem Status
Item Status Comments
Acquired Downstream Channel (Hz)
402750000
Locked
Ranged Upstream Channel (Hz)
39400000
Locked
Provisioning State
@eamonnfaherty
eamonnfaherty / filename
Created December 15, 2019 02:04
some description
Schema: factory-2019-04-01
Products:
- Name: "aws-config-enable-config"
Owner: "[email protected]"
Description: "Enables AWS Config"
Distributor: "cloud-engineering"
SupportDescription: "Speak to [email protected] about exceptions and speak to [email protected] about implementation issues"
SupportEmail: "[email protected]"
SupportUrl: "https://wiki.example.com/cloud-engineering/governance/aws-config-enable-config"
Tags:
@eamonnfaherty
eamonnfaherty / pre-push
Last active December 11, 2018 21:22
delete your internet password for AWS CodeCommit repos
#!/bin/sh
# guide on how to add global git hooks:
# https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook
# add this as a pre-push git hook
# .git/hooks/pre-push
remote="$1"
url="$2"
REGION=$(git remote -v | grep codeco | awk -F\/ '{print $3}' | awk -F. '{print $2}' | uniq)
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst puppet
1 2016-02-12
1 2016-02-16
1 2016-02-24
1 2016-03-02
1 2016-03-18
1 2016-03-24
1 2016-04-07
1 2016-04-08
1 2016-04-12
1 2016-04-27
# Add the following 'help' target to your Makefile
# And add help text after each target name starting with '\#\#'
# A category can be added with @category
HELP_FUN = \
%help; \
while(<>) { push @{$$help{$$2 // 'options'}}, [$$1, $$3] if /^(\w+)\s*:.*\#\#(?:@(\w+))?\s(.*)$$/ }; \
print "usage: make [target]\n\n"; \
for (keys %help) { \
print "$$_:\n"; $$sep = " " x (20 - length $$_->[0]); \