Skip to content

Instantly share code, notes, and snippets.

@Iwwww
Iwwww / Hiberntation-Arch-LUKS-LVM-Encription-SWAP-Partition.md
Last active November 7, 2025 22:37
Enabling hibernation on Arch Linux with LUKS LVM encryption using a swap partition

Introduction

Enabling hibernation on Arch Linux is a useful feature that allows you to save your current system state to your hard disk and power off your computer. When you turn your computer back on, you can resume from where you left off, which is a great way to save time and improve productivity.

Here is a step-by-step guide on how to enable hibernation on Arch Linux.

My setup

I used this installation instruction.

@emorozov
emorozov / dwm-6.4-xkb.diff
Last active July 2, 2023 09:27
Attempt to port xkb patch to dwm 6.4
From 99f8aa54e10c1c712d67c775151581ee88c40688 Mon Sep 17 00:00:00 2001
From: Eugene Morozov <jmv@emorozov.net>
Date: Wed, 30 Nov 2022 18:14:13 +0300
Subject: [PATCH] Adds xkb support.
---
config.def.h | 13 ++++--
dwm.c | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 126 insertions(+), 3 deletions(-)
@shadmansaleh
shadmansaleh / nvim_conf.sh
Last active December 22, 2023 12:29
A small script to easily create and load isolated configuration for neovim
#!/bin/sh
USAGE="Usage nvim_isolated_conf.sh [OPTIONS] Directory
A tool to easily test isolated neovim config
Options:
-c Create a mimimal config tree at Directory
-e Edit init.vim of config in Directory
-h Show this message
-l Load neovim with config from Directory
@themagicalmammal
themagicalmammal / Optimizations_Artix.md
Last active December 7, 2025 01:14
Set of optimizations, I use on my Artix Setup
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="lang" compare="contains">
<string>ar</string>
</test>
<test qual="any" name="family">
<string>sans-serif</string>
</test>
@XVilka
XVilka / BiDiSupport.md
Last active November 6, 2025 10:16
BiDirectional Text

This gist will show the support of BiDirectional text in the terminal emulators and console programs. You can read more about the standardization efforts at the dedicated page of FreeDesktop Terminal BiDi working group.

How to test

Logical Order ◀ ◀ ◀ RTL LTR ▶ ▶ ▶
WHAT IS UNICODE؟ in arabic in arabic ؟EDOCINU SI TAHW ؟EDOCINU SI TAHW in arabic
ما هو الترميز الموحد يونيكود؟ in Arabic ما هو الترميز الموحد يونيكود؟ in Arabic
@willurd
willurd / web-servers.md
Last active December 5, 2025 14:02
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000