Skip to content

Instantly share code, notes, and snippets.

View ElXreno's full-sized avatar
💭
I may be slow to respond.

ElXreno ElXreno

💭
I may be slow to respond.
  • Earth, Milky Way, Universe
View GitHub Profile
@sebastiaanfranken
sebastiaanfranken / bootctl-postinst.sh
Created August 26, 2017 21:27
Update Fedora bootctl code, for (U)EFI booting
#!/bin/bash
# Version 0.2 by Sebastiaan Franken
# This is meant and tested on Fedora and Fedora only, with systemd-boot (bootctl)
# Place this file in /etc/kernel/postinst.d/ and don't forget to make it executable
# with chmod +x /etc/kernel/postinst.d/bootctl-postinst.sh
#
# Also, don't forget to modify the rootpath variable to reflect your situation
[ -f /etc/sysconfig/kernel ] && . /etc/sysconfig/kernel
@LnL7
LnL7 / configuration.nix
Last active April 7, 2024 01:08
NixOS configuration overlays
{ config, pkgs, ... }:
let
# Import unstable channel.
# sudo nix-channel --add http://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
# sudo nix-channel --update nixpkgs-unstable
unstable = import <nixpkgs-unstable> {};
in
{
@varhub
varhub / Android - Enable ADB from recovery.md
Created December 23, 2016 17:54
Android - Enable ADB from recovery

Android - Enable ADB from recovery

Credits to @TheOnlyAnil-@Firelord[^stackoverflow]

  • Requirements: a) stock recovery + rooted phone b) custom recovery

  • Files changed:

@xenithorb
xenithorb / kmod-signer.sh
Last active November 16, 2021 07:49
Akmod kernel module auto-signer for kernel upgrades on Fedora
#!/bin/bash
#
# /etc/kernel/postinst.d script to sign akmods kmods after kernel upgrade
#
# Author: Michael Goodwin Date: 2016-09-21
# 1. Copy this script to /etc/kernel/postinst.d/ and `chmod +x` it
#
# 2. Create signing keys (store these somewhere useful and safe):
# $ mkdir -p /etc/pki/tls/private/mok