Skip to content

Instantly share code, notes, and snippets.

Working from home

Hendrik Araujo hhendrikk

Working from home
Block or report user

Report or block hhendrikk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hhendrikk / .gitconfig
Last active Apr 2, 2020
My gitconfig using neovim
View .gitconfig
name = <Name>
email = <Email>
editor = code --wait
branch = auto
diff = auto
status = auto
hhendrikk / Entity.cs
Created Jan 13, 2020
NHibernate base entity sample
View Entity.cs
public abstract class Entity<TId>
public virtual TId Id { get; protected set; }
public override bool Equals(object obj)
return Equals(obj as Entity<TId>);
private static bool IsTransient(Entity<TId> obj)
hhendrikk / 1 - Instalação
Created May 17, 2019
redis + sentinel + haproxy + keepalived
View 1 - Instalação

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

View gist:d184cd4b6942e0865eaa1b908c8a0de4
# Sync tags remote to local
git fetch --prune <remote> "+refs/tags/*:refs/tags/*"
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
hhendrikk /
Created Aug 16, 2018 — forked from ishu3101/
Resetting your Windows Subsystem for Linux (WSL) Environment
# Resetting your Windows Subsystem for Linux (WSL) Environment
lxrun.exe /uninstall /full
lxrun.exe /install
hhendrikk /
Created Jul 24, 2018 — forked from myusuf3/
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
View gist:6c62344dcac94d958dd375b97d5281ad
"label": "Test With Coverage",
"command": "dotnet",
"type": "process",
"args": [
"(FullyQualifiedName~Tests.Core) | (FullyQualifiedName~Tests.Query)",
hhendrikk / gist:ae5f9f29dfba872d88c23366f2619b18
Created Mar 8, 2018
Install Vim 8 with Python, Python 3, Ruby and Lua support on Ubuntu 16.04
View gist:ae5f9f29dfba872d88c23366f2619b18
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
cd ~
You can’t perform that action at this time.