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 158 commits ██████▊░░░░░░░░░░░░░░ 32.7% | |
🌆 Daytime 227 commits █████████▊░░░░░░░░░░░ 47.0% | |
🌃 Evening 98 commits ████▎░░░░░░░░░░░░░░░░ 20.3% | |
🌙 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
YAML +11/ -11 █████████████████████100.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
- 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
import json, botocore | |
from boto3.session import Session | |
def serialize_sets(obj): | |
if isinstance(obj, set): | |
return list(obj) | |
return obj | |
s = Session() | |
regions = s.get_available_regions('lambda') |
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'] |
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
dotnet tool update --global dotnet-outdated-tool | |
$errorCount = 0 | |
Get-ChildItem -Path .\ -Filter *.csproj -Recurse -File -Name| ForEach-Object { | |
[System.IO.Path]::GetFileNameWithoutExtension($_) | |
dotnet outdated $_ -f -inc CB. -u | |
if ($LASTEXITCODE -ne 0) | |
{ | |
$errorCount++ | |
} | |
} |
NewerOlder