Skip to content

Instantly share code, notes, and snippets.

View kennycoder's full-sized avatar

Nikolai Danylchyk kennycoder

View GitHub Profile
@kennycoder
kennycoder / asus-proart-px13-debian-setup.md
Last active February 18, 2026 23:19
Debian 12 (bookworm) / 13 (trixie) - Asus ProArt PX13 basic setup

Disk encryption

systemd-cryptenroll --tpm2-device=list
sudo apt install dracut btrfs-progs tpm2-tools libtss2-dev
sudo systemd-cryptenroll --wipe-slot tpm2 --tpm2-device auto --tpm2-pcrs "7" /dev/nvme0n1p3
sudo dracut -f -v --regenerate-all

/etc/dracut.conf

@kennycoder
kennycoder / aliexpress-total-of-visible-orders.js
Created January 5, 2026 15:51
A simple script to run on the orders page of aliexpress. Calculates only the sum of visible orders, so scroll down
// 1. Select all the price containers
const priceElements = document.querySelectorAll('.order-item-content-opt-price');
const totalPrice = Array.from(priceElements).reduce((sum, el) => {
// 2. Get the combined text from all child spans (e.g., "19,46 €")
let priceText = el.innerText;
// 3. Clean the string:
// - Replace comma with dot for calculation
// - Remove the currency symbol and any non-numeric characters (except the dot)
@kennycoder
kennycoder / gcp-argb-3dmodel.zip
Last active December 31, 2021 12:24
GCP logo LED strip
@kennycoder
kennycoder / 0001-updated-for-tb78.patch
Last active May 1, 2024 19:48
Markdown Here patch for Thunderbird 78+
From: Nikolai Danylchyk
Date: Sun, 28 Mar 2021 18:32:05 +0200
Subject: [PATCH] updated for tb78+
---
src/chrome/backgroundscript.js | 38 +++++--
src/common/markdown-here.js | 2 +-
src/common/options-iframe.js | 2 -
src/common/options-store.js | 121 +----------------------
src/common/options.js | 10 --
import cdk = require('@aws-cdk/core');
import iot = require('@aws-cdk/aws-iot');
import lambda = require('@aws-cdk/aws-lambda');
import greengrass = require('@aws-cdk/aws-greengrass');
import * as awssdk from 'aws-sdk';
interface GreengrassRaspberryPiStackProps extends cdk.StackProps {
greengrassLambdaAlias: lambda.Alias
}
interface IVehicle {
start(type: string): string;
}
interface ITrunk {
openTrunk(): void
}
interface IWindow {
openWindow(): void