Skip to content

Instantly share code, notes, and snippets.

View Tyrrrz's full-sized avatar
🇺🇦
Fuck russia 🖕

Oleksii Holub Tyrrrz

🇺🇦
Fuck russia 🖕
View GitHub Profile
@Tyrrrz
Tyrrrz / Linux Quick Start.md
Last active March 15, 2026 20:02
Basic steps to take when preparing a fresh Linux device

Install

  • Core:
    • sudo apt install -y flatpak
    • sudo apt install -y gnome-shell-extension-manager
    • sudo apt install -y google-chrome-stable
      1. echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
      2. curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/google-chrome.gpg
      3. sudo apt update && sudo apt install google-chrome-stable
    • sudo apt install -y pcscd
@Tyrrrz
Tyrrrz / Fix Ukrainian keyboard layout.md
Created March 15, 2026 16:22
Fix Ukrainian keyboard layout on Ubuntu

Ukrainian Keyboard Layout Fix (Ubuntu / Wayland)

Fixes two issues with the default ua(unicode) layout on Ubuntu:

  • The \ key incorrectly types ґ instead of \ / /
  • AltGr+г does not produce ґ / Ґ

The fix adds a fixed variant to the system Ukrainian layout that you can select in GNOME Settings like any other layout.

⚠️ These changes modify files under /usr/share/X11/xkb/. They will be lost if the xkb-data package is updated via apt upgrade. Just re-run steps 1–3 if that happens.

@Tyrrrz
Tyrrrz / Windows Quick Start.md
Last active March 15, 2026 16:54
Basic steps to take when preparing a fresh Windows device
@Tyrrrz
Tyrrrz / HP Envy x360 fix screen rotation.md
Last active March 15, 2026 16:18
Fix AMD SFH Accelerometer (screen rotation) on HP x360 laptops on Linux

HP Envy x360 — Auto-rotation on Ubuntu (GNOME + Wayland)

Tested on: HP Envy x360 2-in-1 Laptop 15-fh0xxx, Ubuntu with GNOME on Wayland.

The Problem

The AMD Sensor Fusion Hub (SFH) driver loads on boot before the PCIe hardware is fully ready, causing it to miss the accelerometer. The fix is to force the correct sensor mask and reload the module before the display manager starts.

Fix

@Tyrrrz
Tyrrrz / Clone-AllPublicRepos.ps1
Created March 4, 2026 18:18
Clone-AllPublicRepos.ps1
gh auth login --web
$author = "tyrrrz"
$outputDir = "."
$repos = gh repo list $username `
--no-archived `
--limit 1000 `
--json nameWithOwner `
--jq ".[].nameWithOwner"
@Tyrrrz
Tyrrrz / Remove-Issues.ps1
Created June 22, 2023 18:07
GitHub CLI script to delete all issues by a user
gh auth login --web
$repo = "" # set repo here
$author = "" # set author here
$issues = gh issue list --repo $repo --author $author --limit 1000 --json number,author,title | ConvertFrom-Json
foreach ($issue in $issues) {
$issueNumber = $issue.number
$issueAuthor = $issue.author.login
@Tyrrrz
Tyrrrz / Remove-Forks.ps1
Created May 26, 2023 12:00
GitHub CLI script to delete all forks
gh auth login --web
$owner = "" # leave empty for current user
$repos = gh repo list $owner --fork --json nameWithOwner | ConvertFrom-Json
foreach ($repo in $repos) {
$repoName = $repo.nameWithOwner
Write-Host "Deleting repository: $repoName..."
Read-Host -Prompt "Press ENTER to confirm..."
@Tyrrrz
Tyrrrz / Start-ChromeTempProfile.ps1
Created September 26, 2022 20:44
Start Google Chrome with a disposable profile
$profileDirPath = New-TemporaryFile | %{ Remove-Item $_; New-Item -ItemType Directory $_ }
Start-Process "c:/Program Files/Google/Chrome/Application/chrome" -ArgumentList "--user-data-dir=$profileDirPath" -Wait
Remove-Item $profileDirPath -Recurse -Force