This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ASCI Art - A Great wait to express some beautiful typography on your Console Applications!! I decided to add on my README files | |
using the site bellow to create the typo | |
http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Type%20Something%20 | |
And them, expressing it as a Code Markdown mark! Give a try. | |
_ _ | |
___ _ __ _ __ ___ ___| |_ ___ __ _ _ _(_)_ __ ___ __ _ _ __ __ _ ___ ___ | |
/ _ \ '__| '_ \ / _ \/ __| __/ _ \ / _` | | | | | '_ ` _ \ / _` | '__/ _` |/ _ \/ __| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Get The Connection String in your AppSettings.json | |
//Connect on MongoDB | |
var conn = _settings.GetSection("NOSQL:MongoConn").Value; | |
var mongoclient = new MongoClient(conn); | |
//Get your DataBase | |
var db = _settings.GetSection("NOSQL:CobrancaNOSQLDB").Value; | |
_mongoDB = mongoclient.GetDatabase(db); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use this code on AZURE CLI to Create a RocketChat instance on Azure Container Repository , using a public image from GitHub | |
# Before run the code, you need a MongoDB Instance Deployed (url on MONGO_URL parameter) | |
az container create --resource-group <name of your resource group> --name <nameofyourcontainer> --image rocket.chat --restart-policy OnFailure --environment-variables MONGO_URL=mongodb:\\<YOur MongoDB Url> --ports 3000 -ip-address public |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Random Numbers | |
use ${__Random(100,300)} on your request body to generate a random number betweeb 100 and 300. | |
## Random Letters | |
use ${__RandomString(1,CD)} on your request body to generate a random letter in C or D. | |
## UUID to identification |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
union | |
app('ADD YOU APP INSIGHTS NAME 1').performanceCounters, | |
app('ADD YOU APP INSIGHTS NAME 2').performanceCounters | |
| summarize Instancias = dcount(cloud_RoleInstance) by cloud_RoleName | |
|order by Instancias desc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requests | |
| summarize Request_Time = count() by performanceBucket | |
| render barchart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Here is the Code Snippet to extract fields in a Issue Template on GITHUB when using type INPUT and DROPDOWN. | |
//The end result is a MAP object wher you can get it from other Jobs and use in your code like: | |
//When using the github-script action (https://github.com/actions/github-script) , it enables JavaScript language | |
//for scripting bu you can adapt to any language | |
//usages: let value = map["### LabelField01"] | |
let conteudo = context.payload.issue.body; | |
console.log (conteudo); | |
let conteudoNoBlankLines= conteudo.replace(/(^[ \t]*\n)/gm, ""); |