Skip to content

Instantly share code, notes, and snippets.

Working from home

Hendrik Araujo hhendrikk

Working from home
View GitHub Profile
hhendrikk / config
Created May 15, 2020
Configure denojs in zsh
View config
#enable completions zsh
deno completions zsh > /usr/local/share/zsh/site-functions/_deno
autoload -U compinit && compinit
hhendrikk / .spacemacs
Last active May 4, 2020
Minha configurações do spacemacs
View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
;; Base distribution to use. This is a layer contained in the directory
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)",
You can’t perform that action at this time.