Skip to content

Instantly share code, notes, and snippets.

View Omega9's full-sized avatar
🏠
Working from home

Eoin Gairleog Omega9

🏠
Working from home
View GitHub Profile
@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active May 11, 2026 20:49
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
Pipewire is the replacement for JACK and PulseAudio, Pipewire allows low latency compared to any pulseaudio tweaks
Here is a short list of what you should do to get the lowest latency in Osu!
Higher audio rate equals less latency always, unless you increase your quantum
to calculate node latency for your audio device take the quantum size divided by your audio rate
so 64/96000 = 0.00066666666 * 1000 = 0.6ms this is 0.6ms node latency
To check client latency use pw-top, take the quantum size and the audio rate of the client then use quantum / audio rate * 1000
to get overall latency for the client
@dogboydog
dogboydog / convert.py
Last active April 6, 2024 08:04
Convert Nimbus Notes HTML to Markdown for Joplin
# -------------------------------------------------------------------------
# Nimbus note HTML export to markdown converter
# Extract all zip files containing 'note.html' and convert to markdown
#
# Setup:
# 1) install python 3 for your OS
# 2) install pandoc https://github.com/jgm/pandoc/releases/tag/2.11.4
# on Windows, the .msi will automatically add pandoc to your $PATH
# otherwise add it to your $PATH.
# 3) save this script in the directory where your HTML exports were
@probonopd
probonopd / Wayland.md
Last active July 7, 2026 21:03
Think twice about Wayland. It breaks everything!

Think twice before abandoning X11. Wayland breaks everything!

tl;dr: Wayland is not "the future", it is merely an incompatible alternative to the established standard with a different set of priorities and goals.

Wayland breaks everything! It is binary incompatible, provides no clear transition path with 1:1 replacements for everything in X11, and is even philosophically incompatible with X11. Hence, if you are interested in existing applications to "just work" without the need for adjustments, then you may be better off avoiding Wayland.

Wayland solves no issues I have but breaks almost everything I need. Even the most basic, most simple things (like xkill) - in this case with no obvious replacement. And usually it stays broken, because the Wayland folks mostly seem to care about Automotive, Gnome, maybe KDE - and alienating e

@ttscoff
ttscoff / brett.fish
Last active August 17, 2021 01:26
Brett's Fish Shell custom init file
function __should_na
set -l cmd (history --max=1|awk '{print $1;}')
set -l cds cd z j popd g
if contains $cmd $cds
~/scripts/fish/na
end
end
function fallback --description 'allow a fallback value for variable'
if test (count $argv) = 1
/*
* Copyright (c) 2016-present Arctic Ice Studio <development@arcticicestudio.com>
* Copyright (c) 2016-present Sven Greb <development@svengreb.de>
*
* Project: Nord
* Version: 0.2.0
* Repository: https://github.com/arcticicestudio/nord
* License: MIT
* References:
* https://www.w3.org/TR/css-variables
@ArtBIT
ArtBIT / GRUB_INIT_TUNE.md
Last active July 8, 2026 20:03
A collection of GRUB init tunes
@skratchdot
skratchdot / gif-to-mp4.sh
Created January 1, 2019 17:23
convert a gif to an mp4 using ffmpeg
#!/bin/bash
# https://unix.stackexchange.com/questions/40638/how-to-do-i-convert-an-animated-gif-to-an-mp4-or-mv4-on-the-command-line/294892#294892
ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4
@mort3za
mort3za / torrc
Last active May 31, 2026 17:31
Using tor with bridges, torrc example config (bit.ly/m3torrc)
# sudo apt-get install obfs4proxy obfsproxy tor
# sudo vi /etc/tor/torrc
UseBridges 1
ClientTransportPlugin obfs3 exec /usr/bin/obfsproxy managed
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy managed
# send email to bridges@torproject.org with body `get transport obfs4` you can get new bridges.
bridge obfs4 195.154.49.15:44705 BACD07DACE996093DC7635F33A98C49... cert=xc/wtKNWADfJQf232xSXT0WpzsaINw6fgPvZBy5Rkw4.../ypaZPDug9L... iat-mode=0
@gioxx
gioxx / Win10Clean.ps1
Last active April 24, 2026 10:45
Script PowerShell di pulizia Windows 10 per rimuovere software "di troppo", impostare un menu di Start pulito (per i nuovi utenti creati sul PC) e disabilitare l'installazione di software "suggeriti da Microsoft" provenienti dallo Store ufficiale.
<#
WINDOWS 10: Remove Default App Packages (pre-installed)
----------------------------------------------------------------------------------------------------------------
Autore: GSolone
Utilizzo: .\Win10Clean.ps1 -Clean
(opzionale) .\Win10Clean.ps1 -Restore
opzionale, passaggio dati da prompt) .\Win10Clean.ps1 -Silent disable
opzionale, passaggio dati da prompt) .\Win10Clean.ps1 -Silent enable
Versione: 0.4
Info: https://gioxx.org/tag/powershell/