Skip to content

Instantly share code, notes, and snippets.

View christianrickert's full-sized avatar

Christian Rickert christianrickert

View GitHub Profile
@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 October 23, 2022 22:56
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