Skip to content

Instantly share code, notes, and snippets.

View fredldotme's full-sized avatar

Alfred E. Neumayer fredldotme

View GitHub Profile
@azureru
azureru / extract android kernel.md
Last active March 17, 2024 21:54
How to Extract Android Kernel And Modify The Boot Ramdisk (Android 4.4) on Allwinner based Processor

Extracting Existing Kernel + Ramfs

Enter the machine using adb shell

Run cat /proc/partitions

  #  Path                     Purpose        Size
  0 /dev/block/mmcblk0                       7761920
  1 /dev/block/mmcblk0p1      data           6085631
@zultron
zultron / low_latency.c
Created July 3, 2019 18:20
Disable CPU idle states using PM QoS framework
// Disable CPU idle states using PM QoS framework
//
// Directly related:
// https://github.com/torvalds/linux/blob/master/Documentation/power/pm_qos_interface.txt
// https://lwn.net/Articles/465195/
// https://access.redhat.com/articles/65410
//
// Network:
// https://elinux.org/images/f/f9/Elc2008_pm_qos_slides.pdf
//
@flexiondotorg
flexiondotorg / preseed-snaps.sh
Created July 17, 2019 09:34
Pre-seed snaps
#!/usr/bin/env bash
if [ -f build-settings.sh ]; then
source build-settings.sh
else
echo "ERROR! Could not source build-settings.sh."
exit 1
fi
SEED_DIR="/var/lib/snapd/seed"
@snixon
snixon / centos8-chroot.sh
Created October 3, 2019 21:19
Build a centos8 AWS AMI in a chroot
#!/bin/bash -ex
# Build a new Centos8 install on EBS volume in a chroot
# Run from RHEL8 or CentOS8 instance - eg: ami-0c322300a1dd5dc79 in us-east-1 (RHEL 8 official image)
# Script expects a second EBS volume, I add them as /dev/sdf in the console
# When the script completes, turn the second EBS volume into your new AMI through the console.
# Adjust the section below to match the device names you're using. Defaults are for an m5.large
# m5 series requires the updated device names
@erdnuesse
erdnuesse / pc-keyboard-ger.keylayout
Created February 13, 2020 18:23
Deutsches Keyboardlayout für Windows Tastaturen auf OSX.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<keyboard group="0" id="4711" name="Win DE" maxout="1">
<layouts>
<layout first="0" last="17" modifiers="Modifiers" mapSet="ANSI"/>
<layout first="18" last="18" modifiers="Modifiers" mapSet="JIS"/>
<layout first="21" last="23" modifiers="Modifiers" mapSet="JIS"/>
<layout first="30" last="30" modifiers="Modifiers" mapSet="JIS"/>
<layout first="33" last="33" modifiers="Modifiers" mapSet="JIS"/>
<layout first="36" last="36" modifiers="Modifiers" mapSet="JIS"/>