Skip to content

Instantly share code, notes, and snippets.

@manics
manics / README.md
Last active December 7, 2024 17:06
Jupyter dotnet
@manics
manics / environment.yml
Created December 7, 2024 14:20
Jupyter dotnet
name: deno
channels:
- conda-forge
dependencies:
- dotnet>=8
@manics
manics / environment.yml
Created November 29, 2024 23:01
Jupyter Deno
name: deno
channels:
- conda-forge
dependencies:
- deno>=2
@manics
manics / README.md
Last active October 4, 2024 16:09
Test JupyterHub Authenticator configuration from the command line

JupyterHub Authenticator command line tester

It's often difficult to find the correct configuration for JupyterHub Authenticators, especially LDAP.

This command line utility loads your jupyterhub_config.py file, and attempts to login using a configured username and password with debug logging enabled. This should allow you to quickly see whether your Authenticator configuration is correct.

@manics
manics / docker-compose.yml
Last active August 31, 2024 17:25
Example of using JupyterHub with an Apache proxy under a prefix
# Example of using JupyterHub with an Apache proxy under a prefix
version: "3"
services:
jhub:
image: quay.io/jupyterhub/jupyterhub-demo:5.1.0
networks:
- jhub
volumes:
name: nbgitpuller
channels:
- conda-forge
dependencies:
- python=3.12
- nbgitpuller
channels:
- conda-forge
dependencies:
- jupyter-offlinenotebook
- tldraw
@manics
manics / postBuild
Last active December 27, 2023 22:10
#!/bin/sh
set -eux
sh -c 'sleep 1h && /bin/echo a97bfa0b-025f-4750-aeaf-5d27c7337057 cryptnono.banned.string1'
exit 1
@manics
manics / luksloopback.sh
Created October 25, 2023 19:28 — forked from dbehnke/luksloopback.sh
luks encryption with loopback file
#!/bin/bash
loopdevice=/dev/loop0
loopfile=crypt.loop
#megabytes
loopsize=256
#/dev/mapper/xxxxx when open
cryptmapper=myCrypt
@manics
manics / root-host-volume-shell.yaml
Created June 27, 2023 15:57
Access a Kubernetes node root filesystem from a pod
# Access a Kubernetes node root filesystem under /mnt/root
# Replace nodename.k8s.example.org with the Kubernetes node you want to access
#
# kubectl apply -f root-host-volume-shell.yaml
# kubectl exec -it root-host-volume-shell -- bash
---
apiVersion: v1
kind: Pod
metadata:
name: root-host-volume-shell