Skip to content

Instantly share code, notes, and snippets.

@thorrr
thorrr / jupyter_6.sh
Created March 3, 2024 14:13
Install the latest Jupyter 6.xx with extensions activated
#!/usr/bin/env bash
# shellcheck disable=SC2155 # irrelevant because of set -e
set -euo pipefail
readonly VENV_NAME=venv
readonly BLACK_LINE_LENGTH=110
readonly packages=(
@thorrr
thorrr / .tmux.conf
Created March 3, 2024 14:40
tmux.conf - change leader key to `
# Change prefix key to backtick (`)
unbind C-b
set-option -g prefix `
bind ` send-prefix
# history size - number of lines
set -g history-limit 100000
####################################
# make scroll/"copy" mode friendlier
@thorrr
thorrr / .dir-locals.el
Created March 5, 2024 14:52
.dir-locals.el: auto activate virtualenv called "venv" in python project directory
((nil . (
(eval . (setq pyvenv-activate (concat (locate-dominating-file default-directory ".dir-locals.el") "/venv/")))
(eval . (setq lsp-pylsp-server-command
(concat (locate-dominating-file default-directory ".dir-locals.el") "/venv/bin/pylsp")))
)))