Skip to content

Instantly share code, notes, and snippets.

View relalis's full-sized avatar

Yehia Hafez relalis

View GitHub Profile
@relalis
relalis / HiFi.conf
Last active January 9, 2023 09:29
Kernel config with all builtin modules to get functional ALSA/pulseaudio on CB315-2H (AMD Aleena Chromebook)
# Place in /usr/share/alsa/ucm2/conf.d/acpd7219m98357/HiFi.conf
SectionVerb {
Value {
FullySpecifiedUCM "1"
}
EnableSequence [
cdev "hw:acpd7219m98357"
cset "name='Playback Digital Volume' 111"
@relalis
relalis / save_page.py
Created October 4, 2023 15:21 — forked from charles-l/save_page.py
A python script to save the Firefox Reader view of a page with images. Kind of a personal archive.org tool but using zip and HTML files rather than WARC.
#!/usr/bin/env python3
from bs4 import BeautifulSoup
from readability import Document
import click
from click import echo
import requests
import slugify
import os
#!/bin/bash
WINE_GIT_URL="https://gitlab.winehq.org/wine/wine.git"
STAGING_GIT_URL="https://github.com/wine-staging/wine-staging.git"
BUILD_DIR="$(pwd)/wine_staging_macos_build"
echo "** Wine build files will be saved to \`$BUILD_DIR\` **"
mkdir -p "$BUILD_DIR/wine64-build"
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 6.6.0-rc3 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (Debian 12.2.0-14) 12.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=120200
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24000
@relalis
relalis / tinc-install.sh
Created September 18, 2024 09:41 — forked from Xumeiquer/tinc-install.sh
Tinc VPN installation wizard
#!/bin/bash
#
# Tinc install script
#
# Original: https://gist.github.com/jpillora/9069c7421fd70a4dae92
#
# Adapted by Xumeiquer
#
# Version: 1.0
# Version: 1.1
@relalis
relalis / hdmi-toggle.service
Created May 21, 2025 17:17
HP Envy k151 HDMI-In switch
# /etc/systemd/system/hdmi-toggle.service
[Unit]
Description=HDMI Button Watcher
[Service]
ExecStart=/usr/local/bin/k151_watch_hdmi_button.py
Restart=always
[Install]