Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
CMCDragonkai / linux_kernel_modules_nixos.md
Last active December 16, 2024 22:07
Linux Kernel Modules for NixOS #linux #nixos

Linux Kernel Modules for NixOS

You can find what kernel modules are loaded using lsmod.

However some kernel modules are required at stage 1 boot. Basically preloaded in the initial ram disk before switching to the root filesystem. These kernel modules are mostly needed to deal with peripherals, storage devices, filesystems and network devices. You may need to be wary of these required modules:

  • sd_mod - SCSI, SATA, and PATA (IDE) devices
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active November 2, 2025 23:02
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@rogerfachini
rogerfachini / deployuser.yml
Last active May 24, 2024 22:52
Ansible Role: proxmox
---
- name: Install python-pip
become: true
apt:
name: python-pip
state: installed
- name: Install PIP packages for API use
become: true
pip:
@pjan
pjan / NixOS_on_MBP.md
Last active November 8, 2024 11:51
Installing NixOS on MBP (dual boot)

Create the installation media

  • Download the minimal NixOS ISO

  • (on OSX) write the ISO image to an USB drive:

    sudo dd bs=4m if=path/to/nixos-minimal.iso of=/dev/disk2
    

    where /dev/disk2 is the location of the USB media

@bendews
bendews / pihole-dnsmasq-cloudflared.conf
Created April 5, 2018 09:17
Ansible Playbook to set up PiHole with DNS-Over-HTTPS via cloudflared
server=127.0.0.1#5053
@checco
checco / rw_ro_access.sql
Last active November 28, 2025 14:24 — forked from oinopion/read-access.sql
How to create a read only user in AWS RDS PostgreSQL and a user with superuser privileges on AWS RDS PostgreSQL
--
-- Read only
--
-- Create a group
CREATE ROLE postgres_ro_group;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO postgres_ro_group;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group;
@markreid
markreid / gitflowrebasing.md
Created January 17, 2017 04:30
git flow with rebasing
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active December 4, 2025 01:35
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@enosh
enosh / gen_audiobook_chapters.py
Last active March 17, 2018 23:53
Generate a chapters file for `mp4chaps` from `.mp3` files in the current directory or the one passed as its first argument.
# -*- coding: utf-8 -*-
import sys, re
from datetime import timedelta
from os import listdir, getcwd
from os.path import isfile, join
from mutagen.mp3 import MP3
EXTENSION = ".mp3"
# RE to extract chapter names (name being the first capture group.)