Skip to content

Instantly share code, notes, and snippets.

View luads's full-sized avatar

Luã de Souza luads

  • Kimia
  • Sydney, Australia
View GitHub Profile
@luads
luads / REPORT-tripstats-field-2026-09-25.md
Created September 24, 2026 23:42
Trip Stats field report 2026-09-25 — boot auto-start scored, two trip-boundary defects, charging NoClassDefFoundError is a classloader split (Sealion 7, DiLink-5, Android 11)

Trip Stats field report — 2026-09-25

One car: BYD Sealion 7, DiLink 5.0, Android 11 / API 30, ro.vehicle.type=Di5.0_DXF_W (msmnile), Australian delivery. Single owner, single unit — everything below is n=1 unless a count is given.

Source: Trip Stats' own diag.log (8254 lines, 09-14 → 09-25 08:19), from the build installed on the head unit as of 2026-09-25. Line numbers refer to that file. A companion diagnostic APK (dev.lua.adblab) runs alongside on the same unit; where it could confound a result, that is called out explicitly rather than glossed.

@luads
luads / REPORT-tripstats-autostart-selfupdate.md
Created September 21, 2026 23:36
DiLink-5 auto-start & self-update — findings for BYD Trip Stats (Sealion 7, Android 11)

DiLink-5 auto-start & self-update — what Trip Stats needs to do

A findings-and-implementation report for angoikon/byd-trip-stats, from the BYD ADB Lab investigation on a Sealion 7 (DiLink 5.0, Android 11 / API 30, ro.vehicle.type = Di5.0_DXF_W). Everything here was proven, or is being tested, on the actual vehicle with an APK the reporter can build and install (adb lab), because a locally-built Trip Stats lacks the maintainer's private module. Every mechanism is a reversible settings edit held by WRITE_SECURE_SETTINGS — no bootloader unlock, no root, no flashing, no /system or /vendor change. Warranty-safe.

Status legend: [PROVEN] observed on the car with dated log evidence · anything not marked PROVEN

@luads
luads / lambda.sh
Last active March 26, 2023 20:42
Replay lambda from DLQ message
function replay_lambda() {
local profile=$1
local fn=$2
sqs_message="initialising..."
dlq_arn=$(aws --profile=$profile lambda get-function --function-name "$fn" | jq -r '.Configuration.DeadLetterConfig.TargetArn')
dlq=$(aws --profile=$profile sqs get-queue-url --queue-name "$(echo ${dlq_arn##*:})" --output=text)
while [ ! -z "$sqs_message" ]; do
0x659E208C44370AA620e7Cd39d29c8dec030Ae94F
@luads
luads / PlainEncoder.php
Created March 23, 2017 23:00
Symfony Serializer Plain PHP Object (stdClass) encoder Raw
<?php
namespace Acme\Serializer\Encoder;
use Symfony\Component\Serializer\Encoder\DecoderInterface;
use Symfony\Component\Serializer\Encoder\EncoderInterface;
class PlainEncoder implements EncoderInterface, DecoderInterface
{
const FORMAT = 'plain';
@luads
luads / php71-yaml.rb
Created December 7, 2016 23:26
PHP 7.1 YAML extension 2.0.0
require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)
class Php71Yaml < AbstractPhp71Extension
init
desc "YAML-1.1 parser and emitter"
homepage "https://pecl.php.net/package/yaml"
url "https://pecl.php.net/get/yaml-2.0.0.tgz"
sha256 "ef13ff56c184290c025a522bf9ae2e1b3ecc8543c3a5161dd02adec90897a221"
head "https://github.com/php/pecl-file_formats-yaml.git", :branch => "php7"
require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)
class Php71Xdebug < AbstractPhp71Extension
init
desc "Provides debugging and profiling capabilities."
homepage "http://xdebug.org"
url "https://pecl.php.net/get/xdebug-2.4.1.tgz"
sha256 "23c8786e0f5aae67b1e5035972bfff282710fb84c483887cebceb8ef5bbdf8ef"
head "https://github.com/xdebug/xdebug.git"
@luads
luads / playlist-gmusic.py
Last active November 28, 2016 02:30
Imports any playlist into gmusic
#!/usr/bin/env python
# Import any playlist (within the script) to Google Music All Access playlist.
#
# Based on Tim Hutt's script:
# https://gist.github.com/Timmmm/6572592
#
# Instructions:
# 1. Write the playlist down to the file
# 2. Install `gmusicapi` using `pip`: `pip install gmusicapi`
<snippet>
<content><![CDATA[echo "<pre>"; print_r (${1:variable}); die("</pre>");]]></content>
<tabTrigger>dv</tabTrigger>
<scope>source.php</scope>
<description>PHP: debug with print_r</description>
</snippet>
@luads
luads / post-receive.py
Created December 16, 2013 19:55
A post-receive hook to interact with asana tasks, refering the commits with a link to gitlist.
#!/usr/bin/env python
"""
To use this you have to include the task ID on the commit message.
Example: Fixing typo, #9283764018
You can as well close a task within the commit message.
Example: Improving the docs, closes #9823761989
"""