Skip to content

Instantly share code, notes, and snippets.

View ThiagoBarradas's full-sized avatar
👽
em marte!

Thiago Barradas ThiagoBarradas

👽
em marte!
View GitHub Profile
##########################################
## ##
## Script for generate new hub apps ##
## run: ##
## .\generate-app.ps1 AppName ##
## ##
##########################################
Param (
[Parameter(Mandatory=$True)]
@ThiagoBarradas
ThiagoBarradas / azure-devops-sonarqube-job
Created June 27, 2019 01:49
azure-devops-sonarqube-job
- job: qa_analysis
dependsOn: unit_tests
steps:
- task: DownloadPipelineArtifact@2
inputs:
artifact: UnitTestResults
- script: |
pwd && ls -la
ls -la $(project_name).Tests
ls -la $(Pipeline.Workspace)
@ThiagoBarradas
ThiagoBarradas / PRIVACY.md
Last active July 5, 2019 00:50
PRIVACY.md

Privacy Policy

Effective date: July 05, 2019

ThiagoBarradas Projects ("us", "we", or "our") operates the https://github.com/ThiagoBarradas website (the "Service").

This page informs you of our policies regarding the collection, use, and disclosure of personal data when you use our Service and the choices you have associated with that data. Our Privacy Policy for ThiagoBarradas Projects is created with the help of the Free Privacy Policy Generator.

We use your data to provide and improve the Service. By using the Service, you agree to the collection and use of information in accordance with this policy. Unless otherwise defined in this Privacy Policy, terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, accessible from https://github.com/ThiagoBarradas

export PATH=$PATH:/usr/share/elasticsearch/bin
yum update elasticsearch -y
elasticsearch-plugin list
elasticsearch-plugin remove ingest-geoip
elasticsearch-plugin remove ingest-user-agent
elasticsearch-plugin remove repository-azure
@ThiagoBarradas
ThiagoBarradas / codacy-dotnet-send-code-coverage.sh
Last active September 10, 2019 10:11
Codacy - send dotnet code coverage
# Download codacy test reporter
curl -L https://github.com/codacy/codacy-coverage-reporter/releases/download/4.0.5/codacy-coverage-reporter-4.0.5-assembly.jar > ./codacy-test-reporter.jar
chmod +x ./codacy-test-reporter.jar
# Install dotnet tools to generate test report
dotnet tool install --global coverlet.console
dotnet add package coverlet.msbuild
# Build solution
dotnet restore
requests==2.8.1
future==0.18.2
Vermelho: 00000001
Verde: 00000010
Azul: 00000100
Amarelo: 00001000
var minhasCores = Cor.Verde | Cor.Azul;
Propriedade Binário Decimal
Verde 00000010 2
Azul 00000100 4
------------------------------
minhasCores 00000110 6
minhasCores.HasFlag(Cor.Azul);
Propriedade Binário Decimal
minhasCores 00000110 6
Azul 00000100 4
------------------------------
resultado 00000100 4
// O bit que indica a cor Azul retornou, o que significa que essa operação retornará true