Skip to content

Instantly share code, notes, and snippets.

View tekjar's full-sized avatar

Ravi Teja tekjar

  • Bangalore, India
View GitHub Profile
@tekjar
tekjar / About.md
Last active September 4, 2024 11:22
About.md

What are software defined vehicles?

In 2018, a Tesla Model S owner in California received a surprising notification: his car had just become faster, overnight. Tesla had pushed a software update that improved the vehicle's acceleration and added new features to its infotainment system. 

Similarly in 2024, Tesla started offering full self driving car as a top-up via app with plans to offer it as a monthly subscription model

This is an excerpt from their website

Init

Does uplink connect to broker

On connection, does uplink subscribe actions → /tenants/<project_id>/devices/<device_id>/actions

Sends ping requests and receive ping responses according to the keep_alive configuration

Does uplink allow for it's tracing_subscriber minimum log level to be configured with a curl command when running as a daemon

@tekjar
tekjar / covidcomm.md
Created May 3, 2021 12:17
covid communication crisis

My experience trying to find a plasma donor for a family member

  • Fragmented pan india help groups

    • Better to group by city/town for plasma and blood requirements
    • Spending energy to find someone from your city in a pan india group is not great
    • No one is going to travel
    • This is useful for medicines though
  • Outdated information and donor harassment

    • Donor information from an year back still circulating
// Cargo.toml
[package]
name = "natsprotobench"
version = "0.1.0"
authors = ["tekjar <raviteja@bytebeam.io>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@tekjar
tekjar / main.rs
Created October 29, 2020 16:09
rumqttd tls
#[macro_use]
extern crate log;
use futures_util::future::join_all;
use futures_util::sink::Sink;
use futures_util::stream::Stream;
use rumq_core::mqtt4::{codec, Packet};
use tokio::net::TcpListener;
use tokio::sync::mpsc::{channel, Receiver, Sender};
use tokio::task;
# {
# packet_type”: “can_raw”,
# "can_id" : “0x148”,
# “data”: “0xdeadbeef”,
# “Timestamp: “1572062547300”,
# }
# processor will call enricher.Enrich("packet type", "message type", "version", "data")
# generated code's function signature
# {
# packet_type”: “can_raw”,
# "can_id" : “0x148”,
# “data”: “0xdeadbeef”,
# “Timestamp: “1572062547300”,
# }
# processor will call enricher.Enrich("packet type", "message type", "version", "data")
# generated code's function signature