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
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 / 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",

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.