Skip to content

Instantly share code, notes, and snippets.

View PatMyron's full-sized avatar
☁️
cfn-lint / tflint maintainer emeritus

Pat Myron PatMyron

☁️
cfn-lint / tflint maintainer emeritus
  • https://www.linkedin.com/in/patrickmyron/
  • USA
View GitHub Profile
@PatMyron
PatMyron / gh-repo.sh
Last active January 27, 2025 22:13
gh-repo.sh
gh repo list PatMyron --limit 100 --source --json name -q '.[].name' | xargs -I {} gh repo edit PatMyron/{} --enable-wiki=false --enable-discussions=false --enable-projects=false --enable-merge-commit=false --enable-squash-merge --allow-update-branch --enable-auto-merge
@PatMyron
PatMyron / template.yaml
Last active February 14, 2025 02:25
Template format error: Unrecognized resource types
Parameters:
CreateResource:
Default: false
Type: String
AllowedValues: [true, false]
Conditions:
ShouldCreateResource:
!Equals [true, !Ref CreateResource]
Resources:
Macro:
Resources:
AdministrationRole:
Type: AWS::IAM::Role
Properties:
RoleName: AWSCloudFormationStackSetAdministrationRole
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Principal:
var els = document.getElementsByTagName('span');
var h3s = document.getElementsByTagName('h3');
j=0;
for(i=0; i < els.length; i+=2) {
prop = els[i].getAttribute('itemprop');
if(prop) {
console.log(h3s[j++].innerHTML + ", " + els[i].innerHTML + ", " + els[i+1].innerHTML);
}
}