Skip to content

Instantly share code, notes, and snippets.

View x-zvf's full-sized avatar

xzvf x-zvf

  • Karlsruher Institut für Technologie
  • Karlsruhe, Germany
View GitHub Profile
@x-zvf
x-zvf / kiosk-instructions.md
Created April 20, 2024 09:45
Raspberry PI kiosk

Raspberry Pi Kiosk with Read-only Filesystem

Create a simple Raspberry Pi image which will display a fullscreen webpage on boot.

Set up

  1. Install 32bit legacy Raspberry PI OS (because 64bit chromium is somewhow worse than 32bit)
    • tip: Use RPI imager to enable Wifi + SSH
  2. Use gui settings->screen configuration to set screen orientation
  3. Open chromium -> settings -> DISABLE Use hardware acceleration (yes, it is even worse with HA)
@x-zvf
x-zvf / c-is-great.c
Created November 11, 2023 18:02
C is a great programming language
/* All of these things are valid, standards conforming C code */
#include<stdio.h>
int arr[10] = {1,2,3,4,5,6,7,8,9,10};
/* Declaration specifiers have no defined order:
* this is equivalent to:
* static volatile unsigned long long l = 4;
* Although GCC does have -Wold-style-declaration (K&R style), which warns about
* static and typedef not being at the start of the declaration.
@x-zvf
x-zvf / Windows11_explorer_customization.md
Last active March 10, 2023 17:10
How to customize Windows 11 explorer

How to customize the navigation panel in Windows 11

Modify CLSID keys in

Computer\HKEY_CURRENT_USER\Software\Classes\CLSID\

for example:

Home folder: {f874310e-b6b7-47dc-bc84-b9e6b38f5903}
Recycle bin: {645FF040-5081-101B-9F08-00AA002F954E}
@x-zvf
x-zvf / update-eclipse.sh
Last active January 31, 2023 10:02
Simple update script to update kit-sqd/programming-lecture-artemis
#!/bin/sh
set -e
PLATFORM="Linux_x86_64"
REPO="kit-sdq/programming-lecture-eclipse-artemis"
TYPE="Grading"
OUTPUTDIR="eclipse"
FILENAME="eclipse.zip"
echo "Updating $REPO type $TYPE for $PLATFORM in $OUTPUTDIR"
@x-zvf
x-zvf / solarized-colors.css
Created August 3, 2020 19:16
Solarized colors as CSS variables; plain and simple
:root {
--base03: #002b36;
--base02: #073642;
--base01: #586e75;
--base00: #657b83;
--base0: #839496;
--base1: #93a1a1;
--base2: #eee8d5;
--base3: #fdf6e3;
--yellow: #b58900;
@x-zvf
x-zvf / archinst.md
Last active November 4, 2022 20:44
Arch install instructions

Arch installation and setup

This gist contains every step I took to install my fully functional rice. Arch linux will be installed on luks encrypted lvm.

0. Preparation

I assume you already have a bootable arch usb and are booted from it. If not, download an arch iso and copy it on to a usb stick with dd (or something like bootiso if you don't trust yourself with dd. (But in that case I do not reccomend installing arch anyway.))