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
hhendrikk / .gitconfig
Last active Apr 2, 2020
My gitconfig using neovim
View .gitconfig
[user]
name = <Name>
email = <Email>
[core]
editor = code --wait
[color]
branch = auto
diff = auto
status = auto
@hhendrikk
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
hhendrikk / 1 - Instalação REDIS.md
Created May 17, 2019
redis + sentinel + haproxy + keepalived
View 1 - Instalação REDIS.md

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:

tmux

start new with session name:

tmux new -s myname
@hhendrikk
hhendrikk / reset-wsl.sh
Created Aug 16, 2018 — forked from ishu3101/reset-wsl.sh
Resetting your Windows Subsystem for Linux (WSL) Environment
View reset-wsl.sh
# Resetting your Windows Subsystem for Linux (WSL) Environment
lxrun.exe /uninstall /full
lxrun.exe /install
@hhendrikk
hhendrikk / delete_git_submodule.md
Created Jul 24, 2018 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.
View delete_git_submodule.md

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": [
"watch",
"test",
"--filter",
"(FullyQualifiedName~Tests.Core) | (FullyQualifiedName~Tests.Query)",
"/p:CollectCoverage=true",
@hhendrikk
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.