Skip to content

Instantly share code, notes, and snippets.

View peter-avila's full-sized avatar

Peter Avila peter-avila

View GitHub Profile
@chris-gillatt
chris-gillatt / setup_fedora_kde_xrdp.sh
Last active October 25, 2025 06:03
Set up Fedora 41, complete with a desktop environment to RDP to.
#!/bin/bash -e
# Define variables
USER_NAME="user"
RDP_PORT=3389
# Create a new password for the RDP user
USER_PASSWORD=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-12})
# Check for root privileges
if [[ $EUID -ne 0 ]]; then
@devinschumacher
devinschumacher / normalize.css
Last active November 22, 2025 18:06
normalize.css | CSS Reset | Reset CSS Style Rules | 2024, 2025
/*!
https://serp.co/tools/css-reset/
<link rel="stylesheet" href="https://css.serp.co/css-reset/normalize.css/">
*/
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active December 8, 2025 16:53
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@brayevalerien
brayevalerien / monokai.md
Last active November 10, 2025 14:18
Monokai theme color codes

Monokai theme color codes

Intro

This document lists the colors used in the Monokai Pro theme with the Classic filter. Please check the Monokai Pro website for more informations.

Colors

Monokai Pro with Classic filter colors:

Preview Hexadecimal RGB
Activity Bar Background activity bar background preview #272822 (39, 40, 34)
Activity Bar Foreground activity bar foreground preview #f8f8f2 (248, 248, 242)
@itsfolf
itsfolf / vnc.md
Last active November 26, 2025 18:32
How to setup VNC on Wayland (Sway) + SDDM for unattended access

How to setup VNC on Wayland (Sway) + SDDM for unattended access

1. Install both x11vnc and wayvnc

Since SDDM runs under X11 we will be running two separate vnc services, each on it's own port. x11vnc will take care of SDDM, while wayvnc will handle our desktop session. Both services are set up with SSL encryption.

While it's technically possible to run a single service with some scripting magic to switch between the two, this was by far the easiest and most reliable way.

2. Set up x11vnc

Set a password

@codeSTACKr
codeSTACKr / mongodb_cheat_sheet_2022.md
Created January 10, 2022 22:54
MongoDB Cheat Sheet 2022
@the-spyke
the-spyke / pipewire.md
Last active November 30, 2025 03:52
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@miguelmota
miguelmota / install.sh
Last active December 8, 2025 18:01
Arch linux install Ly display manager
chmod +x ~/.xinitrc
sudo pacman -S ly
sudo systemctl enable ly.service
sudo systemctl start ly.service
# config
sudo vim /etc/ly/config.ini
sudo systemctl restart ly.service
@roalcantara
roalcantara / XDG.cheat-sheet.md
Last active December 4, 2025 09:59
XDG cheat sheet

XDG - Base Directory Specification

Directories

Base

The intended use-case for BaseDirectories is to query the paths of user-invisible standard directories that have been defined according to the conventions of the operating system the library is running on.

@peteristhegreat
peteristhegreat / Readme.md
Last active November 26, 2025 09:12
Realtek bluetooth usb adapter RTL8671b