Skip to content

Instantly share code, notes, and snippets.

View XenHat's full-sized avatar
🛠️

XenHat XenHat

🛠️
  • Quebec, Canada
  • 02:18 (UTC -04:00)
  • X @XenHat
View GitHub Profile
@XenHat
XenHat / cleaner-discord.css
Last active April 2, 2026 17:38
Cleaner Discord (theme version)
@import url("https://gist.githubusercontent.com/XenHat/a415b14a38e9ccd81f4a7de8c2fec159/raw/cleaner-discord-base.css")
@XenHat
XenHat / cleaner-discord-base.css
Last active June 26, 2026 02:20
Cleaner Discord (css)
/* Usage: Copy paste in the Vencord Quick CSS Editor
/* original at https://gist.github.com/XenHat/a415b14a38e9ccd81f4a7de8c2fec159 */
/* Hide annoying sticker popup window that appears when you type */
.channelTextArea-1FufC0 > .container-1ZA19X {
display: none;
width: 0;
}
/* Remove App Launcher from chat channels */
@ChristianSilvermoon
ChristianSilvermoon / web-link-handler.sh
Created October 4, 2024 22:10
A script to open certain kinds of links with certain programs
@weeviltime
weeviltime / linux_teamcraft.md
Last active April 3, 2026 22:57
Installing Teamcraft in Linux
@v-fox
v-fox / NVMe_tweaks.md
Last active July 1, 2026 11:15
Linux kernel optimizations for NVMe

By default Linux distros are unoptimized in terms of I/O latency. So, here are some tips to improve that.

Most apps still don't do multi-threaded I/O access, so it's a thread-per-app which makes per-app speed always bottlenecked by single-core CPU performance (that's not even accounting for stuttering on contention between multiple processes), so even with NVMe capable of 3-6 GB/s of linear read you may get only 1-2 GB/s with ideal settings and 50-150/100-400 MB/s of un/buffered random read (what apps actually use in real life) is the best you can hope for.

All writes are heavily buffered on 3 layers (OS' RAM cache, device's RAM cache, device's SLC-like on-NAND cache), so it's difficult to get real or stable numbers but writes are largelly irrelevant for system's responsiveness, so they may be sacrificed for better random reads.

The performance can be checked by:

  • `fio --name=read --readonly --rw={read/randread} --ioengine=libaio --iodepth={jobs_per_each_worker's_command} --bs={4k/2M} --direct={0/1} --num
@sviridoff
sviridoff / ubuntu-dnsmasq-adblock.md
Last active June 29, 2026 10:44
Ad-blocking with dnsmasq on Ubuntu

Ubuntu dnsmasq adblock

Ad-blocking with dnsmasq on Ubuntu configuration

Install dnsmasq:

sudo apt update
sudo apt install dnsmasq
@XenHat
XenHat / install_viewer_dev_env.ps1
Last active September 9, 2022 00:53
Install SL Viewer dev env
# https://gist.github.com/XenHat/fafa4697b51c3279f74967609af03120
#
# Settings
# Needs quotes
GitVersion="2.28.0"
#
#
#
#
# Self-Elevate
@XenHat
XenHat / cloudSettings
Last active January 2, 2022 08:49
Old Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-01-02T08:49:16.852Z","extensionVersion":"v3.4.3"}
@XenHat
XenHat / OEMBIOSFields.md
Last active August 9, 2018 20:57
OEM Fields explanation by Peter M. Dodge

Explanation of the keys

Manufacturer:

This is a string containing the manufacturer. Microsoft encourages system builders to put their name here, if theyre not a company, but you can put what you want.

Model:

A model number string for the computer, ie "Brendr I VTE-001-001 (w/ ASUSTek P5G41C-M)

@Scrumplex
Scrumplex / 50-udisks.rules
Last active January 17, 2026 14:14
Polkit rules for udisks, and udisks2. Compatible with udiskie and Dolphin.
// Original rules: https://github.com/coldfix/udiskie/wiki/Permissions
// Changes: Added org.freedesktop.udisks2.filesystem-mount-system, as this is used by Dolphin.
polkit.addRule(function(action, subject) {
var YES = polkit.Result.YES;
// NOTE: there must be a comma at the end of each line except for the last:
var permission = {
// required for udisks1:
"org.freedesktop.udisks.filesystem-mount": YES,
"org.freedesktop.udisks.luks-unlock": YES,