Skip to content

Instantly share code, notes, and snippets.

@Isopach
Isopach / purchase_history.py
Created July 2, 2024 08:23
Calculate how much money you've wasted on Google Play Games
"""
Usage:
1. Go to https://takeout.google.com/
2. Export Google Play Store history.
3. Download the zip file.
4. Extract to a folder.
5. Link to the path "\Takeout\Google Play Store\Purchase History.json" on line 64.
6. Run the code with python3 purchase_history.py DEBUG or python3 purchase_history.py app_name
"""
@ervwalter
ervwalter / migrate.py
Last active June 18, 2026 06:49
Migrate files in cephfs to a new file layout pool recursivly
import os
import shutil
import logging
import sys
from concurrent.futures import ThreadPoolExecutor
import threading
import uuid
import xattr
from pathlib import Path
@Ryther
Ryther / turbovnc_install.md
Last active June 16, 2026 10:37
TurboVNC installation [Ubuntu 22.04]
@1eedaegon
1eedaegon / solution.md
Last active April 24, 2024 07:55
solution: kubebuilder The CustomResourceDefinition "blah" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

Trouble sample

like this: is invalid: metadata.annotations: Too long: must have at most 262144

make install # kubeduiler generated makefile

/home/lee-ubuntu/workspace/pipeline-operator/bin/kustomize-v5.3.0 build config/crd | kubectl apply -f -
customresourcedefinition.apiextensions.k8s.io/pipelines.pipeline.1eedaegon.github.io unchanged
customresourcedefinition.apiextensions.k8s.io/tasks.pipeline.1eedaegon.github.io unchanged
The CustomResourceDefinition "runs.pipeline.1eedaegon.github.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
@hokiegeek2
hokiegeek2 / install-openmpi
Last active August 30, 2025 04:43
Install openmpi on Ubuntu 22.04
sudo apt-get update && sudo apt-get install infiniband-diags ibverbs-utils \
libibverbs-dev libfabric1 libfabric-dev libpsm2-dev -y
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev libgtk2.0-dev
sudo apt-get install librdmacm-dev libpsm2-dev
@thesamesam
thesamesam / xz-backdoor.md
Last active July 17, 2026 18:23
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@andrewhavck
andrewhavck / multi_lb.rs
Created March 16, 2024 02:45
Multi LB path routing example
use async_trait::async_trait;
use pingora::{
lb::selection::{BackendIter, BackendSelection},
prelude::*,
services::background::GenBackgroundService,
};
use std::sync::Arc;
struct Router {
cluster_one: Arc<LoadBalancer<RoundRobin>>,
@guest271314
guest271314 / javascript_engines_and_runtimes.md
Last active July 5, 2026 19:30
A list of JavaScript engines, runtimes, interpreters

V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++. It is used in Chrome and in Node.js, among others. It implements ECMAScript and WebAssembly, and runs on Windows 7 or later, macOS 10.12+, and Linux systems that use x64, IA-32, ARM, or MIPS processors. V8 can run standalone, or can be embedded into any C++ application.

SpiderMonkey is Mozilla’s JavaScript and WebAssembly Engine, used in Firefox, Servo and various other projects. It is written in C++, Rust and JavaScript. You can embed it into C++ and Rust projects, and it can be run as a stand-alone shell. It can also be [compiled](https://bytecodealliance.org/articles/making-javascript-run-fast-on

@khalidx
khalidx / node-typescript-esm.md
Last active May 2, 2026 04:25
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@1eedaegon
1eedaegon / prevent-docker-failed.md
Last active April 26, 2024 05:36
When start failed docker on wsl2 ubuntu

Inspect log

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? See journal

journalctl -xeu docker

Nov 15 14:42:36 1eegram systemd[1]: Starting Docker Application Container Engine...
░░ Subject: A start job for unit docker.service has begun execution
░░ Defined-By: systemd