I hereby claim:
- I am dtelaroli on github.
- I am dtelaroli (https://keybase.io/dtelaroli) on keybase.
- I have a public key ASB80HHC08K7bPObA78PeVBwIa6Jc4cWL6tFvu-7TdLO6Ao
To claim this, I am signing this object:
# $1 parameter inverse (true|false) | |
# inverse true remove what is in tf file | |
# inverse false remove what is not in tf file | |
# command: node clean-tf-state.js [true|false] | |
const json = require("./state.json") | |
const fs = require('fs') | |
const inverse = process.argv[1] |
I hereby claim:
To claim this, I am signing this object:
#read | |
sudo defaults read bluetoothaudiod | |
# disable | |
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool false | |
sudo defaults write bluetoothaudiod "Enable AptX code" -bool false | |
# restart | |
# enable | |
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true |
PUT <index>/_mapping/doc | |
{ | |
"properties": { | |
"field": { | |
"type": "text", | |
"fielddata": true | |
} | |
} | |
} |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::<accountId>:role/<authRoleArn>" | |
}, | |
"Action": "es:*", | |
"Resource": "<ESDomainArn>/*" |
const { cpf, cnpj } = require('cpf-cnpj-validator'); | |
const Joi = require("@hapi/joi"); | |
const JoiDoc = Joi.extend((joi) => ({ | |
base: joi.string(), | |
type: "string", | |
messages: { | |
'document.invalid': '"{{#label}}" is invalid' | |
}, | |
rules: { |
const { DynamoDB } = require("aws-sdk"); | |
const ddb = new DynamoDB.DocumentClient(); | |
/** | |
* @param event.TableName required - DynamoDB table name | |
* @param event.ExclusiveStartKey optional - Last Id if you want continue previeus execution | |
* Permissions to lambda: | |
* - dynamodb:Scan | |
* - dynamodb:BatchWriteItem | |
**/ |
{ | |
... | |
"Resources": { | |
"EmptyResource": { | |
"Type": "Custom::EmptyResource", | |
"Condition": "AlwaysFalse" | |
}, | |
"MyDataSource": { | |
"Type": "AWS::AppSync::DataSource", | |
"Properties": { |
en: | |
pagseguro: | |
errors: | |
'bad_request': 'Bad request' | |
'5003': 'bank network error' | |
'10000': 'invalid creditcard brand' | |
'10001': "creditcard number with invalid length" | |
'10002': "invalid date format" | |
'10003': "invalid security field" | |
'10004': "cvv is mandatory" |
FROM openjdk:8-jdk | |
RUN curl -O https://download.oracle.com/glassfish/4.1.2/release/glassfish-4.1.2.zip -H 'Connection: keep-alive' --compressed \ | |
&& unzip -o glassfish-4.1.2.zip \ | |
&& rm glassfish-4.1.2.zip | |
COPY <java_webapp>.war|.jar|ear /glassfish4/glassfish/domains/domain1/autodeploy/ | |
EXPOSE 8080 | |