Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# RUN: wget URL_TO_THIS_SCRIPT -O - | bash
# if errors occur running the script try to delete all \r in this script
# timeStamp="$(date +%Y-%m-%d_%T)"
# script script-install-edx-${timeStamp}.log
# bash << EOF
# EOF
# i=1
@klezm
klezm / GoogleColabTOCenhanced.user.js
Last active March 13, 2025 12:49
Notebook Helper (+Google Colab)
// ==UserScript==
// @name Google Colab TOC+
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adds styles to improve the TOC and make it smaller.
// @author klezm
// @match https://colab.research.google.com/drive/*
// @icon https://colab.research.google.com/img/colab_favicon_256px.png
// @grant GM_addStyle
// @run-at document-start
@klezm
klezm / 404.html
Created November 29, 2017 21:41
404 page for spa on github pages (with the placehodlers: 404_TITLE and REPOSITORY_NAME)
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>404_TITLE</title>
<!--the first parameter in content is the time in seconds before redirect-->
<meta http-equiv="refresh" content="2; URL=/REPOSITORY_NAME" />
</head>