2023 m. gruodžio 13 d., trečiadienis

Oculus VR Quest 3

Installing rookie sideloader

Unfortunately it only works on windows, guide for linux:

Loading rookie sideloader on Linux:

If someone still needs this to work in Linux, just set up a Windows virtual machine(I used Virtualbox) open Rookie, click activate Wireless ADB, then No for manual config, put in the IP of the Quest. That worked for me. Network Adapter has to be configured as bridged, not NAT.

Edit: turned out it only works if you first connect in linux to sidenoder with cable, then activate wireless there.


Debugging mode not showing after multiple connect attempts:

Debugging mode troubleshooting


Using adb with meta quest

https://developer.oculus.com/documentation/native/android/ts-adb/

2023 m. gruodžio 3 d., sekmadienis

2023 m. lapkričio 9 d., ketvirtadienis

2023 m. lapkričio 5 d., sekmadienis

Youtube download

Online tools:

 Youtube to mp3 - https://yt1s.ltd/

Local tools:

https://github.com/ytdl-org/youtube-dl

2023 m. lapkričio 3 d., penktadienis

youtube short kūrimas

Eding software:

https://www.capcut.com/ - online programa skirta video redagavimui



Reactions:

https://giphy.com/

https://imgur.com

2023 m. spalio 23 d., pirmadienis

mqtt

Mqtt tools

Mqtt explorer - Install tools for testing mqtt.

mosquitto_pub  - Unix tool for testing

https://testclient-cloud.mqtt.cool/ - Online tool

 

Patho-mqtt guide

Patho-mqtt guide with tls

 

 Brokers:

 

QoS LevelBenefits
QoS 0- Lowest overhead

- Fast message delivery

- No guaranteed message delivery

- No message retransmissions

- Suitable for non-critical data or real-time updates

- Minimal impact on network bandwidth

- Simple and efficient for scenarios where message loss is acceptable
QoS 1- Ensures at least once delivery

- Minimal message duplication

- Suitable for scenarios where some duplicates are acceptable, but loss is not

- Guarantees that messages are not lost

- Requires acknowledgement (PUBACK) for every message

- Provides a balance between reliability and efficiency
QoS 2- Ensures exactly once delivery

- No message duplication

- Suitable for mission-critical and highly reliable applications

- Guarantees that messages are not lost or duplicated

- Most reliable but involves more overhead

- Requires a complex handshake (PUB, PUBREC, PUBREL, PUBCOMP) for every message

 Connecting to mosquito TLS

I successfully established a secure TLS/MQTT connection between a publisher, a broker, and a subscriber. Here's the step-by-step procedure I followed:

1. Generate a private key:
   openssl genrsa -out client.key

2. Generate the Certificate Signing Request (CSR):
   openssl req -out client.csr -key client.key -new

3. Submit the CSR content to test.mosquitto.org/ssl/ and obtain the "client.crt" file.

4. Download the "mosquitto.org.crt" from test.mosquitto.org/.

5. Ensure all the following files are in the same folder:
   - client.crt
   - client.csr
   - client.key
   - mosquitto.org.crt

6. To publish, use the following command:
   mosquitto_pub --cafile mosquitto.org.crt --key client.key --cert client.crt -h test.mosquitto.org -m "Hello World" -t "test" -p 8884 -d

7. On the subscriber side, use the following command:
   mosquitto_sub -h test.mosquitto.org -t "test" -p 8884 --cafile mosquitto.org.crt --key client.key --cert client.crt -d

I followed this procedure on my Ubuntu PC, and the TLS/MQTT connection is working flawlessly. 



Links

This guide demonstrates how to act as your own certificate authority (CA)

2023 m. rugsėjo 23 d., šeštadienis

2023 m. rugsėjo 5 d., antradienis

Logging Levels

System logger

$ journalctl --unit=service

$ journalctl -fu service # To follow log as with tail -f

 
To limit journal logging:

$ sudo nano /etc/systemd/journald.conf
Uncomment
SystemMaxUse=100M
sudo systemctl restart systemd-journald

$ journalctl --disk-usage # How much space is used


Restart system logging
$ sudo systemctl restart rsyslog # resets /var/log/syslog, deamong.log
$ sudo systemctl restart logrotate

/usr/sbin/logrotate -f /etc/logrotate.d/spaikon # Force run logrotate

Show detailed debug trace
from loguru import logger
@logger.catch # Stack trace

Python logger

When a logger is created, the level is set to NOTSET (which causes all messages to be processed when the logger is the root logger, or delegation to the parent when the logger is a non-root logger).

Note that the root logger is created with level WARNING.

Level

Numeric value

CRITICAL

50

ERROR

40

WARNING

30

INFO

20

DEBUG

10

NOTSET

0

Documentation:

https://docs.python.org/3/howto/logging.html

2023 m. rugsėjo 1 d., penktadienis

InfluxDB

Web interface: http://localhost:8086

Package info:
$ sudo apt list --installed | grep influx
influxdb2/now 2.7.0-1 arm64 [installed,local]

installing influx:
$ sudo dpkg -i influxdb2-2.7.0-arm64.deb

watching influxdn disk-space
$ watch -d "sudo du -h /var/lib/influxdb/ | sort -rh | head -n 10"

Literals

y    year (12 months)
mo    month
w    week (7 days)
d    day
h    hour (60 minutes)
m    minute (60 seconds)
s    second
ms    milliseconds (1 thousandth of a second)
us or µs    microseconds (1 millionth of a second)
ns    nanoseconds (1 billionth of a second)

 

Websites:

About tasks:
https://docs.influxdata.com/influxdb/v2.7/process-data/get-started/

Python API:
https://docs.influxdata.com/influxdb/cloud/api-guide/client-libraries/python/

Down-sampling:
https://www.influxdata.com/blog/downsampling-influxdb-v2-0/

Examples:
https://github.com/influxdata/influxdb-client-python/tree/1ec64b7e1039c891ac3a667ee6697731c61ddbaf/examples

2023 m. rugpjūčio 21 d., pirmadienis

2023 m. rugpjūčio 18 d., penktadienis

How to jaibreak switch lite?

Switch models:

 

Nintendo Switch – OLED Model - HEG-001

Nintendo Switch - Model number: HAC-001(-01)

Nintendo Switch Lite - Model number: HDH-001

 

Modchips:

SX Core (discontinued)
SX Lite (discontinued)

SX Core Clone - non flashable (discontinued)
Sx Lite Clone - Non Flashable (discontinued)
HWFLY Core - Non flashable
 

OLED HW-Fly V3 

🖼️ Detailed tutorial

Hwfly Oled - Non Flashable
Hwfly Core v3+ Flashable (and derivatives)
Hwfly Oled v3+ flashable (and derivatives)
Hwfly core switch lite  

 

🎥 - pretty detailed soldering video


🎥 - more wires? For some reason he is not using part in left corner



HwFlyCore RP2040 core


 

🎥 short


🎥 - requires shield cutting


 

 
Picofly

 

Picofly Lite

🎥 - - PICOFLY Lite? Comprehensive guide


instinctnx
pfrp2040 core

HWFLY 4.2


🎥 -Full video 

HWFLY v5

🎥  HWFLY v5  full and detailed en install

Hwfly Lite V6 Chip


pfrp2040 lite


🎥 - Quick install not full tho.

 

🎥 -Full video




pfrp2040 oled  

 

 

SSD:

32- backup

256 is requred

Tools

Kaptone tape
A coffee filter  - for cleaning off thermal paste because it doesn't leave behind any fibers.

 

Advanced tools:

 

Resources:

https://www.youtube.com/@tvpartsworld806

Diagrams: https://github.com/sthetix/DIAGRAM 

Switch GUIDE

Switch HomeBrew Guide

Explanation about different versions:

Other:

fixing laths