Skip to content

Instantly share code, notes, and snippets.

View Riverfount's full-sized avatar
🏠
Working from home

Vicente Marçal Riverfount

🏠
Working from home
View GitHub Profile

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:

[user]
name = Vicente Marçal
email = vicente.marcal@gmail.com
[core]
editor = vim
excludesfile = /home/riverfount/.gitignore_global
[merge]
tool = vimdiff
[color]
status = auto
# PyCharm Configurations
.idea/
.classpath
.project
.settings/
bin/
*.sqlite3
.venv/
#!/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"
#!/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
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
#!/bin/bash
distro=`lsb_release -ds`
kernel=`uname -sr`
echo $kernel $distro
# 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 --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

name: CI
on: pull_request
jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: [3.8.6]
poetry-version: [1.1.4, 1.1.5]