Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@samwan
samwan / gradient_autoshutdown.ipynb
Last active June 1, 2018 18:22
Attempting auto-shutdown for Paperspace Gradient
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Adapting this auto-shutdown tutorial to work with Gradient Notebooks, which don't provide ssh access: https://paperspace.zendesk.com/hc/en-us/articles/115002807447"
]
},
{
<!--
By Samuel Wan (samuelwan.com), April 2009.
This code comes with no warrantees or guarantees. Use at your own risk.
No rights reserved.
This experiment is interesting to me as an attempt to bootstrap an HTML / Javascript file list, editor, AND renderer into a single CouchDB design file.
Instructions:
1) Put this in your _utils folder and access it over couchdb. (Sub-directory reverse proxying not supported)
E.g. http://localhost/_utils/editor2.html