Skip to content

Instantly share code, notes, and snippets.

View stever's full-sized avatar

Steve Robertson stever

View GitHub Profile
@stever
stever / .bashrc
Created January 6, 2023 12:11
Bash alias to list docker processes sorted by name
alias docker_sort='docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Status}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 2 )'
@stever
stever / pi-general-benchmark.sh
Last active July 20, 2021 18:01 — forked from geerlingguy/pi-general-benchmark.sh
Raspberry Pi Benchmark Suite - Phoronix
#!/bin/bash
#
# Benchmark script for Ubuntu 20.04 on Raspberry Pi.
#
# WARNING: This script is meant to be run as the root user.
# This script should never be run on a system/partition you
# care about. You should only run this on a system that you
# intend to use only for benchmarking and can reinstall or
# re-flash easily.
#
.markup.jupyter { /*!
*
* Twitter Bootstrap
*
*/
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
@stever
stever / gitea-blog.md
Created March 31, 2021 18:51 — forked from HarvsG/gitea-blog.md
draft for gitea blog post
date author title tags draft
2020-07-22T20:00:00+00:00
HarvsG
How to render Jupyter Notebooks on Gitea
rendering
jupyter
ui
true

How to render Jupyter Notebooks on Gitea


@stever
stever / serve.go
Last active June 18, 2023 12:55
Go serve files over HTTP. Useful for testing a HTML web application.
package main
import (
"log"
"mime"
"net/http"
"path/filepath"
)
func main() {