Skip to content

Instantly share code, notes, and snippets.

View minrk's full-sized avatar

Min RK minrk

View GitHub Profile
"""
Extension for adding points in an assignment
Keeps me sane, stressing that my point totals don't add up.
Defines one role:
- `points` displays points and records number in total
And two directives:
@minrk
minrk / kube_orphans.py
Last active September 28, 2023 13:19
"""
Check for orphan single-user pods
Compares JupyterHub API list of running servers
to list of running pods in kubernetes
in order to identify discrepancies
see https://github.com/jupyterhub/kubespawner/pull/742
"""
c = get_config() # noqa
# create a service with permission to start servers
# (and a silly token to test with)
c.JupyterHub.load_roles = [
{
"name": "spawn-test",
"services": ["spawn-test"],
"scopes": ["read:users", "servers"],
},
FROM ubuntu:22.04
RUN apt-get update && apt-get -y install python3-pip nodejs npm
RUN python3 -m pip install jupyterhub jupyter-server
RUN npm install --global configurable-http-proxy
WORKDIR /tmp
ENV HOME=/tmp
USER 1000
RUN dd if=/dev/random of=10mb.bin bs=1024 count=10240
COPY jupyter_server_config.py /etc/jupyter/jupyter_server_config.py
COPY launch.sh /usr/local/bin/
from dataclasses import dataclass, field
def pytest_configure(config):
# register our markers to avoid warnings
config.addinivalue_line(
"markers", "task(task): label task associated with test"
)
config.addinivalue_line(
"markers", "points(points): assign maximum point value to test results"
)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
linux-64::abinit-9.8.3-h01a89b8_1.conda
- "hdf5 >=1.14.0,<1.14.1.0a0 mpi_mpich_*",
+ "hdf5 >=1.14.0,<1.14.2.0a0 mpi_mpich_*",
linux-64::abinit-9.8.3-hd1b6b71_2.conda
- "hdf5 >=1.14.0,<1.14.1.0a0 mpi_mpich_*",
+ "hdf5 >=1.14.0,<1.14.2.0a0 mpi_mpich_*",
linux-64::abinit-9.8.4-h04af664_0.conda
- "hdf5 >=1.14.0,<1.14.1.0a0 mpi_mpich_*",
+ "hdf5 >=1.14.0,<1.14.2.0a0 mpi_mpich_*",
linux-64::abinit-9.8.4-h04af664_1.conda
This file has been truncated, but you can view the full file.
##[section]Starting: linux linux_64_mpimpich
##[section]Starting: Initialize job
Agent name: 'Azure Pipelines 17'
Agent machine name: 'fv-az241-220'
Current agent version: '3.220.2'
##[group]Operating System
Ubuntu
22.04.2
LTS
##[endgroup]
FROM python:3.10
# install libzmq with drafts enabled
ENV ZMQ_VERSION=4.3.4 \
PREFIX=/usr/local \
CPU_COUNT=4
RUN wget https://github.com/zeromq/libzmq/releases/download/v${ZMQ_VERSION}/zeromq-${ZMQ_VERSION}.tar.gz -O libzmq.tar.gz \
&& tar -xzf libzmq.tar.gz \
&& cd zeromq-${ZMQ_VERSION} \
&& ./configure --prefix=${PREFIX} --enable-drafts \