Skip to content

Instantly share code, notes, and snippets.

View gornostal's full-sized avatar
🇺🇦

Oleksandr Gornostal gornostal

🇺🇦
  • Kyiv, UA
View GitHub Profile
@gornostal
gornostal / SKILL.md
Created May 14, 2026 15:46
Detrope (AI Skill): Reviews text for AI writing tropes and fixes them. Use when you want to clean up AI-generated writing for clarity and readability.
name detrope
description Reviews text for AI writing tropes and fixes them. Use when you want to clean up AI-generated writing for clarity and readability.

Word Choice

  • Remove "quietly", "deeply", "fundamentally", "remarkably", "arguably" when used to inject false significance
  • Remove "delve", "certainly", "utilize", "leverage" (as verb), "robust", "streamline", "harness"
  • Replace "tapestry", "landscape", "paradigm", "synergy", "ecosystem" with simpler words
  • Replace "serves as", "stands as", "marks", "represents" with "is"/"are" when appropriate
@gornostal
gornostal / usb-monitor-hotplug-fix-linux-arrrow-lake.md
Last active August 12, 2026 19:58
USB-C Monitor Hotplug Detection Fix for Linux on Intel Arrow Lake-P

USB-C Monitor Hotplug Detection Fix for Linux on Arrow Lake-P

Update (August 2026) — this is now automated with a udev rule + systemd service that polls for the display, so there's nothing to run by hand: https://github.com/gornostal/configs/tree/main/usbc-monitor-hotplug. Retesting on kernel 7.0.0-28 also corrected a few things below: reloading ucsi_acpi/typec_ucsi is not what fixes it (forcing a re-probe with echo detect > /sys/class/drm/*/status is the only step that matters — the DP mux is handled in firmware, typec_displayport isn't even loaded), xrandr --auto does nothing on Wayland since Mutter reacts to the DRM hotplug uevent that the detect write already emits, and the real wait is ~15s rather than 30–60s. Still no permanent fix upstream; switching to the xe driver won't help, as drivers/gpu/drm/i915/display/ is compiled into both i915.ko and xe.ko.


Problem Description

External monitor connected via USB-C to HDMI cable is not detected on hotplug in Elementary OS

@gornostal
gornostal / fix.md
Last active April 9, 2026 06:56
Intel BE200 Wi-Fi Resume Fix on Ubuntu 25.10

Intel BE200 Wi-Fi Resume Fix on Ubuntu 25.10

This guide documents the suspend/resume Wi-Fi failure observed on a Lenovo IdeaPad running Ubuntu 25.10 desktop and walks through the exact remediation steps that were validated on October 27, 2025. Use it after a fresh OS install or kernel update if the problem reappears.

1. Problem Overview

  • Hardware: Lenovo IdeaPad Pro 5-14IAH10 with Intel BE200 (Wi-Fi 7) controller at PCI address 0000:01:00.0 (device id 8086:272b).
  • Kernel Symptom: After resuming from suspend (s2idle), the wireless adapter stays in PCI power state D3cold and never returns, leaving wlp1s0f0 unavailable. Logs show:
    • Unable to change power state from D3cold to D0, device inaccessible
  • timeout waiting for FW reset ACK followed by repeated firmware crashes.
@gornostal
gornostal / Dockerfile
Last active May 22, 2023 19:10
React JS app in Docker with Nginx
FROM node:12-alpine as build
WORKDIR /www
ENV REACT_APP_KEYCLOAK_URL %REACT_APP_KEYCLOAK_URL%
ENV REACT_APP_KEYCLOAK_REALM %REACT_APP_KEYCLOAK_REALM%
COPY package*json ./
RUN npm install
COPY . .
RUN npm run build
@gornostal
gornostal / phones.txt
Last active August 12, 2026 20:00
phones
+380 (99) 047 11 02 - Slava
+380 (66) 435 53 36 - Mom
+380 93 308 1268 - Dad
+380 99 609 1473 - Marina
Intentionally public. In case I lose my phone and access to things
@gornostal
gornostal / test.txt
Created February 24, 2022 13:45
Test
7455u
6388m
@gornostal
gornostal / rsa-brute.py
Created September 10, 2020 04:54
RSA password bruteforce
#!/usr/bin/env python3
import paramiko
from paramiko import rsakey
kf = open("/root/.ssh/old/id_rsa", "r")
prefix = "prefix"
chars = {"a", "b", "c"}
@gornostal
gornostal / keybase.md
Last active May 20, 2020 12:33
keybase.md

Keybase proof

I hereby claim:

  • I am gornostal on github.
  • I am agornostal (https://keybase.io/agornostal) on keybase.
  • I have a public key ASAuglcs9fAD6hgQznImKHGJzrYC-0M6UjXSbfZ71VMHkwo

To claim this, I am signing this object:

@gornostal
gornostal / home
Last active October 2, 2019 12:32
Public keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDpiUUl0WT8j2yt51i4LgmAqUv/9roDfGAmFjINfrtn7Mtl+oIsINntVv68spNzcwcqWgHhPkoHqi+qMRDF40hA0uwQ+ZJhgMIRgcrSbFPJOUW962i73Wsv2Rnfr2i8Cpq4YZ1EFb+aYGNWC3Vi0ynXLrdD+GRoud6RCc5ODxDixf8JHardduvY2IIcdWmCrqO3ftQQhNgmdA29UKnguOWuNUGSJZ7L16JkCsYKQtsh5uTsjGq0+u/YEmbpf5W1a7KR1aaWPvuA1n6odxiUV7/YBBEAeTstb13wizFz2GCZp3BIWttkACyspoIaDZzp7ncLcTNSX75QQ/q7S3QJJZ9WQqenW2ZDIR7cC6TR87iN1jwY2ivDM3y0EP7ruD8UfvgT1N3OTwe6nlAKd1ujYbA3yIjMFXlcPD90wIG+vdz759J+z85udy2TNQMbAMcNZkRZHgqfDYUmwCkReAeOgBC9q2IfSL8/6Gi/DYCgEVhikswZqmf2a1AjlhYrC8WkHnUF4vI7RoYx4MoGzmU7171oQCV09o8eJzqfgViHcKpSpQDnbxWx7+d2XyKDMnaLzxyRbwy2QGk8864tu2P2MUQVPXZgq0W6p1r7v4lOz5qKc1NJD2beqdG9E69ODynlxvWRKQWQPA8oh1IBRZt5jIfs3a8fVn/n4ElWrFn9J+q4UQ== agornostal
import React, { Component } from 'react'
import Helmet from 'react-helmet'
import QrCode from 'qrcode.react'
import { uploadImage, addJson, getJson, getIpfsHashFromBytes32, getBytes32FromIpfsHash } from '../utils/ipfs'
import './ipfs.css'
export default class Ipfs extends Component {
constructor(props) {
super(props)