Skip to content

Instantly share code, notes, and snippets.

View Matt-Deacalion's full-sized avatar
🏹
Ready, Fire, Aim!

Matt Matt-Deacalion

🏹
Ready, Fire, Aim!
  • Budapest, Hungary
View GitHub Profile
@rochacbruno
rochacbruno / amazing_vimtips.md
Last active November 2, 2025 10:41
Useful vim tips
@rochacbruno
rochacbruno / generate_log.py
Created September 2, 2025 17:52
Generate Random Huge 2GB Sample Log for Nginx
#!/usr/bin/env python3
import asyncio
import random
import datetime
import time
import os
from concurrent.futures import ThreadPoolExecutor
# Configuration
BATCH_SIZE = 10000
@rochacbruno
rochacbruno / .vimrc
Last active November 2, 2025 10:38
VIM 9 Config - NOTE: This is not a Neovim config, this is VIM 9+ config with plugins
" -----------------------------
" rochaCbruno Vim 9.1 config
" -----------------------------
" --- Leader keys ---
let mapleader = ","
let maplocalleader = ","
source ~/.vim/functions.vim
source ~/.vim/commands.vim
source ~/.vim/plugins.vim

Are we XLibre yet?

X11 has been, and still is, a vital piece of technology at the core of professional Unix-like workstations since decades. It has a proven track record of supporting enterprise-grade applications with long-term protocol stability and platform compatibility. It has matured over decades. XLibre is an actively developed fork of the X.Org X11 server, initiated by the most active X.Org developer and supported by the open source community.

An incompatible alternative, Wayland, is being aggressively pushed by IBM = Red Hat = Gnome = Fedora = freedesktop.org. However, it is not ready to succeed X11 as it its governance model leads to never-ending discussions and prevents even the most essential functionality from existing. Think twice before abandoning Xorg. Wayland breaks everything!

It is time that the open source community reclaims what was ours to begin with. This page lists distrib

@karolba
karolba / .vimrc
Last active January 15, 2025 13:07
my new vimrc in Vim9 script
vim9script
# vim: sts=4 sw=4 sts=4 et
&compatible = false # It's not 1980 anymore, don't care about vi-compatibility
syntax on # This should be set by default, but just in case
filetype plugin indent on # This should be set by default, but just in case
&autowrite = true # Write the contents of the file automatically before many actions
&autoread = true # Detect when other programs modify a file we're editing
&backspace = 'indent,eol,start' # Allow backspacing over everything in insert mode.
&backup = true # Enable backups
@s3rgeym
s3rgeym / README.md
Last active March 5, 2025 17:11
Превращаем Vim в VS Code

image

@o770
o770 / mpvf.md
Last active January 8, 2025 06:40
Run MPV with optional MPV profiles on a set of files found with GNU Find.

MPVF is a Bash script that runs MPV with optional MPV profiles on a set of files found with GNU Find by including and excluding shell patterns and setting the depth levels in the directory tree. Search patterns and directories are entered on the command line or in the script. File names can also be matched against an optional list of file extensions. With no options entered, the script's defaults are used.

Usage
mpvf {[<mpv profile,...>] [-a <pattern>] [-e <pattern>] [-i <pattern>] [-n <levels>] [-x <levels>] [directory...] | --help | --version}

Options
<mpv profile,...>
Name of the MPV profile to use.

-a, --alt \

@marcelofern
marcelofern / converter.c
Created August 26, 2024 09:39
Website converter (.md -> .html)
/* converter.c
*
* This code converts `.md` files into `.html` files.
*
* The main use is to write a static website in `.md` files, and then run this
* program to convert it to `.html`
*
* The program relies on the following variables:
*
* - INPUT_FOLDER: full path of the website with `.md` files.
@copyleftdev
copyleftdev / cheat-sheet.md
Created August 24, 2024 06:44
Ultimate Linux Terminal Tricks Cheatsheet

🚀 Ultimate Linux Terminal Tricks Cheatsheet

🧭 Navigation Ninja

Command Description
cd - 🔙 Teleport to previous directory
pushd <dir> 📚 Change directory, save current to stack
popd 📚 Return to most recently pushed directory
cd ~ 🏠 Go to home directory
@rusty-snake
rusty-snake / .gitignore
Last active July 20, 2025 06:52
Bypass seccomp-bpf based memory-deny-write-execute with `READ_IMPLIES_EXEC`
/target