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 May 29, 2024 02:07
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
gh repo list patmyron --limit 100 --source --json name -q '.[].name' | xargs -I {} curl -I -k -s "https://api.github.com/repos/patmyron/{}/commits?per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'
@PatMyron
PatMyron / CloudFormationResourceSpecification.json
Last active August 14, 2020 17:14
CloudFormationResourceSpecificationWithFix.json
This file has been truncated, but you can view the full file.
{
"PropertyTypes": {
"AWS::AppMesh::VirtualRouter.PortMapping": {
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-portmapping.html",
"Properties": {
"Port": {
"Required": true,
"Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualrouter-portmapping.html#cfn-appmesh-virtualrouter-portmapping-port",
"PrimitiveType": "Integer",
"UpdateType": "Mutable"
@PatMyron
PatMyron / template.yaml
Created December 4, 2019 00:11
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:
Event data, including the Facebook IDs of those who are invited and RSVP, is stored in Firebase.
No other sensitive data is stored anywhere.
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);
}
}