Skip to content

Instantly share code, notes, and snippets.

View loganasherjones's full-sized avatar

Logan Jones loganasherjones

View GitHub Profile
apiVersion: v1
kind: Pod
metadata:
annotations:
hub.jupyter.org/servername: test1
hub.jupyter.org/username: test_user
creationTimestamp: "2022-09-09T12:36:38Z"
labels:
app: jupyterhub
chart: jupyterhub-1.2.0
@loganasherjones
loganasherjones / hub-logs.txt
Created September 6, 2022 23:41
Jupyter Hub Logs
[D 2022-09-06 00:41:58.338 JupyterHub application:730] Looking for /usr/local/etc/jupyterhub/jupyterhub_config in /srv/jupyterhub
Loading /usr/local/etc/jupyterhub/secret/values.yaml
No config at /usr/local/etc/jupyterhub/existing-secret/values.yaml
[D 2022-09-06 00:41:58.689 JupyterHub application:752] Loaded config file: /usr/local/etc/jupyterhub/jupyterhub_config.py
[I 2022-09-06 00:41:58.729 JupyterHub app:2479] Running JupyterHub version 1.5.0
[I 2022-09-06 00:41:58.730 JupyterHub app:2509] Using Authenticator: jupyterhub.auth.DummyAuthenticator-1.5.0
[I 2022-09-06 00:41:58.730 JupyterHub app:2509] Using Spawner: kubespawner.spawner.KubeSpawner-1.1.0
[I 2022-09-06 00:41:58.730 JupyterHub app:2509] Using Proxy: jupyterhub.proxy.ConfigurableHTTPProxy-1.5.0
[D 2022-09-06 00:41:58.731 JupyterHub app:1721] Connecting to db: sqlite:///jupyterhub.sqlite
[D 2022-09-06 00:41:58.745 JupyterHub orm:784] Stamping empty database with alembic revision 4dc2d5a8c53c
@loganasherjones
loganasherjones / agnoster-pyenv
Created February 5, 2019 02:39
Display pyenv environment on agnoster prompt
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@loganasherjones
loganasherjones / dsp.py
Created November 9, 2018 04:25
DSP, FFT, Numpy and more
import matplotlib.pyplot as plt
import numpy as np
from scipy import signal
# Our complex impulse response.
imp = signal.unit_impulse(128, dtype=complex)
x = np.linspace(0, 1, 128)
freq_domain = np.linspace(-64, 64, 128)
# Effectively, we have a bunch of 0's and 0+j's, there should be
@loganasherjones
loganasherjones / memory_cache.py
Created September 3, 2017 19:13
A simple in-memory cache.
# -*- coding: utf-8 -*-
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
import uuid
from datetime import datetime
class MemoryCache(object):