Skip to content

Instantly share code, notes, and snippets.

@Daviteusz
Daviteusz / gtk.css (gtk-3.0)
Last active April 17, 2024 14:06
KDE: Complete fix for padding and tiny min/max/restore/close buttons for GTK programs.
/* Edit .config/gtk-3.0/gtk.css and add: */
headerbar, headerbar arrow, headerbar box, headerbar button, headerbar contents, headerbar entry, headerbar image, headerbar menubutton, headerbar slider, headerbar splitbutton, headerbar trough {
margin: 0;
min-height: 0;
}
headerbar {
border-top: 0;
padding-right: 0;
@Daviteusz
Daviteusz / ALARM.md
Last active March 19, 2024 21:59
ALARM_BTRFS

BTRFS on ArchLinux | ARM

Convert MBR to GPT (optional)

  • mbr2gpt can be found here.
./mbr2gpt /dev/sdX
@Daviteusz
Daviteusz / config.txt
Created January 5, 2024 15:30
My RPI4 config.txt options
...
[all]
# Turn off WiFi and Bluetooth
dtoverlay=disable-wifi
dtoverlay=disable-bt
# Turn off Power LED
dtparam=pwr_led_trigger=default-on
dtparam=pwr_led_activelow=off
@Daviteusz
Daviteusz / RaspiOS_BTRFS.md
Last active January 19, 2024 21:41
RaspberryPI OS 12 (bookworm) BTRFS

BTRFS on RaspberryPi OS 12 (bookworm)

  • It is best to follow these steps on a PC.
  • If you fresh install your RaspiOS, then boot RPI once to complete OS configuration.

Convert MBR to GPT (optional)

  • mbr2gpt can be found here.
# ./mbr2gpt /dev/sdX
@Daviteusz
Daviteusz / json_reformatter.py
Created November 4, 2023 01:48
Reformat JSON files to match source language file
#!/usr/bin/env python3
# Created by https://github.com/Daviteusz
# Source: https://github.com/Yubico/yubioath-flutter/blob/main/arb_reformatter.py
# Thanks to https://github.com/AdamVe for small updates to language detection
# Huge thanks to https://github.com/emlun for modify scipt to use JSON parser
# Adjusted to work with .json files by Daviteusz