Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View hhendrikk's full-sized avatar
🏠
Working from home

Hendrik Araujo hhendrikk

🏠
Working from home
  • Gama - Distrito Federal
View GitHub Profile
@hhendrikk
hhendrikk / delete_git_submodule.md
Created July 24, 2018 11:57 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@hhendrikk
hhendrikk / reset-wsl.sh
Created August 16, 2018 13:15 — forked from ishu3101/reset-wsl.sh
Resetting your Windows Subsystem for Linux (WSL) Environment
# Resetting your Windows Subsystem for Linux (WSL) Environment
lxrun.exe /uninstall /full
lxrun.exe /install
@hhendrikk
hhendrikk / tmux-cheatsheet.markdown
Created September 15, 2018 18:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# Sync tags remote to local
git fetch --prune <remote> "+refs/tags/*:refs/tags/*"
@hhendrikk
hhendrikk / 1 - Instalação REDIS.md
Created May 17, 2019 18:51
redis + sentinel + haproxy + keepalived

Instalação do Redis no CentOs 7

  • Executar todos os comandos abaixo com usuário root

Pacote adicional para enterprise LINUX (EPEL)

yum -y install epel-release

Instalação do pacote do Redis

yum -y install redis

Criação de diretório e permissão para unixsocket

Building pgModeler in MacOS with Homebrew

The official installation instructions for pgModeler recommends installing Xcode and the Enterprise DB distribution of Postgres to fulfill its build requirements. Luckily, Homebrew's got us covered!

  1. Checkout the source

    git clone https://github.com/pgmodeler/pgmodeler.git