Skip to content

Instantly share code, notes, and snippets.

View matthewfeickert's full-sized avatar

Matthew Feickert matthewfeickert

View GitHub Profile
@matthewfeickert
matthewfeickert / .gitattributes
Last active November 17, 2024 09:12
'hello world' using ncurses from conda-forge
# SCM syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
@matthewfeickert
matthewfeickert / .gitattributes
Last active November 4, 2024 10:29
Local pixi build attempt of Shepa v2.2.16
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
@matthewfeickert
matthewfeickert / .gitattributes
Created October 21, 2024 23:08
Trivial example of using pixi to install ROOT and Python that isn't the latest Python
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
@matthewfeickert
matthewfeickert / .gitattributes
Last active October 17, 2024 09:26
Minimal Gist of Delphes failing to build on macOS using conda-forge tools
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
@matthewfeickert
matthewfeickert / README.md
Last active October 3, 2024 00:23
pixi GitHub Discussion 2191
$ pixi --version
pixi 0.30.0

For testing purposes, I'm trying to create lock files for an ecosystem of tools across multiple Python versions. To avoid having to repeat describing the dependencies, I'd like to use pixi's features to define the tools once in one feature (with lower bounds only as this would be part of nightly/weekly solves) and then have the Python version exist in a separate feature. The goal here is to be able to create environments quickly by composing features together like

FROM mambaorg/micromamba:1.5.9-bookworm-slim
USER mambauser
SHELL [ "/bin/bash", "-c" ]
# Use C.UTF-8 locale to avoid issues with unicode encoding
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
@matthewfeickert
matthewfeickert / .gitignore
Last active August 10, 2024 17:38
Build and install a conda package with rattler-build
# build products
output/
example
# pixi environments
.pixi
*.egg-info
@matthewfeickert
matthewfeickert / README.md
Last active June 13, 2024 06:38
CUDA enabled pytorch env with pixi

Minimal PyTorch CUDA environment with pixi

Based off of the pixi docs example

Steps

  1. Install pixi
    • curl -fsSL https://pixi.sh/install.sh | bash
  2. pixi run detect-gpu
  • If this is your first time doing anything in the environment pixi will run pixi install for you first.
@matthewfeickert
matthewfeickert / README.md
Last active July 19, 2023 21:49
Use VS Code to run notebooks on remote servers in environments built on top of LCG views

Use VS Code to run notebooks on remote servers in environments built on top of LCG views

(Note that this whole thing is a bit cursed as LCG views are a terrible way to distribute Python environments)

Setup

Get a working VS Code server on the remote

Requires:

@matthewfeickert
matthewfeickert / README.md
Last active September 1, 2023 09:32
Use GMail's SMTP servers to use CERN email account as an alias

Use GMail's SMTP servers to use CERN email account as an alias

  1. Enable [forwarding of emails from Outlook][outlook-forwarding] to GMail

    1. In Outlook select Settings > Mail > Forwarding.
    2. Select "Enable forwarding".
    3. Enter your GMail address in the box under "Forward my email to:".
    4. (Optional, but recommended) Select "Keep a copy of forwarded messages"

[![outlook-view][outlook-view-gist]][outlook-forwarding]