Skip to content

Instantly share code, notes, and snippets.

@queeup
queeup / autostart.sh
Created November 9, 2019 21:02
LibreELEC/OpenELEC autostart.sh
#!/bin/sh
## https://wiki.libreelec.tv/autostart.sh
## https://wiki.libreelec.tv/useful_shell_scripts
### For my phillips tv remote
(
logger -t "autostart.sh" "### loading remote control user keytable ###"
ir-keytable -c > /dev/null 2>&1;
ir-keytable -w /storage/.config/rc_keymaps/phillips > /dev/null 2>&1;
@queeup
queeup / bobp-python.md
Created April 16, 2020 19:06 — forked from fiorentinogiuseppe/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@queeup
queeup / [email protected]
Created February 14, 2022 18:50
Dynamic container systemd service
# Dynamic container systemd service
# Files:
# ~/.config/systemd/user/[email protected]
# ~/.config/container@<name of container>.conf
# Usage:
# command: systemctl --user start container@<name of container>
# config: container@<name of container>.conf
[Unit]
Description=Podman %n
@queeup
queeup / debug_logs_for_ssh_problem_on_fedora_arm.md
Last active March 9, 2022 15:02
Debug for arm-image-installer and ssh with pubkey to fedora server

Info about host:

$ ssh -V
OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f  31 Mar 2020

$ cat /etc/os-release 
NAME="elementary OS"
VERSION="6.1 Jólnir"
ID=elementary
ID_LIKE=ubuntu

2022 Zephyrus G14 Fedora Silverblue Setup

GPU Naming

Most applications in Linux will report the names of the two GPUs as follows.

  • Dimgrey Cavefish is dGPU
  • Yellow Carp is iGPU

Boot Hotkeys

@queeup
queeup / HP_Pavilion_AIO_24_Fedora_Silverblue_Audio_Fix.md
Last active June 28, 2022 18:57
HP Pavilion All-in-One AIO 24-xa0xxx Fedora Silverblue Audio Fix
lspci -vnn | grep  -i audio
00:1f.3 Audio device [0403]: Intel Corporation Cannon Lake PCH cAVS [8086:a348] (rev 10) (prog-if 80)

rpm-ostree kargs --reboot --append=modprobe.blacklist=snd_hda_codec_realtek

# tailscale under podman on fedora
# tested on Fedora IOT (arm64 and amd64) and Silverblue (amd64).
# !!! Not to be run as a script (contains reboot) !!!
# ensure the tun module is loaded by default
echo tun > /etc/modules-load.d/tun.conf
# ensure iptables xt_mark module is enabled and loaded
echo xt_mark > /etc/modules-load.d/xt_mark.conf
# ensure iptables ip6table_filter module is enabled and loaded
echo ip6table_filter > /etc/modules-load.d/ip6table_filter.conf
# iptables rather than nftables, for compatibility
@queeup
queeup / fedora36-silverblue.sh
Created June 29, 2022 20:15
install script for Fedora 36 Silverblue
#!/bin/bash
# repos
sudo rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y
sudo sh -c 'echo -e "[repo-tuxedo-computers]
name=TUXEDO Computers - 15.3
baseurl=https://rpm.tuxedocomputers.com/opensuse/15.3
path=/
@queeup
queeup / ubuntu.md
Created July 3, 2022 22:43 — forked from cednore/ubuntu.md
My personal environment setup guide on Ubuntu