Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Hendrik Araujo hhendrikk

🏠
Working from home
View GitHub Profile
@hhendrikk
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
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
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@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",
You can’t perform that action at this time.