Skip to content

Instantly share code, notes, and snippets.

View denysvitali's full-sized avatar

Denys Vitali denysvitali

View GitHub Profile
@denysvitali
denysvitali / schema.sql
Created April 24, 2018 20:41
GTFS DB Schema
CREATE TABLE public.agency (
uid varchar(255) NOT NULL,
id varchar(255) NOT NULL,
"name" varchar(255) NOT NULL,
url varchar(512) NULL,
timezone varchar(255) NULL,
lang varchar(20) NULL,
phone varchar(255) NULL,
feed_id varchar(64) NOT NULL,
fare_url varchar(512) NULL,
@denysvitali
denysvitali / stream-pulseaudio-vlc-sonos.md
Last active November 27, 2023 16:19
Quick tutorial on how to play sound from your computer to a Sonos device

Quick tutorial on how to play sound from your computer to a Sonos device

Introduction

Assumptions

192.168.1.111 IP of your Sonos Device
192.168.1.128 IP of your computer

Configuration

PulseAudio

@denysvitali
denysvitali / sonos-play-music-from-live-yt-stream.md
Last active June 24, 2022 07:25
Play Music from Live YT Stream (Sonos)

Play Music from Youtube Live Stream

Requirements

Running

streamlink --hls-live-edge=`date "+%M*60/2+%S/2" | bc` https://www.youtube.com/watch\?v\=b3NtpSc5RNw best --stdout | ffmpeg -i pipe:0 -q:a 0 -map a -f mp3 pipe:1 | vlc -
/lib/ld-uClibc.so.0
libpthread.so.0
abort
fopen
memset
fclose
strlen
_fini
__data_start
librt.so.0
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x51df805e]
[ 0.000000] Linux version 5.11.0-custom (shawn.guo@hackbox2) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #1 SMP Fri Mar 12 08:20:51 GMT 2021
[ 0.000000] efi: EFI v2.70 by Qualcomm Technologies, Inc.
[ 0.000000] efi: ACPI 2.0=0xffffe000 TPMFinalLog=0xfff63000 MEMATTR=0xfaaf4018 ESRT=0xfb1b3018 SMBIOS=0xfff5c000 TPMEventLog=0xf8193018 RNG=0xfeb2bd98 MEMRESERVE=0xf8190d98
[ 0.000000] efi: seeding entropy pool
[ 0.000000] esrt: Reserving ESRT space from 0x00000000fb1b3018 to 0x00000000fb1b3118.
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000FFFFE000 000024 (v02 QCOM )
[ 0.000000] ACPI: XSDT 0x00000000FFFFD000 000094 (v01 QCOM QCOMEDK2 00008180 QCOM 00000001)
[ 0.000000] ACPI: FACP 0x00000000FFF8C000 000114
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x51df805e]
[ 0.000000] Linux version 5.12.0-rc8-00036-gf29e782159aa (dvitali@denvit-ws1) (aarch64-linux-gnu-gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #11 SMP PREEMPT Wed Apr 21 00:55:49 CEST 2021
[ 0.000000] Machine model: Surface Pro X (SQ2)
[ 0.000000] efi: EFI v2.70 by Qualcomm Technologies, Inc.
[ 0.000000] efi: ACPI 2.0=0xffffe000 TPMFinalLog=0xfff63000 MEMATTR=0xfae65018 ESRT=0xfb1b3018 SMBIOS=0xfff5c000 TPMEventLog=0xf8176018 RNG=0xfeb2bd98 MEMRESERVE=0xf8172b98
[ 0.000000] efi: seeding entropy pool
[ 0.000000] esrt: Reserving ESRT space from 0x00000000fb1b3018 to 0x00000000fb1b3118.
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x0000000df75fffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xdf56dbc00-0xdf56ddfff]
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x51df805e]
[ 0.000000] Linux version 5.12.0-rc8-00036-gf29e782159aa (dvitali@denvit-ws1) (aarch64-linux-gnu-gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.36.1) #10 SMP PREEMPT Tue Apr 20 23:24:56 CEST 2021
[ 0.000000] efi: EFI v2.70 by Qualcomm Technologies, Inc.
[ 0.000000] efi: ACPI 2.0=0xffffe000 TPMFinalLog=0xfff63000 MEMATTR=0xfae63018 ESRT=0xfb1b4018 SMBIOS=0xfff5c000 TPMEventLog=0xf8175018 RNG=0xfeb2bd98 MEMRESERVE=0xf8172b98
[ 0.000000] efi: seeding entropy pool
[ 0.000000] esrt: Reserving ESRT space from 0x00000000fb1b4018 to 0x00000000fb1b4118.
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI: RSDP 0x00000000FFFFE000 000024 (v02 QCOM )
[ 0.000000] ACPI: XSDT 0x00000000FFFFD000 000094 (v01 QCOM QCOMEDK2 00008180 QCOM 00000001)
[ 0.000000] ACPI: FACP 0x00000000FFF8C000 000114 (v06 QCOM QCOMEDK2 00008180 QCOM 00000001)
@denysvitali
denysvitali / design.md
Created February 13, 2021 15:46
DevPortal Desgin

Home

Home Design

Topic

Topic Design

05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: add oem mapping ...
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: read 512 bytes
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: get hw,rf info (15) (14), unique rfid: (205)
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: get hw,rf info (15) (14), unique rfid: (205)
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: ignore nv file with rf_id 127, cur 205
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: get hw,rf info (15) (14), unique rfid: (205)
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: ignore nv file with rf_id 128, cur 205
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: get hw,rf info (15) (14), unique rfid: (205)
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: ignore nv file with rf_id 129, cur 205
05-14 23:15:53.342 1062 1075 E liboemnvbkimghelper: get hw,rf info (15) (14), unique rfid: (205)

Hey! Thanks for your interest in my request.

As probably already (briefly) explained, I'm trying to port the Music Matching feature of Pixel 2 phones (normal and XL) to other Android devices. Without going deeply into technical details, I was already able to port the app itself, but I still need some files that are only available on Pixel 2 (+ XL) devices. If you want to help me, I wrote a short procedure on how to do it.
Once you have the two files (which don't contain any user data, in fact they are system files) you can send them to me and I'll proceed w/ my porting of the app. I'll also give you credit if you want when this feature gets ported :)

Music Matching Feature

These are the files I need: