Skip to content

Instantly share code, notes, and snippets.

View felpasl's full-sized avatar

Felipe Lambert felpasl

  • GWCloud
View GitHub Profile
@felpasl
felpasl / isCpf
Last active June 23, 2021 20:20
validate CPF DataWeave / Mulesoft
%dw 2.0
output application/json
import * from dw::core::Strings
var cpf = leftPad(payload.cpf, 11, "0")
var size = sizeOf(cpf)
var chars = splitBy(cpf, "") [0 to 8]
var verify = splitBy(cpf, "") [9 to 10]
fun sumcpf1(cpf) =
@felpasl
felpasl / ExportAllToMarkdown.ajs
Created June 11, 2019 15:21
#jArchi Create markdown to all Views from file based on smileham/Export to Markdown.ajs
/*
* Export All Views to Markdown
*
* Based on smileham/Export to Markdown.ajs - https://gist.github.com/smileham/578bbbb88dc0ed5a1403f3b98711ec25
* (c) 2018 Steven Mileham
*
*
* Requires jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
*
* Markdown - https://www.markdownguide.org/
#Caso esteja executando no portal o proximo comando não se faz necessário
az login
#Lista as contas ativas
$subName = '<<subscriptionId/Name>>'
$siteName = 'AppSrvWordPressTest'
$RgName = 'RGWordPressTest'
$AppSrvName = 'AppSrvWordPressTest'
az account list
#Seleciona a Subscrição
az account set -s $subName