A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| #!/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; |
| # 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 |
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=ubuntulspci -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 |
| #!/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=/ |
| ❗ IMPORTANT: This gist is not actively maintained anymore. See https://github.com/cednore/ubuntu |
|---|
My personal environment setup guide on Ubuntu