Skip to content

Instantly share code, notes, and snippets.

View thepalbi's full-sized avatar
:shipit:

Pablo thepalbi

:shipit:
View GitHub Profile
Resources:
GrafanaTestFunctionServiceRoleDEDD1AAA:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: lambda.amazonaws.com
@thepalbi
thepalbi / template.yaml
Created April 5, 2022 16:14
Lambda + Cron CloudFormation template
Resources:
GrafanaTestFunctionServiceRoleDEDD1AAA:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: lambda.amazonaws.com
@thepalbi
thepalbi / compare.py
Created July 3, 2021 23:00
Python wrapper to compare with jsinspect
import subprocess
import tempfile
# npm install -g jsinspect
additional_arguments = [
"-I", # Ignore identifers
"-L", # Ignore literals
"-t", "20", # Compare nodes count
"-m", "2", # Minimum number of equal nodes to get a match
@thepalbi
thepalbi / json
Created June 25, 2021 21:56
Parcial 3 Json Schema
{
"$schema":"http://json-schema.org/draft/2019-09/schema#",
"Alquiler":{
"type":"object",
"properties":{
"idAlquiler":{
"type":"integer"
},
"fechaDesde":{
"type":"string",