Skip to content

Instantly share code, notes, and snippets.

@Exef
Exef / ExampleGenServer.ex
Created September 28, 2017 18:10 — forked from Kociamber/ExampleGenServer.ex
Example implementation of Elixir GenServer and some nice comments.
defmodule ExampleGenServer do
## Client API
use GenServer
# Starts detached process of GenServer
def start_link do
# Fisrt arg is a GenServer's module name, second one is its initial state and/or its type
# Name of a process can be specified (name: :name) but it also prevents of running multiple process of the same type
@Exef
Exef / .tmux.conf
Created July 16, 2017 05:56 — forked from gblmarquez/.tmux.conf
.tmux.conf with fish as default shell
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# support logging out and back in
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
# pbcopy support
set-option -g default-command "reattach-to-user-namespace -l bash"
# vi mode
@Exef
Exef / tmux-cheatsheet.markdown
Created April 4, 2017 07:54 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname