Skip to content

Instantly share code, notes, and snippets.

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

Mirko theanch92

🏠
Working from home
View GitHub Profile
@antirez
antirez / life.c
Created July 5, 2025 13:38
Game of life as implemented in the YouTube C video lessons
#include <stdio.h>
#include <unistd.h>
#define GRID_COLS 20
#define GRID_ROWS 20
#define GRID_CELLS (GRID_COLS*GRID_ROWS)
#define ALIVE '*'
#define DEAD '.'
/* Translate the specified x,y grid point into the index in
@valiant-code
valiant-code / IronMon-Rules.md
Last active November 11, 2025 15:18
IronMon Rules

The IronMON Challenge

The IronMon challenge is a Pokémon Randomizer Challenge run created by iateyourpie. Designed to make experiencing the randomizer fun and challenging, while taking away the wild Pokémon grind that come with some other challenges. It was originally made for Fire Red / Leaf Green but the rules can be applied/adjusted for other games as well. If you're interested to find out more about IronMon, join our Discord community!

IronMon has varying levels of difficulties, to keep it more approachable but also provide the toughest challenge possible for those who want it.

# If Debian 11 is ran on a LXC container (Proxmox), SSH login and sudo actions can be slow
# Check if in /var/log/auth.log the following messages
Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
-> Run systemctl mask systemd-logind
-> Run pam-auth-update (and deselect Register user sessions in the systemd control group hierarchy)
@peteristhegreat
peteristhegreat / Readme.md
Last active November 3, 2025 02:34
Realtek bluetooth usb adapter RTL8671b
@Pxtl
Pxtl / Rename-BinCue.ps1
Created December 26, 2019 05:22
Rename Bin/Cue file using Powershell - designed for PS1 files
# for a given cue/bin pair, rename the bin file, rename the cue file with the corresponding name,
# and update the bin reference within the cue file to match
[cmdletbinding()]
param(
[Parameter(Mandatory)][io.FileInfo]$sourceBinPath,
[Parameter(Mandatory)][string]$newName
)
$sourceCuePath = [io.path]::ChangeExtension($sourceBinPath, 'cue')
write-verbose("sourceCuePath: $sourceCuePath")
$sourceBinName = [io.path]::GetFileName($sourceBinPath)
@thomsh
thomsh / xrandr_add_mode_asus_PG278Q.sh
Created December 10, 2018 19:35
Set correct resolution for ASUS ROG PG278Q on debian stretch
#!/bin/bash
set -ex
# Set correct resolution for ASUS ROG PG278Q on debian stretch
# Problem : "gtf 2560 1440 60" didn't return correct value for this screen
# solution found : https://askubuntu.com/questions/621643/can-not-set-proper-resolution-on-this-one-monitor
# ( with https://www.entechtaiwan.com/util/moninfo.shtm )
#add new mode for this "unknown display"
xrandr --newmode "2560x1440_60.00" 241,500 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync
# change DP-1 per appropriate display `xrandr -q` to list