Skip to content

Instantly share code, notes, and snippets.

View leandrodasilvaalves's full-sized avatar
🎯
Focusing

Leandro da Silva Alves leandrodasilvaalves

🎯
Focusing
  • Parnamirim-RN, Brasil
View GitHub Profile

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

@leandrodasilvaalves
leandrodasilvaalves / Index-pessoas-exemplo.json
Last active April 3, 2022 20:44
Exemplo de Índice com sinônimos no Elastic Search
// ELK version
// {
// "name" : "elk",
// "cluster_name" : "elasticsearch",
// "cluster_uuid" : "Ke1nBsxySly7JEErHIIZ9w",
// "version" : {
// "number" : "7.8.0",
// "build_flavor" : "default",
// "build_type" : "tar",
1 hostname elliot-01
2 echo elliot-01 > /etc/hostname
3 bash
4 vim /etc/modules-load.d/k8s.conf
5 curl -fsSL https://get.docker.com | bash
6 docker version
7 docker ps
8 apt-get update && apt-get install -y apt-transport-https
9 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
10 echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
@leandrodasilvaalves
leandrodasilvaalves / javascript-remove-accents.js
Last active March 26, 2021 19:17 — forked from marcelo-ribeiro/javascript-remove-accents.js
An Javascript function to remove accents, spaces and set lower case from an input string.
function slugify(str) {
var map = {
'-': ' ',
'-': '_',
'a': 'á|à|ã|â|ä|À|Á|Ã|Â|Ä',
'e': 'é|è|ê|ë|É|È|Ê|Ë',
'i': 'í|ì|î|ï|Í|Ì|Î|Ï',
'o': 'ó|ò|ô|õ|ö|Ó|Ò|Ô|Õ|Ö',
'u': 'ú|ù|û|ü|Ú|Ù|Û|Ü',
'c': 'ç|Ç',
@leandrodasilvaalves
leandrodasilvaalves / settings.json
Created January 13, 2021 10:59
Windows Terminal com Tema Drácula e Git Bash como terminal default
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",

Gulp

Esse passo a passo foi escrito conforme o tutorial do Rodrigo Branas, através do seu canal no youtube;

Processo de Instalação

Para instalar a ferramenta, basta digitar o comando abaixo:

npm install -g gulp-cli
npm install gulp --save-dev

Crir ícone no menu no Linux Mint

Abra um terminal e digite o comando a seguir substituindo os dados pelos seu programa:

sudo nano /usr/share/applications/NOME-DO-SEU-PROGRAMA.desktop

E cole essa configuração dentro do editor nano e mude as configurações de acordo com seu programa:

[Desktop Entry]
@leandrodasilvaalves
leandrodasilvaalves / install-netcore.md
Last active December 3, 2018 10:03
Passo a passo instalação .Net Core no Linux Mint

Passo a passo instalação .Net Core no Linux Mint

Versão do Linux: linuxmint-19-cinnamon-64bit-v2

Data deste documento: 29/10/2018

Execute os passos abaixo em um terminal:

$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
$ sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
@leandrodasilvaalves
leandrodasilvaalves / Passo-a-Passo-para-Identificação-e-Correção-de-BUGS.md
Created September 9, 2018 15:18
Passo a Passo para Identificação e Correção de BUGS

Passo a Passo para Identificação e Correção de BUGS

Guia passo a passo

Definir com o cliente quem será o ponto focal para comunicação das etapas de correção do Bug.

Guia para criação e correção de BUG:

  • Titulo do BUG.
    • Bug em desenvolvimento a ser tratado pelo Dev team;
  • Descrição do BUG (Se existente, anexar evidências: prints, vídeos ou gif).