Skip to content

Instantly share code, notes, and snippets.

@gbausch
gbausch / github-markdown.css
Last active February 8, 2022 12:16
My personal GitHub-markdown settings for VSCode
@media (prefers-color-scheme: dark) {
.markdown-body {
color-scheme: dark;
--color-prettylights-syntax-comment: #8b949e;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-entity: #d2a8ff;
--color-prettylights-syntax-storage-modifier-import: #c9d1d9;
--color-prettylights-syntax-entity-tag: #7ee787;
--color-prettylights-syntax-keyword: #ff7b72;
--color-prettylights-syntax-string: #a5d6ff;
@gbausch
gbausch / rpi-eduroam.md
Last active October 9, 2021 10:37
RaspberryPi mit eduroam verbinden

Download des notwendigen Zertifikats

Download des Zertifikates nach /home/pi/:

wget https://itsz.htwk-leipzig.de/fileadmin/portal/m_itsz/Zertificate_CA/T-TeleSec_GlobalRoot_Class_2.crt

Konfiguration

In /etc/wpa_supplicant/wpa_supplicant.conf einfügen:

@gbausch
gbausch / risc-v_mcycle.c
Last active January 28, 2021 08:16
RISC-V cycle counter readout
// RISC-V cycle counter test
// Gerold Bausch, 2021
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
uint64_t get_mcycle(void) {
uint32_t mcycle, mcycleh;