Skip to content

Instantly share code, notes, and snippets.

@nickname55
nickname55 / handsontable-width-persistence.md
Created April 30, 2026 12:53
Handsontable: persisting column widths to localStorage doesn't work with manualColumnResize: true (root cause + fix)

Handsontable: persisting column widths to localStorage doesn't work with manualColumnResize: true

Symptom

  • You save column widths to localStorage on afterColumnResize (e.g. {linkedTask: 42, ...}).
  • Verified in DevTools: localStorage value updates correctly after every resize.
  • On F5 reload, widths revert to the defaults defined in colWidths array.

Root cause

The manualColumnResize plugin keeps its own internal map of widths, separate from the colWidths constructor option.

@nickname55
nickname55 / ag-grid-autoheight-note.md
Created April 15, 2026 13:53
AG Grid: autoHeight breaks default vertical cell centering — fix + rationale

AG Grid: autoHeight breaks default vertical cell centering

Context: cert-catalog grid (Svelte 5 + AG Grid Enterprise 35.x, themeQuartz) with SSRM. Some columns use autoHeight: true + wrapText: true to show tag/standard/model chips that wrap across multiple lines. Other columns in the same row stay short (issue key, dates, single-word badges).

Symptom

AG Grid + Tailwind Preflight: кнопки в cellRenderer теряют border-radius

РЕШЕНО — корневая причина найдена

TL;DR

Кнопки не "квадратные". border-radius работает. Скруглённые углы обрезаются overflow: hidden на AG Grid ячейке.

Цепочка событий

@nickname55
nickname55 / gist:889d04d98720dd44fbd01a42603ce8ac
Created February 23, 2026 06:01
JVM SIGSEGV crash: G1GC + Lucene mmap + tmpfs race condition
# JVM SIGSEGV Crash: G1GC + Lucene mmap + tmpfs Race Condition
## Симптомы
- JVM крашится с `SIGSEGV (0xb)` при интенсивной нагрузке (реиндексация Jira, Lucene indexing)
- Problematic frames:
- `G1CMTask::make_reference_grey()+0x11b`
- `IndexSetIterator::advance_and_next()+0x11b`
- Множество потоков крашатся одновременно (`[thread XXXX also had an error]`)
- Происходит **только на tmpfs (ramdisk)**, на обычном SSD не воспроизводится
- Чем больше CPU ядер — тем чаще крашится
@nickname55
nickname55 / jira-upm-api.md
Created February 6, 2026 15:54
Jira Server/Data Center — Download Plugin JARs via UPM REST API

Jira Server/Data Center — Download Plugin JARs via REST API

Prerequisites

  • Jira admin account (or Personal Access Token)
  • curl, python3 (or jq)

1. List all plugins

@nickname55
nickname55 / gist-maven-cached-failure.md
Created January 27, 2026 07:54
Maven Cached Resolution Failure - How to Fix

Maven Cached Resolution Failure

Problem

Maven build fails with an error like:

org.jenkins-ci:jenkins:pom:1.39 was not found in https://packages.atlassian.com/maven-public/
during a previous attempt. This failure was cached in the local repository and resolution
is not reattempted until the update interval of maven-atlassian-all-public has elapsed
@nickname55
nickname55 / gist-jenkins-dependency-issue.md
Created January 27, 2026 07:54
Missing Jenkins Repository for Jira 9.12.x Plugin Build

Missing Jenkins Repository for Jira 9.12.x Plugin Build

Problem

When building an Atlassian Jira plugin against Jira 9.12.x, Maven fails with:

Failed to read artifact descriptor for commons-httpclient:commons-httpclient:jar:3.1-jenkins-3
Caused by: The following artifacts could not be resolved: org.jenkins-ci:jenkins:pom:1.39
@nickname55
nickname55 / gist-maven-mirror-issue.md
Created January 27, 2026 07:54
Maven Mirror Configuration Issue with Atlassian Plugin SDK

Maven Mirror Configuration Issue with Atlassian Plugin SDK

Problem

When building an Atlassian Jira plugin, Maven fails with the following error:

Artifact com.atlassian.pom:public-pom:pom:5.0.21 is present in the local repository,
but cached from a remote repository ID that is unavailable in current build context,
verifying that is downloadable from [maven-central (https://repo.maven.apache.org/maven2, default, releases+snapshots)]
@nickname55
nickname55 / Test.java
Created April 14, 2025 20:34
Minimal Java client for Jira plugin upload via UPM + Apache HttpClient)
package pmpshk.atlassian.upm;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.impl.auth.BasicScheme;
import org.apache.http.impl.client.CloseableHttpClient;