Skip to content

Instantly share code, notes, and snippets.

View jsjolund's full-sized avatar

Johannes Sjölund jsjolund

View GitHub Profile
#!/usr/bin/env python3
# kairosdb-downloader
# This Python code is an example of how to download metrics from KairosDB and plot them using matplotlib. Run it with:
# python plot_kairosdb.py
import json
from datetime import datetime
import matplotlib.dates as md
@jsjolund
jsjolund / Dockerfile
Last active June 6, 2024 00:37
Dockerfile for running lollms-webui with Nvidia cuBLAS support
FROM nvcr.io/nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive\
SHELL=/bin/bash\
PATH="/opt/venv/bin:$PATH"
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
# Install apt packages
@jsjolund
jsjolund / Dockerfile
Last active June 29, 2023 23:41
Dockerfile for running llama.cpp with Nvidia cuBLAS support
ARG CUDA_VERSION=12.1.1-devel-ubuntu22.04
FROM nvidia/cuda:${CUDA_VERSION}
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive \
SHELL=/bin/bash
# Set locale
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
@jsjolund
jsjolund / sierpinski.html
Created June 25, 2023 20:44
This HTML file contains JavaScript code that generates a Sierpinski Gasket with 5 iterations of triangles.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sierpinski Gasket with JavaScript</title>
<style>
.small { fill: none; stroke: black; stroke-width: 1; }
</style>
</head>
@jsjolund
jsjolund / Morrowind MWSE Linux Wine.md
Last active July 11, 2023 17:55
Install Morrowind MWSE mods on Linux with Wine

Read on Steam Community Guides

How to install Morrowind MWSE mods on Linux

In this Linux tutorial, we use Wine to install vanilla Morrowind mods that require MWSE. It works on both the GOG and Steam versions of Morrowind.

These instructions should work on most Linux distributions. They have been tested on:

  • Arch Linux with Wine 8.11
  • Debian Bookworm (12) and Wine 8.0