Skip to content

Instantly share code, notes, and snippets.

@Postrediori
Postrediori / Rebuild_Linux_initramfs.md
Last active March 30, 2025 10:31
Rebuild Grub and initramfs of Linux with chroot

Introduction

This guide describes process of re-generating initramfs of Linux installation using chroot (for example, using a Live USB). Such manpilations may be useful, for example, in case the system fails to boot after changing of disks, cryptsetup partitions, re-created partitions with changed UUIDs.

Tesed on:

  • Fedora 41 (Legacy BIOS & UEFI)
  • Ubuntu 24.04, 24.10 (UEFI)
@Postrediori
Postrediori / GitCheasheet.md
Last active March 14, 2025 15:27
Git Cheatsheet

Git Cheatsheet

Start rebase of all history including initial commit

git rebase -i --root

Change executable flag of files

@Postrediori
Postrediori / Get-VM-IP.ps1
Created March 7, 2025 22:05
Get IP address of a Hyper-V guest system
# Get VM IP address by name
# Examples:
# .\Get-VM-IP.ps1 -vm_name "Ubuntu 24.04 Server"
param([string]$vm_name = "Windows 10")
$mac = (get-vm -name $vm_name | select -ExpandProperty networkadapters| select -ExpandProperty macaddress) -replace "([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})", '$1-$2-$3-$4-$5-$6'
Get-NetNeighbor -LinkLayerAddress $mac | select -ExpandProperty IPAddress
@Postrediori
Postrediori / MSVS-Links.md
Last active April 24, 2025 17:13
MS Visual Studio Installers and ISO direct links
@Postrediori
Postrediori / BlenderHowTos.md
Last active July 11, 2024 06:39
Blender 3D How-Tos

Blender 3D Tips&Tricks

How to automate blender video sequencer

Adda sequence of images to video timeline:

import os

from bpy import context
@Postrediori
Postrediori / Abaqus-HowTos.md
Last active April 13, 2025 14:23
Simulia Abaqus How-Tos
@Postrediori
Postrediori / Mikrotik_K3565-Z.md
Last active January 6, 2025 14:52
MikroTik and Vodafone K3565-Z 3G USB modem

Introduction

Vodafone K3565-Z (ZTE K3565-Z) is listed in MikroTik wiki [1], but this page doesn't specify any settings.

Setup

1. Setup ppp-out1. Specify modem parameters in Advanced Mode:

  • Data Channel = 3
  • Info Channel = 3
@Postrediori
Postrediori / FixLinkEmbedsInDiscord.md
Last active August 8, 2024 14:10
Fix external embeds in Discord and other services
@Postrediori
Postrediori / FixIconsOnWayland.md
Last active June 8, 2024 18:41
Fix Wayland icons of apps after switching to KDE & Wayland [Ubuntu 24.04]

Fix Wayland icons of apps after switching to KDE & Wayland [Ubuntu 24.04]

Description

After switching to Wayland some apps have default Wayland icon:

Default icons screenshot

Example setup for Firefox

@Postrediori
Postrediori / YoutTubeVideoPreviews.md
Created May 26, 2024 15:27
Links to YT video previews

YouTube Video Preview Images

Hosts

img.youtube.com
i.ytimg.com

Images