Skip to content

Instantly share code, notes, and snippets.

View akarzim's full-sized avatar

François VANTOMME akarzim

View GitHub Profile
function dkmee {
# Restart manually NFS (why NFS v3?) due to a bug on docker-machine start
docker-machine ssh local -t sudo mount -v -t nfs -o nfsvers=3 $(docker-machine ip):/Users /Users/
# Set config for ES
docker-machine ssh local -t sudo sysctl -w vm.max_map_count=362144
# Update iptables to access container from localhost without expose host port
# https://docs.docker.com/v17.09/engine/userguide/networking/default_network/container-communication/#container-communication-between-hosts
docker-machine ssh local -t sudo iptables -P FORWARD ACCEPT
}
@akarzim
akarzim / ruby-aliases.zsh
Last active July 12, 2019 15:54
Extend Prezto Ruby module aliases
#
# Aliases
#
# Run Rubocop through Bundler
if (( $+commands[bundle] )); then
alias rbbr='bundle exec rubocop'
fi
# Run Middleman through Bundler
@akarzim
akarzim / readme-aliases.zsh
Last active August 12, 2019 12:52
Aliases to access README.md files
#
# Aliases
#
# Edit README.md in Vim
if (( $+commands[vi] )); then
alias vir='vi README.md'
fi
# Show README.md in terminal
@akarzim
akarzim / orig-aliases.zsh
Created September 27, 2019 09:01
List and remove *.orig files from the current directory
#
# Aliases
#
# List all *.orig files in the current directory
if (( $+commands[ls] )); then
alias lso='ls -al **/*.orig'
fi
# Remove all *.orig files from the current directory