Skip to content

Instantly share code, notes, and snippets.

View stavros-k's full-sized avatar
💭
💻

Stavros Kois stavros-k

💭
💻
View GitHub Profile
@stavros-k
stavros-k / gist:ca179e150af84f011dfcd84df706cad4
Created May 15, 2024 20:35
Single polyline to multiple paths
// iOS have a limitation of 512 points / 256 coordinates pairs.
// Paths "d" property must have the previous 2 points at the start
// so we don't have gaps in the path.
// Never use more than 512 points in a path
// The lower we go the more "accurate" will be the draw time
// on all paths. the higher the number of points, we risk
// having the last part go too slow.
const maxPointsPerPath = 100;
@stavros-k
stavros-k / linux_compatibility.md
Last active August 30, 2021 19:59
Lenovo IdeaPad 5 Pro Gen 6 (AMD) 14""

Lenovo IdeaPad 5 Pro Gen 6 (AMD) 14''

All the bellow tests are performed in Pop!_OS 21.04 Except the Gnome Power Manager UI Options that needed Gnome 40, for this I used Fedora 34. Pop!_OS Should have Gnome 40 when 21.10 releases.

Working

  • Wifi (Needs manual driver install https://github.com/lwfinger/rtw89)
  • Battery Conservation Mode (When enabled laptop charges until 60%, this can be enabled/disabled using TLP 1.4 BETA)
  • CPU Temp Sensors (Only 1 temp1, same on Windows)
  • "Windows" Hello like function works (Need to install howdy and do the basic configuration)
@stavros-k
stavros-k / 14ACN6-tlp1.4.md
Created August 21, 2021 22:41
TLP 1.4 Test: Battery Care for Lenovo IdeaPad 5 Pro (AMD) 14'' Gen 6

SYSTEM

LENOVO IdeaPad 5 Pro 14ACN6 82L7

Enable conservation

Edit /etc/tlp.conf

~$ cat /etc/tlp.conf | grep STOP_CHARGE_THRESH_BAT0
STOP_CHARGE_THRESH_BAT0="1"
@stavros-k
stavros-k / 00-intro.md
Created April 5, 2021 20:07 — forked from mdo/00-intro.md
Instructions for how to affix an Ikea Gerton table top to the Ikea Bekant sit-stand desk frame.

Ikea Bekant standing desk with Gerton table top