Skip to content

Instantly share code, notes, and snippets.

View fredldotme's full-sized avatar

Alfred E. Neumayer fredldotme

View GitHub Profile
@fredldotme
fredldotme / keybase.md
Created December 3, 2015 20:17
keybase.md

Keybase proof

I hereby claim:

  • I am beidl on github.
  • I am beidl (https://keybase.io/beidl) on keybase.
  • I have a public key ASCU6QvwU5V35CJG8LAuwfDxGvvqP0THxPcW2_0Q7YQdywo

To claim this, I am signing this object:

@fredldotme
fredldotme / interfaces---builtin---speech_dispatcher.go
Last active August 25, 2018 15:51
speech-dispatcher snap interface implementation example
// -*- Mode: Go; indent-tabs-mode: t -*-
/*
* Copyright (C) 2018 Alfred Neumayer
* Copyright (C) 2018 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
@fredldotme
fredldotme / halium-ubports-components.diff
Created October 25, 2018 20:56
Ubuntu Touch on Sony Xperia X, built on Halium 7.1
diff --git a/core/main.mk b/core/main.mk
index 76a87bb..f03e22b 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -654,7 +654,10 @@ subdirs += \
# Specific projects for Halium
subdirs += \
halium/hybris-boot \
+ halium/libhybris \
halium/droidmedia \
@fredldotme
fredldotme / makehaliumsysimg
Last active March 7, 2020 18:40
Halium 7.1 Sparse Image Convert
#!/bin/bash
IMAGE_FILE="$1"
IMAGE_FILE_REAL="$1.real"
if [ ! -f "$IMAGE_FILE" ]; then
echo "File $IMAGE_FILE doesn't exist"
exit 1
fi
//-----------------------------------------------------------------------------
// Filename: Program.cs
//
// Description: An abbreviated example program of how to use the SIPSorcery
// core library to place a SIP call. The example program depends on one audio
// input and one audio output being available.
//
// Author(s):
// Aaron Clauson (aaron@sipsorcery.com)
//
@fredldotme
fredldotme / extract android kernel.md
Created October 3, 2020 20:52 — forked from azureru/extract android kernel.md
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
@fredldotme
fredldotme / mount-pstore.sh
Created October 6, 2020 22:44
Mount encrypted pstore on Ubuntu Touch (sargo/bonito)
#!/vendor/bin/sh
# Decrypt the keys and write them to the kernel
LD_LIBRARY_PATH=/vendor/lib64:/system/lib64:/android/system/lib64/vndk-28 /vendor/bin/ramoops -D
# Pivot (and decrypt)
echo 1 > /sys/devices/virtual/ramoops/pstore/use_alt
# Trigger remount of pstore regardless of decryption state
# setprop vendor.ramoops.decrypted true
@fredldotme
fredldotme / ril_subscription.conf
Created November 2, 2020 17:49
bonito-sargo-ril-subscription-1.conf (/etc/ofono/ril_subscription.conf)
# This is a sample configuration file for Jolla ril driver
#
# This file is expected to be installed in /etc/ofono
#
# Configuration for each modem is defined in its own [ril_x] section,
# common settings are in the [Settings] section, all other sections
# are ignored.
#
# If any value from [ril_x] section (except "socket") is defined
# in the [Settings] section, it becomes the default for all modems.
@fredldotme
fredldotme / iradio12-install.sh
Created November 27, 2020 23:35
IRadio 1.1 & 1.2 testing
sudo ubports-qa install xenial_-_android9_-_iradio12
sudo mount -o remount,rw /
sudo tee /etc/apt/preferences.d/ubports-xenial_-_android9_-_iradio12.pref <<EOF
Package: *
Pin: release o=UBports,a=xenial_-_android9_-_iradio12
Pin-Priority: 2020
EOF
@fredldotme
fredldotme / centos8-chroot.sh
Created December 20, 2020 16:03 — forked from snixon/centos8-chroot.sh
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