Skip to content

Instantly share code, notes, and snippets.

@jonas-hagen
jonas-hagen / liveplot.py
Created April 24, 2020 12:15
Quick live plot script that plots values from stdin (one value per line).
import numpy as np
import sys
from pyqtgraph.Qt import QtGui, QtCore
import pyqtgraph as pg
app = QtGui.QApplication([])
num_points = 100
values = []
@jonas-hagen
jonas-hagen / document.tex
Created December 19, 2019 08:48
Minimal latex document
\documentclass[a4paper]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[german, english]{babel}
\begin{document}
Lorem ipsum ...
@jonas-hagen
jonas-hagen / b2_backup.conf
Created November 30, 2019 19:20
Bash script for backing up folders to backblaze B2.
# Example contents of /etc/b2_backup.conf
B2_ACCOUNT_ID=1234567890
B2_API_KEY=abcdefghijklmop
B2_BUCKET_ID=aaaabbbbccccddddeeee
KEY=secure_and_secret_password_for_encryption

Keybase proof

I hereby claim:

  • I am jonas-hagen on github.
  • I am jhagen (https://keybase.io/jhagen) on keybase.
  • I have a public key ASDLYCbWPsS8nm1u0693UXtt_qIPyoi35G5GNTgDVoBSLAo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.