Skip to content

Instantly share code, notes, and snippets.

View HermesMartins's full-sized avatar

Hermes Martins HermesMartins

  • São Paulo
  • 11:35 (UTC -03:00)
View GitHub Profile
@HermesMartins
HermesMartins / gist:5f82f5e33e0092ec7eb652c1c05d6b10
Created April 6, 2018 14:17
Fixed .gitignore cache problem
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
# fixed git ignore
git add .
git commit -m 'fixed .gitignore'
@HermesMartins
HermesMartins / install_node_manjaro.md
Last active August 31, 2020 08:54
Como instalar o Node.JS no Manjaro Linux

Guia Rápido - Instalação do NodeJS no Manjaro Linux

1 - Primeiramente vamos fazer a instalação do nvm (node version manager - https://github.com/creationix/nvm) através do nosso gerenciador de pacotes yaourt:

$ yaourt -S nvm

2 - Depois vamos adicionar o nvm ao nosso shell, no meu caso o zshrc:

$ echo 'source /usr/share/nvm/init-nvm.sh' >> ~/.zshrc
$ source .zshrc 
@HermesMartins
HermesMartins / README.md
Last active September 21, 2018 21:49
Using a package with composer from local git repository

Using a package with composer from local git repository

This is a simple guide to use a package with composer from local git repository.

Imagine you have forked the repository bandwidth-throttle/token-bucket and pushed some changes on a branch called new-feature.

Now, you want to use it on another project. How to do this?

First, you need to do some changes on composer.json file in your main project.