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.
@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 February 26, 2025 19:00
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 March 11, 2025 06:06
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 February 6, 2025 11:32
user.js - brainfucksec
/*********************************************************************
*
* Name: user.js | brainfucksec
* Date: 2024-10-20
* Version: 0.23.0
* Descr.: Mozilla Firefox configuration file: `user.js`
* 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;
@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

@AlecsFerra
AlecsFerra / animated_wallpaper.c
Last active August 29, 2024 16:18
POC for simple animated wallpapers in Xorg
#define _POSIX_C_SOURCE 199309L
//#define DEBUG
#include <Imlib2.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
-- lista infinita dos primos
primes :: [Integer]
primes = 2 : 3 : 5 : filter isPrime [7, 9 ..]
where isPrime n = null $ filter (divides n) (potentialDivisors n)
potentialDivisors n = takeWhile (<= isqrt n) primes
-- raiz quadrada inteira, aproximada para cima
isqrt :: Integer -> Integer
isqrt = ceiling . sqrt . fromIntegral