Skip to content

Instantly share code, notes, and snippets.

View jacobtomlinson's full-sized avatar

Jacob Tomlinson jacobtomlinson

View GitHub Profile
def gpu(doc):
fig = figure(title="GPU Utilization", sizing_mode="stretch_both", x_range=[0, 100])
def get_utilization():
return [
pynvml.nvmlDeviceGetUtilizationRates(gpu_handles[i]).gpu
for i in range(ngpus)
]
gpu = get_utilization()
#!/bin/bash
PATH="/path/to/your/miniconda3/bin:<rest of your path>"
eval "$(conda shell.bash hook)"
conda activate jupyter
cd ~ && /path/to/your/miniconda3/envs/jupyter/bin/python -m jupyter lab --port 8888 --no-browser
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>jupyter-startup</string>
<key>ProgramArguments</key>
<array><string>/path/to/my/jupyter/startup/script.sh</string></array>
<key>RunAtLoad</key>
<true/>
---
layout: default
---
## Getting Started
{{ site.description }}
You can add this repository to your local helm configuration as follows :
# _config.yaml
title: Our example Helm chart repo
description: A chart repo for storing charts.
theme: minima
url: "https://helm-repo-example.jacobtomlinson.dev/"
repo_name: helm-repo-example
exclude:
- Gemfile
- Gemfile.lock
# Gemfile
source "https://rubygems.org"
gem "jekyll", "~> 3.8.5"
gem "minima", "~> 2.0"
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem "wdm", "~> 0.1.0" if Gem.win_platform?
# chartpress.yaml
charts:
- name: example
repo: # This should be your GitHub repo name and the url where our GitHub Pages site is being published
git: jacobtomlinson/helm-repo-example
published: https://helm-repo-example.jacobtomlinson.dev/
---
# This little section with the `---` fences is called frontmatter.
# Don't worry about this for now, it'll become clear when we get on to Jekyll.
---
# Hello GitHub Pages
# .travis.yml
sudo: required
language: python
python:
- "3.6"
install:
- curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
- helm init --client-only
# example/Chart.yaml
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: example
version: 0.1.0
# Let's use the Kubernetes logo from wikipedia for our example chart. You will want to use your own logo in yours.
icon: https://upload.wikimedia.org/wikipedia/commons/thumb/3/39/Kubernetes_logo_without_workmark.svg/1280px-Kubernetes_logo_without_workmark.svg.png