Skip to content

Instantly share code, notes, and snippets.

View jumski's full-sized avatar
🐴
For the lack of a nail, throw new HorseshoeNailNotFoundException("no nails!");

Wojtek Majewski jumski

🐴
For the lack of a nail, throw new HorseshoeNailNotFoundException("no nails!");
View GitHub Profile
@jumski
jumski / chances.md
Last active June 11, 2025 17:04
How to recover btrfs

Confidence: ~95 % it’s just the filesystem, not the SSD

Evidence What it means
SMART: 0 media/data-integrity errors, 0 error log entries, 5 % wear Drive hardware is behaving normally.
NVMe logs: no aborts, resets, or PCIe AER errors shown No transport or controller faults.
Btrfs stats: all *_io_errs counters at 0 The kernel never saw a write fail at the block layer.
Metadata chunk 93 % full at RO flip Btrfs is documen
@jumski
jumski / readonly-fs.md
Last active June 11, 2025 15:18
readonly fs bug

❯ sudo journalctl -xb | tail -1000 | ai are there any issues that would explain why i get the 'read only filesystem' everythere now Error: error returned from database: (code: 8) attempt to write a readonly database

Caused by: (code: 8) attempt to write a readonly database

Location: crates/atuin/src/command/client/history.rs:321:9

tl;dr: Your root filesystem has been remounted read-only due to a disk (BTRFS) error.

@jumski
jumski / printer-prusa-mk3s-2021-bondtech.cfg
Created May 18, 2022 19:22 — forked from dz0ny/printer-prusa-mk3s-2021-bondtech.cfg
Klipper MK3S/+ Config including optional Bondtech Extruder, Bear Extruder, etc.
# This file contains pin mappings and reasonable defaults for Prusa i3 MK3S
# printers. It will work with MK3 (non-S) by selecting the alternative filament
# sensor. References to common community mods are included as well.
#
[include mainsail.cfg]
[skew_correction]
[force_move]
  • Jak działa RenVM

    How RenVM Actually Works. What exactly is RenVM? And, how does it… | by Loong | Ren Project | Medium #📈Kryptowaluty #DeFi #RenVM #Bitcoin #Ethereum #ERC20
    • Versatile Decentralized, Trustless, and Permissionless Custodian
    • You give BTC to RenVM, it holds that BTC, and it mints that BTC as an ERC20 (a.k.a. renBTC) on Ethereum with 1:1 ratio to ensure your renBTC is always backed by the same amount of BTC.
    • 1. Fluid Value Exchange

      • RenVM stores the BTC in a network of decentralized nodes (called Darknodes).
      • Once RenVM receives BTC, it immediately mints a 1:1 ERC20 representation, that individuals and DeFi apps can use
      • it can be done hundreds of times per minute, at any time and in any amount without centralization, merchants, signatories, or friction, allowing the seamless movement of cross-chain digital assets (i.e. interoperability).
    • 2. Composability

@jumski
jumski / start.gcode
Created September 21, 2021 17:30
Prusa MK3S fix for leaking nozzle during mesh bed leveling (Start Gcode for PrusaSlicer)
M862.3 P "[printer_model]" ; printer model check
M862.1 P[nozzle_diameter] ; nozzle diameter check
M115 U3.9.0 ; tell printer latest fw version
G90 ; use absolute coordinates
M83 ; extruder relative mode
M104 S160 ; set extruder temp BEFORE BED LEVEL
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
@jumski
jumski / gleam.ino
Last active December 1, 2020 17:27 — forked from mahenzon/gleam.ino
Rainbow gleam Arduino / esp8266
// Metro library for timing: https://github.com/surik00/Arduino-Metro
#include <Metro.h>
#define RED_PIN 16
#define GREEN_PIN 14
#define BLUE_PIN 12
#define ARR_LEN 6
#define RGB_MAX 255
@jumski
jumski / lenovo_legion_y530_linux_compatibility_issues_fix.md
Created September 8, 2020 08:53 — forked from AnnoyingTechnology/lenovo_legion_y530_linux_compatibility_issues_fix.md
Lenovo Legion Y530 Linux issues and solutions for wifi and touchpad mostly (Debian & Ubuntu)

Intel i7-8750H nVidia GTX 1050 Ti

Summary of my findings (Please comment if you can get further than me) :

edit: 06/2019 guys in the comments have found workarounds and new solutions !

Most importantly : Lenovo refuses to provide any kind of support for their product on Linux, even though the computer is sold without an OS

Ubuntu 18.04

@jumski
jumski / 00-intro.md
Created May 30, 2020 15:15 — 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

-- flat list of postgres views depencency tree, sorted by depth
SELECT * FROM (
-- Get every view & materialized view, assign a level 0
WITH RECURSIVE t AS (
SELECT
c.oid,
c.relname,
0 AS LEVEL
FROM pg_class c
JOIN pg_namespace ON c.relnamespace = pg_namespace.oid