Skip to content

Instantly share code, notes, and snippets.

View christianrickert's full-sized avatar

Christian Rickert christianrickert

View GitHub Profile
@christianrickert
christianrickert / QuPath Memory Monitor.groovy
Last active March 9, 2026 22:52 — forked from petebankhead/QuPath Memory Monitor.groovy
Groovy script to help monitor QuPath's memory use over time
/**
* A basic GUI to help monitor memory usage in QuPath.
*
* This helps both to find & address out-of-memory troubles by
* 1. Showing how much memory is in use over time
* 2. Giving a button to clear the tile cache - which can be
* using up precious memory
* 3. Giving quick access to control the number of threads used
* for parallel processing
*
@christianrickert
christianrickert / install_cellpose_macos.zsh
Created June 10, 2023 21:01
install `cellpose` on MacOS with `conda` and `pip`
# remove previous conda environment (optional)
conda deactivate
conda remove --name cellpose --all
# create your `cellpose` environment
conda create --name cellpose
# install dependencies and `cellpose[gui]` package from `conda-forge`
conda activate cellpose
conda install -c conda-forge pyqt pyqtgraph 'cellpose[gui]'
@christianrickert
christianrickert / restic_backup.bat
Created November 28, 2022 19:31
(Windows) restic backup to a network drive
@ECHO OFF
TITLE Restic backup
:: mount network drive for Administrator command prompt
NET USE Z: \\data.server.pvt\your\data
:: manually create remote restic repository with (optional) compression
:: restic.exe init --repo "Z:\repo" --repository-version latest
:: set RESTIC_PASSWORD system variable before accessing repository
@christianrickert
christianrickert / Makevars
Last active January 26, 2025 01:10
Install 'data.table' R package with OpenMP on MacOS
## R expects this file to be in its hidden config folder
# mkdir ~/.R
# touch ~/.R/Makevars
## Install 'OpenMP' using Homebrew in Terminal
# brew update && brew install libomp
## Include 'OpenMP' library with clang
HOMEBREW_PATH=/opt/homebrew
# 'openmp' was symlinked (package)
@christianrickert
christianrickert / ijm.vim
Last active April 30, 2022 23:30
ImageJ syntax file for Vi IMproved
autocmd BufNewFile,BufRead *.ijm set syntax=C