Skip to content

Instantly share code, notes, and snippets.

View akastrin's full-sized avatar
🎯
Focusing

Andrej Kastrin akastrin

🎯
Focusing
View GitHub Profile
@akastrin
akastrin / RenewExpiredGPGkey.md
Created April 1, 2025 11:13 — forked from TheSherlockHomie/RenewExpiredGPGkey.md
Updating expired GPG keys and backing them up 🔑🔐💻

Updating expired GPG keys and their backup 🔑🔐💻

I use a GPG key to sign my git commits.

An error like this one might be a sign of an expired GPG key.

error: gpg failed to sign the data fatal: failed to write commit object
@jstarcher
jstarcher / EndeavourOS-Nvidia-fixes.md
Created July 9, 2024 02:44
Stable Nvidia + Wayland on EndeavourOS (Arch) with working Suspend

This guide was created for EndeavourOs Endeavour Release which if using the Online installer, as of July 2024, will provide Plasma 6.1 and Nvidia 555 drivers. This guide shows using Grub but will work with systemd-boot as well if you follow steps for kernel params.

  1. Create file /etc/modprobe.d/nvidia.conf with the following contents
options nvidia_drm modeset=1
options nvidia_drm fbdev=1
options nvidia NVreg_EnableGpuFirmware=0
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
@akastrin
akastrin / doom.txt
Created April 28, 2024 18:22 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@withnix
withnix / arch-install.md
Last active June 28, 2025 16:48
Arch Installation with systemd-boot and systemd-networkd

Pre-installation

Live CD installation section

Create a bootable USB Flash Drive

Download Arch Linux ISO

You may use Rufus, balenaEtcher or Ventoy

@mathix420
mathix420 / medium.user.js
Last active October 31, 2025 12:34
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.4
// @inject-into content
@tapyu
tapyu / ..personal_tikz_PGFplots_gallery.md
Last active October 30, 2025 20:27
Personal Tikz/PGFplots gallery
@ibaaj
ibaaj / arxiv-preparation.md
Created January 27, 2023 15:05 — forked from xiaohk/arxiv-preparation.md
Prepare for an arXiv submission

Submission Steps

  1. Download source code from Overleaf if you use it: menu -> download -> source.

  2. Strip comments and combine all tex files (f01-main.tex, f02-intro.tex, etc.) into one file arxiv_main.tex.

# Replace f01-main.tex with the main tex file in your overleaf project
latexpand --empty-comments f01-main.tex > arxiv_main.tex
@JavaScriptDude
JavaScriptDude / README.md
Last active November 6, 2023 05:22
VMWare Workstation 16 Launcher

VMWare Workstation for Linux v16 has issues related to memory fragmentation. This will cause the CPU to choke with 100% after a time. The scripts provided will allow you to fix this at launch of vmware on Linux.

Instructions:

  1. Put vmware-workstation.sh to a good location on your computer like ~/bin or similar
  2. Make vmware-workstation.sh executable
  3. Edit vmware-workstation.desktop to have correct paths based on your setup
  4. Open shell, cd to directory with .desktop file and run:
desktop-file-install --dir=$HOME/.local/share/applications ./vmware-workstation.desktop
@miguelmota
miguelmota / notes.txt
Last active September 25, 2025 19:23
arch linux arch-chroot fix /boot initramfs (ie failed update/upgrade)
1. install usb stick with arch linux
2. boot from usb
3. run `fdisk -l` to find partition with linux installation (ie /dev/sda3 Linux Filesystem)
4. mount partition: `mount /dev/sda3 /mnt`
5. arch chroot into it: `arch-chroot /mnt`
6. rebuild initramfs: `mkinitcpio -p linux` (if that doesn't work yes try `pacman -S linux` only)
7. shutdown, unplug usb, reboot
8. if that didn't work, other things to check for here https://gist.github.com/miguelmota/d9e2249b8aff1e7d2e3093bcb54428e2
@plembo
plembo / createkvmstoragepool.md
Last active November 13, 2024 17:38
Create the default KVM storage pool for images

Create the default KVM storage pool for images

Some distributions create the defaut KVM (libvirtd) storage pool for images when they install KVM, others do this upon the creation of the first KVM guest. Creating the default pool from scratch is pretty straightforward. Here's how to do it with virsh.

First verify there is no existing default pool:

$ virsh pool-list --all
 Name      State    Autostart
-----------------------------