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
🌞 Morning 147 commits ██████▌░░░░░░░░░░░░░░ 31.0% | |
🌆 Daytime 230 commits ██████████▏░░░░░░░░░░ 48.5% | |
🌃 Evening 97 commits ████▎░░░░░░░░░░░░░░░░ 20.5% | |
🌙 Night 0 commits ░░░░░░░░░░░░░░░░░░░░░ 0.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
Text +39/ -3 ██████████▏░░░░░░░░░░ 48.3% | |
YAML +113/ -22 █████▎░░░░░░░░░░░░░░░ 25.1% | |
Python +118/ -56 ████▉░░░░░░░░░░░░░░░░ 23.8% | |
TOML +10/ -0 ▎░░░░░░░░░░░░░░░░░░░░ 1.6% | |
JSON +12/ -0 ▏░░░░░░░░░░░░░░░░░░░░ 1.0% | |
INI +4/ -0 ░░░░░░░░░░░░░░░░░░░░░ 0.2% |
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/sh | |
# ***** BEGIN LICENSE BLOCK ***** | |
# Version: MPL 1.1 | |
# | |
# The contents of this file are subject to the Mozilla Public License Version | |
# 1.1 (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# http://www.mozilla.org/MPL/ | |
# | |
# Software distributed under the License is distributed on an "AS IS" basis, |
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
$resources = Get-AzResource | |
foreach($resource in $resources) | |
{ | |
$tags = (Get-AzTag -ResourceId $resource.Id) | |
$tagsproperties = $tags.Properties | |
if (!($tagsproperties.TagsProperty.ContainsKey('Creator'))) | |
{ | |
Write-Host $resource.Name "has no creator" | |
if ($tagsproperties.TagsProperty.ContainsKey('Owner')) | |
{ |
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
- name: House Keeping Temp Files | |
hosts: "all" | |
ignore_errors: yes | |
ignore_unreachable: yes | |
vars: | |
age: 3d | |
# vars_prompt: | |
tasks: | |
- name: Setting Facts for Hostname |
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
# In GKE need to get RBAC permissions first with | |
# kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin [--user=<user-name>|--group=<group-name>] | |
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: example | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount |
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 | |
printf '#!/bin/sh\nexec /lib64/ld-linux-x86-64.so.2 /usr/bin/gzip "$@"' | sudo tee /usr/local/bin/gzip | |
sudo chmod +x /usr/local/bin/gzip | |
curl -fsSL https://get.pulumi.com | sh |
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
$orgs = @("whereyouwork") | |
$users = @("parttimelegend") | |
$githubToken = $ENV:GitHubToken | |
$workspace = "C:\workspace" | |
$timeout = 3600 | |
function Clone-Repos-For-Org() | |
{ | |
param( | |
[Parameter(Mandatory=$true)][string]$org |
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
terraforming alb > alb.tf --use-bundled-cert # ALB | |
terraforming asg > asg.tf --use-bundled-cert # AutoScaling Group | |
terraforming cwa > cwa.tf --use-bundled-cert # CloudWatch Alarm | |
terraforming dbpg > dbpg.tf --use-bundled-cert # Database Parameter Group | |
terraforming dbsg > dbsg.tf --use-bundled-cert # Database Security Group | |
terraforming dbsn > dbsn.tf --use-bundled-cert # Database Subnet Group | |
terraforming ddb > ddb.tf --use-bundled-cert # DynamoDB | |
terraforming ec2 > ec2.tf --use-bundled-cert # EC2 | |
terraforming ecc > ecc.tf --use-bundled-cert # ElastiCache Cluster | |
terraforming ecsn > ecsn.tf --use-bundled-cert # ElastiCache Subnet Group |
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
import boto3 | |
ec2Client = boto3.client('ec2') | |
ec2Resource = boto3.resource('ec2') | |
for instance in ec2Resource.instances.all(): | |
for tag in instance.tags: | |
if tag['Key'] == 'Name': | |
list_of_snapshots = [] | |
check_value = [] | |
check_value.append(tag['Value'] + '*') | |
snapshotsByTag = ec2Client.describe_snapshots(Filters=[{'Name':'tag:Name', 'Values': [check_value[0]]}])['Snapshots'] |
NewerOlder