Skip to content

Instantly share code, notes, and snippets.

View jonbiemond's full-sized avatar
⛰️

Jonathan Biemond jonbiemond

⛰️
View GitHub Profile
@jonbiemond
jonbiemond / duck_db_copy_table.py
Last active August 20, 2025 23:22
Duck DB - Copy table between PostgreSQL databases
from dataclasses import dataclass
import duckdb
@dataclass
class DBParams:
user: str = "postgres"
password: str = "postgres"
host: str = "localhost"
@jonbiemond
jonbiemond / .gitconfig
Last active March 4, 2025 10:27
Git config
[user]
email = 101326085+jonbiemond@users.noreply.github.com
name = Jonathan Biemond
[commit]
gpgsign = true
[pull]
rebase = true
[fetch]
prune = true
[diff]
# To reload run source $ZSH_CUSTOM/aliases.zs0
# Custom aliases
alias python="python3"
alias activate="source .venv/bin/activate"
alias relalias="source $ZSH_CUSTOM/aliases.zsh"
alias vialias="nvim $ZSH_CUSTOM/aliases.zsh ; relalias"
alias dockershell="docker compose -f docker-compose.local.yml exec app /bin/bash"
alias dockerhardrestart="docker compose down -v && docker compose up -d"
# Git
@jonbiemond
jonbiemond / tmux.conf
Last active March 4, 2025 05:20 — forked from adibhanna/tmux.conf
Tmux config
#--------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------
# Use Vi mode
setw -g mode-keys vi
# Start window and pane numbering from 1 for easier switching
set -g base-index 1
setw -g pane-base-index 1