Skip to content

Instantly share code, notes, and snippets.

View kennycoder's full-sized avatar

Nikolai Danylchyk kennycoder

View GitHub Profile
@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