Skip to content

Instantly share code, notes, and snippets.

View wescleymatos's full-sized avatar
:octocat:
I'm ready!

Wescley Matos wescleymatos

:octocat:
I'm ready!
View GitHub Profile
@wescleymatos
wescleymatos / export_commits.sh
Created November 17, 2017 20:32
Exportação de lista de commits
git log --pretty=format:"%h - %s" --decorate --numstat --grep 111045 > C:\Users\Wescley\Documents\log.txt
@wescleymatos
wescleymatos / get_column.sql
Last active December 15, 2017 11:38
Buscar por campos em qualquer tabela do banco de dados Oracle
SELECT * FROM all_tab_columns WHERE upper(column_name) LIKE '%IDRELATORIO%';
@wescleymatos
wescleymatos / ISSUE_TEMPLATE.md
Created December 29, 2017 13:09
Template para criação de issues seguindo o padrão Gherkin

Feature: <title>

In order to As a I want to

Backgroud:

  • Given
  • And

Scenario:

@wescleymatos
wescleymatos / .gitlab-ci.yml
Created January 12, 2018 12:12 — forked from zerda/.gitlab-ci.yml
Gitlab CI for ASP.Net Core project
image: microsoft/aspnetcore-build:1.1
variables:
PROJECT_DIR: "app"
cache:
key: "$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME"
paths:
- .nuget/
@wescleymatos
wescleymatos / .gitlab-ci.yml
Created January 12, 2018 12:21 — forked from yetanotherchris/ .gitlab-ci.yml
.NET Core continous integration with Docker, Kubernetes, Gitlab and Google Cloud
# http://docs.gitlab.com/ce/ci/docker/using_docker_build.html#using-the-gitlab-container-registry
# The docker tag is the first 6 letters of the Git commit id
job_build_dotnet:
stage: build
image: microsoft/dotnet:latest
script:
- dotnet restore
- dotnet publish src/MyProject.Web -c Release
artifacts:

Expected Behavior

Current Behavior

Este PR é relacionado a qual issue?

connected to #


Este PR precisa de atenção especial em algum detalhe?

Caso positivo descreva aqui

@wescleymatos
wescleymatos / convert_img_to_base64.js
Created February 23, 2018 19:14
Converter link de uma imagem para base64
function toDataUrl(url, callback) {
var xhr = new XMLHttpRequest();
xhr.onload = function() {
var reader = new FileReader();
reader.onloadend = function() {
callback(reader.result);
}
reader.readAsDataURL(xhr.response);
};
xhr.open('GET', url);
@wescleymatos
wescleymatos / linq_datatable.cs
Created March 23, 2018 12:07
Exemplo linq com Datatable
IEnumerable<DataRow> query = from avaliacao in tblAvaliacoesServidor.AsEnumerable()
where avaliacao.Field<decimal>("INSITUACAO") == 2
select avaliacao;
DataTable avaliacoesFinalizadas = query.CopyToDataTable<DataRow>();
var somaPontosAvaliacao = (from avaliacao in tblAvaliacoesServidor.AsEnumerable()
where avaliacao.Field<decimal>("INSITUACAO") == 2
select avaliacao.Field<decimal>("NUPONTUACAOTOTAL")).ToList().Sum();
@wescleymatos
wescleymatos / comandos.sh
Last active May 29, 2018 16:54
Lista de comando Linux
# Verificar o tamanho do disco
fdisk -l /dev/sda
# Procurar um processo pelo nome
ps aux | grep solr