Skip to content

Instantly share code, notes, and snippets.

doniks

Block or report user

Report or block doniks

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View patch vendor-asus for ubp-5.1
diff --git a/deb/deb-vendor.mk b/deb/deb-vendor.mk
index 782d9ed..231543a 100644
--- a/deb/deb-vendor.mk
+++ b/deb/deb-vendor.mk
@@ -22,10 +22,6 @@ PRODUCT_PACKAGES := \
VisualizationWallpapers \
librs_jni
-# Publish that we support the live wallpaper feature.
-PRODUCT_COPY_FILES := \
View ubp-5.1 deb defconfig diff
git diff
diff --git a/arch/arm/configs/cyanogen_flo_defconfig b/arch/arm/configs/cyanogen_flo_defconfig
index eaf95c6..c5a999d 100644
--- a/arch/arm/configs/cyanogen_flo_defconfig
+++ b/arch/arm/configs/cyanogen_flo_defconfig
@@ -44,16 +44,18 @@ CONFIG_IRQ_WORK=y
CONFIG_EXPERIMENTAL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
-CONFIG_LOCALVERSION="-cyanogenmod"
View ubp-5.1 deb
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project
path="device/asus/deb"
name="ubports/android_device_asus_deb"
remote="ubp" />
<project
path="device/asus/flo"
name="ubports/android_device_asus_flo"
View test_sensors
phablet@ubuntu-phablet:~$ sudo test_sensors
library "/system/lib/hw/sensors.oem.so" not found
libsensor_add_waiting_client adding cb 0
Hardware module ID: sensors
Hardware module Name: Qualcomm Sensors Module
Hardware module Author: Qualcomm Inc.
Hardware module API version: 0x1
Hardware HAL API version: 0x100
Poll device version: 0x1000001
API VERSION 0.1 (legacy): 0x1
View ice
grep --color=always -C 20 ICE $( find security/ drivers/mmc drivers/scsi/ drivers/dma -name Kconfig ) | less -R
MMC_SDHCI_MSM_ICE
SCSI_UFS_QCOM_ICE
View lineageos_rhine_amami_row_defconfig
# CONFIG_ARM_PATCH_PHYS_VIRT is not set
CONFIG_EXPERIMENTAL=y
CONFIG_LOCALVERSION="-doniks-002"
CONFIG_FANOTIFY=y
CONFIG_SYSFS=y
CONFIG_PROC_FS=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_SIGNALFD=y
View sony_amami.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="doniks"
fetch="https://github.com/doniks"
revision="halium-7.1" />
<remote name="sony"
fetch="https://github.com/sonyxperiadev"
revision="n-mr1" />
View google-voice.sh
#!/bin/bash
arecord -f cd -t wav -r 16000 -d 5 | flac -f - -o sample.flac
wget -q -U "Mozilla/5.0" --post-file sample.flac --header="Content-Type: audio/x-flac; rate=16000" -O - \
"http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium"
@doniks
doniks / oxide.qml
Created Jun 9, 2018 — forked from penk/oxide.qml
Example of Using Oxide with User Script
View oxide.qml
import QtQuick 2.0
import com.canonical.Oxide 0.1
WebView {
width: 800
height: 600
url: 'http://google.com'
context: WebContext {
userAgent: "Mozilla/5.0 (Ubuntu; Tablet) WebKit/537.21"
@doniks
doniks / unityscreenshot
Created Jun 9, 2018 — forked from penk/unityscreenshot
Take screenshot from Ubuntu Touch
View unityscreenshot
#!/bin/sh
set -e
D=$(date +"%Y%m%d%H%M%S")
size=$(adb shell "fbset|sed -n -e's/^mode.*\"\([0-9]\+x[0-9]\+\)[-\"].*$/\1/p'")
adb shell mirscreencast -m /var/run/mir_socket -n 1 -f /tmp/${D}.rgba
adb pull /tmp/${D}.rgba
/opt/ImageMagick/bin/convert -depth 8 -size $size ${D}.rgba ~/Desktop/${D}.png
/bin/rm ${D}.rgba
#qlmanage -p ~/Desktop/${D}.png >& /dev/null &
You can’t perform that action at this time.