Skip to content

Instantly share code, notes, and snippets.

View fredldotme's full-sized avatar

Alfred E. Neumayer fredldotme

View GitHub Profile
@fredldotme
fredldotme / hive.txt
Created March 18, 2022 23:06
Welcome to the (Ubuntu Touch) Hive
Imagine sitting/lazily lying on your couch with your tablet,
getting a call from someone on your Ubuntu Touch smartphone,
and having to start working on a document, preferrably in an
environment you are already having a familiarity with.
You get sent an attachment over the internet by someone,
need to include those in your document, and call it a day.
Now how do we make this workflow a simple matter?
Open your laptop and it's just there, and you are in complete
@fredldotme
fredldotme / code.desktop
Last active March 6, 2022 07:52
VSCode on Ubuntu Touch (put it in ~/.local/share/applications/code.desktop)
[Desktop Entry]
Name=Visual Studio Code
Exec=env GDK_BACKEND=x11 GDK_SCALE=2 /home/phablet/Downloads/VSCode-linux-arm64/code --force-device-scale-factor=2 %U
Icon=/home/phablet/Downloads/VSCode-linux-arm64/resources/app/resources/linux/code.png
Terminal=false
Type=Application
X-Ubuntu-Touch=true
X-Ubuntu-Splash-Color=#FFFFFF
Path=/home/phablet/Downloads/VSCode-linux-arm64
X-Ubuntu-XMir-Enable
project build/soong/
diff --git a/cc/config/x86_darwin_host.go b/cc/config/x86_darwin_host.go
index 52d63514..1c7eb4ec 100644
--- a/cc/config/x86_darwin_host.go
+++ b/cc/config/x86_darwin_host.go
@@ -83,6 +83,7 @@ var (
"10.12",
"10.13",
"10.14",
#!/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"
@fredldotme
fredldotme / qemu-force-ivshmem.diff
Created June 2, 2021 21:15
QEMU ivshmem attempt without explicit eventfd
diff --git a/configure b/configure
index e85d6baf8f..0abad3f459 100755
--- a/configure
+++ b/configure
@@ -5362,9 +5362,9 @@ if test "$mingw32" = "yes" ; then
fi
# We can only support ivshmem if we have eventfd
-if [ "$eventfd" = "yes" ]; then
+#if [ "$eventfd" = "yes" ]; then
#!/bin/bash
ABS_PATH=`pwd`
cd $ABS_PATH/kernel-upstream
#make O=../kernel-out/ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig
#make -j4 O=../kernel-out/ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
#mkdir ../kernel-out/out-modules/
#make O=../kernel-out/ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=../kernel-out/out-modules/ modules_install
#!/bin/bash
while [ true ]; do
echo "Starting loop"
ubuntu-app-launch morph-browser
sleep 15
echo "Killing morph"
kill -9 `pidof morph-browser`
echo "Killed morph"
sleep 2
@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
@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 / 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.