2023 m. rugsėjo 23 d., šeštadienis
2023 m. rugsėjo 16 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 |
|---|---|
|
50 |
|
40 |
|
30 |
|
20 |
|
10 |
|
0 |
Documentation:
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"
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
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
Explanation about different versions:
Other: