Skip to content

Instantly share code, notes, and snippets.

View happylinks's full-sized avatar
💭
video is hard

Michiel Westerbeek happylinks

💭
video is hard
View GitHub Profile
# fix ssh agent when tmux is detached
setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
@happylinks
happylinks / .inputrc
Created May 2, 2017 19:41
~/.inputrc
set editing-mode vi
set keymap vi-command
@happylinks
happylinks / neovim
Last active May 2, 2017 19:17
Neovim setup
rm ~/.vimrc
cd ~ && wget https://gist.githubusercontent.com/happylinks/01c91c06fce6f653090263118136d003/raw/d6d827d46415b952de9e3fb3309dcea54cc7ec8d/.vimrc
mkdir -p ~/.config/nvim/
ln -s ~/.vimrc ~/.config/nvim/init.vim
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
@happylinks
happylinks / .gitconfig
Last active April 8, 2017 13:34
.gitconfig
[user]
email = happylinks@gmail.com
name = Michiel Westerbeek
[core]
editor = vim
[alias]
# one-line log
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
// https://github.com/ctrlplusb/react-async-component
const AsyncProduct = createAsyncComponent({
resolve: () => import('./MyComponent'),
Loading: MyLoadingComponent,
// No error component
// No delay
ssrMode: 'render', // default
});
vs
@happylinks
happylinks / .vimpackages
Last active April 1, 2017 19:12
.vimpackages
ale
completor.vim
ctrlp.vim
neoformat
nerdtree
vim-airline
vim-airline-themes
tern_for_vim
vim-gitgutter
vim-javascript
@happylinks
happylinks / .vimrc
Last active May 8, 2017 14:57
.vimrc
set encoding=utf-8
call plug#begin()
Plug 'rakr/vim-one'
Plug 'scrooloose/nerdtree'
Plug 'airblade/vim-gitgutter'
Plug 'w0rp/ale'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'sbdchd/neoformat'
Plug 'maralla/completor.vim', {'do': 'cd pythonx/completers/javascript && npm install'}
// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "Fira Code",
"editor.fontSize": 12,
"editor.fontLigatures": true,
"editor.tabSize": 2,
"editor.renderWhitespace": "all"
}
[
{
"key": "ctrl+left",
"command": "subwordNavigation.cursorSubwordLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+right",
"command": "subwordNavigation.cursorSubwordRight",
"when": "editorTextFocus"
### Keybase proof
I hereby claim:
* I am happylinks on github.
* I am happylinks (https://keybase.io/happylinks) on keybase.
* I have a public key whose fingerprint is C6BE A339 A34C BFA9 3555 CB4D 21FC DEF9 6BBA 3C10
To claim this, I am signing this object: