View i3-cheat-sheet.md

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
View batch_generator.py
def generate_batch(generator, batch_size=10):
batch = []
for e in generator:
if len(batch) == batch_size:
yield batch
batch = []
batch.append(e)
if batch:
yield batch
View postdeactivate
#!/bin/zsh
# This hook is sourced after every virtualenv is deactivated.
# Put this file into ~/.envs/ directory
unalias manage
unalias test
unalias startapp
unalias runserver
unalias testm
unalias makemigrations
unalias migrate
View postactivate
#!/bin/zsh
# This hook is sourced after every virtualenv is activated.
# Put this file in the ~/.envs/ directory
alias manage="$VIRTUAL_ENV/bin/python $(pwd)/manage.py"
alias test="$VIRTUAL_ENV/bin/python $(pwd)/manage.py test"
alias startapp="$VIRTUAL_ENV/bin/python $(pwd)/manage.py startapp"
alias runserver="$VIRTUAL_ENV/bin/python $(pwd)/manage.py runserver"
alias testm="$VIRTUAL_ENV/bin/python $(pwd)/manage.py test --nomigrations"
alias makemigrations="$VIRTUAL_ENV/bin/python $(pwd)/manage.py makemigrations"
alias migrate="$VIRTUAL_ENV/bin/python $(pwd)/manage.py migrate"
View .zshenv
# Set Up of pyen and virtualenvwrapper
# export WORKON_HOME=~/.envs
# export PROJECT_HOME=~/Documentos/pythonprojects
# eval "$(pyenv init -)"
# pyenv virtualenvwrapper_lazy
# Alias
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/home/riverfount/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="dracula"
View .gitignore_global
# PyCharm Configurations
.idea/
.classpath
.project
.settings/
bin/
*.sqlite3
.venv/
View .gitconfig
[user]
name = Vicente Marçal
email = vicente.marcal@gmail.com
[core]
editor = vim
excludesfile = /home/riverfount/.gitignore_global
[merge]
tool = vimdiff
[color]
status = auto
View .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Set leader key & Python bin (neovim only) "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let mapleader="\<Space>"
if has('nvim')
let g:python_host_prog = '/Users/cuducos/.virtualenvs/neovim/bin/python'
endif
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
View Keybase.md

Keybase proof

I hereby claim:

  • I am riverfount on github.
  • I am riverfount (https://keybase.io/riverfount) on keybase.
  • I have a public key ASDKCLuMKpmd7CDiufXcXvsuOhZzLw8hR6WIIdvOig2JVgo

To claim this, I am signing this object: