Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jreniel's full-sized avatar
👽

Jaime R Calzada jreniel

👽
View GitHub Profile
@jreniel
jreniel / multitasking.py
Created February 18, 2023 15:20 — forked from donkirkby/multitasking.py
Worker processes with mpi4py
#! /usr/bin/env python
import argparse
import csv
from mpi4py import MPI
import logging
import time
def parseOptions(comm_world):
parser = argparse.ArgumentParser(
# tmux mouse support
set -g mouse on
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/.local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/.local/lib:$HOME/.local/lib64:$LD_LIBRARY_PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.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
@jreniel
jreniel / tmux_local_install.sh
Last active June 11, 2020 13:07 — forked from ryin/tmux_local_install.sh
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=3.1b
" bootstrap vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source ~/.vimrc
endif
" initialize vim-plug
call plug#begin()
@jreniel
jreniel / venv_notes.md
Last active February 2, 2020 14:32
Quick notes on Python virtual environments.

Quick notes on Python virtual environments

There are many reason why someone would want to install certain software packages to a Python virtual environment instead of using the system package manager. In general, the use of Python virtual environments is recommended when:

  • the package you want to install is at an early stage of development, and is not yet available in a public release format through PyPi (meaning you can't simply do 'pip install mymodule' in your terminal because the package is not available in PyPi).
  • your operating system does not provide a specific version of Python that is required to run the code.
  • you are working as a developer on a project.
  • you want to test the code in multiple Python versions.
  • you want to meet certain library dependencies by installing them to an isolated system environment that does not affect the global scope of the user.

This is an incomplete list of reasons, but I hope these are enough to give the general sense of why and when to use Python virtual env