Skip to content

Instantly share code, notes, and snippets.

View arnobaer's full-sized avatar

Bernhard Arnold arnobaer

  • MBI - Marietta Blau Institute for Particle Physics, OeAW
View GitHub Profile
@arnobaer
arnobaer / k24xx.md
Last active October 18, 2021 10:40

SCPI Commands for Keithley SMUs

Command K2410 K2470
identity *IDN? *IDN?
reset *RST *RST
clear *CLS *CLS
get error :SYST:ERR? :SYST:ERR?
set beeper :SYST:BEEP:STAT <OFF,ON> n/a
set terminals :ROUT:TERM \ :ROUT:TERM \
@arnobaer
arnobaer / ly.py
Created February 11, 2022 15:38
Darklyrics from cmus for your terminal.
#!/usr/bin/env python3
import subprocess
import urllib.request
import os
import re
import sys
def download(artist: str, album: str) -> str:
@arnobaer
arnobaer / fractional_prescales.cc
Created September 8, 2022 11:56
Prescale counter for fractional prescales with fixed precision.
// Prescale counter for fractional prescales with fixed precision.
#include <iostream>
#include <cmath>
#include <limits>
struct PrescaleCounter {
const size_t prescale_count;
const size_t single_step;
@arnobaer
arnobaer / .Xmodmap
Created August 26, 2024 10:58
xmodmap for german on english keyboards
! Map umlauts to RIGHT ALT + <key>
keycode 108 = Mode_switch
keysym e = e E EuroSign
keysym c = c C cent
keysym a = a A adiaeresis Adiaeresis
keysym o = o O adiaeresis Adiaeresis
keysym u = u U adiaeresis Adiaeresis
keysym s = s S ssharp