Skip to content

Instantly share code, notes, and snippets.

View XCaminhante's full-sized avatar
🎯
Focusing

X Caminhante XCaminhante

🎯
Focusing
View GitHub Profile
/*
De repente pensei: pq não ordenar números usando índices? Nào tornaria mais
rápido se cada numero fosse para sua devida posição?
E então escrevi esse algoritmo que possui complexidade linear O(n)
É ainda mais perfeito para números sequenciais que não possuem repetição, a única
desvantagem é que pra ser mais eficiente você deve saber quantos itens tem
o seu array e qual número entre eles é o menor possível para evitar desperdício de memória.

Wayland transition notes for X11 users

Please comment below to contribute. Thanks!

X11 concept Wayland concept Notes
"Window" "Top-level Shell Surface" An entire window, including window decorations
X11 (the specfication) Wayland (the protocols) Neither X11 nor Wayland are binaries that can be installed
Xorg, one universally shared default implementation Multiple competing Wayland compositors Unfortunately there is no universally used single Wayland compositor; apparently every desktop environment does its own, and as a result what works in one may not work in another
export DISPLAY=... export WAYLAND_DISPLAY=... How to know which WAYLAND_DISPLAY one needs to export? The sockets (and their names) should be located in /run/user/*. If WAYLAND_SOCKET is detected, the client will prefer to use the socket provided using that environment variable.
@Alexsander-j
Alexsander-j / fast_firefox.md
Created November 6, 2023 22:46 — forked from RubenKelevra/fast_firefox.md
Make Firefox fast again
@roycewilliams
roycewilliams / scanModem.sh
Last active September 22, 2025 20:50
archive of linmodems.org scanModem.sh
#!/bin/bash
echo
NOTE=" ONLY use scanModem downloaded as: http://linmodems.technion.ac.il/packages/scanModem.gz"
UPDATE="2005_Oct_23"
cat<<END>/dev/null
Just working notes and URLs
http://linmodems.technion.ac.il/packages/smartlink/
mirror http://phep17.technion.ac.il/linmodems
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active December 4, 2025 13:04
Make Firefox fast again
@Chester-Gillon
Chester-Gillon / Linux_timer_migration.md
Last active December 25, 2023 00:41
Linux timer migration

0. Introduction

On tests where where have been trying to use the Kernel isolcpus parameter, and other techniques, to perform CPU isolation to split the cores into:

  1. One OS cpu per processor package to run background processes and interrupts.
  2. The other cpus in the processor package are running one busy-polling application thread per core. On these cpus want to avoid unwanted interrupts to avoid latency spikes.

1. 3.10.33-rt32.33.el6rt.x86_64 Kernel from Scientific Linux 6.6

This is a RHEL based Kernel, in which CONFIG_NO_HZ_FULL is not set, meaning are unable to use the nohz_full parameter to be able to turn the application CPUs into adaptive-ticks CPUs.

@brainfucksec
brainfucksec / user.js
Last active October 14, 2025 22:52
user.js - brainfucksec
/*********************************************************************
*
* Name: user.js | brainfucksec
* Descr.: Mozilla Firefox configuration file: `user.js`
* Version: 0.24.3
* Date: 2025-08-17
* URL: https://gist.github.com/brainfucksec/68e79da1c965aeaa4782914afd8f7fa2
* Maintainer: brainf+ck
*
* Info:
@intrnl
intrnl / proton-compact-userchrome.css
Last active January 20, 2023 13:35
Revert Firefox Proton to Photon compact
/**
* Moved to a new repository.
* https://github.com/intrnl/firefox-revert-proton
*/
:root {
--tab-min-height: 28px !important;
--toolbarbutton-inner-padding: 6px !important;
--toolbarbutton-outer-padding: 1px !important;
--toolbar-start-end-padding: 1px !important;
@myyc
myyc / arch_linux_install_guide.md
Last active November 26, 2025 13:31
Arch Linux setup with all the good stuff (Plymouth, encryption, systemd-boot etc.)

I've used this guide through 2024 despite archinstall and it's still more or less valid. After having used archinstall twice and having encountered obscure issues (luksOpen taking ages, or slow reboots in general) I switched back to a manual setup and it seems to be almost as straightforward.

Always refer to the official guide in case of doubt.

First things first

One important thing first: the environment you will encounter on the live image is very different from what you'll end up installing, some things are significantly easier there: e.g. wifi tools come

@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation