Skip to content

Instantly share code, notes, and snippets.

@thiagoh
thiagoh / windows-switch-roms-by-popularity.md
Created April 10, 2026 13:21
Windows & Nintendo Switch ROMs sorted by popularity with storage info

Windows & Nintendo Switch Games by Popularity

Game Platform Size Popularity
Ultra Street Fighter 4 Windows 26 GB 95
Super Mario 3D World + Bowser's Fury Switch 2.96 GB 90
Mario vs. Donkey Kong Switch 1.86 GB 85
Donkey Kong Country - Tropical Freeze Switch 7.44 GB 85
Kirby Fighters 2 Switch 1.11 GB 80
Kirby and the Forgotten Land Switch 5.75 GB 80
@thiagoh
thiagoh / batocera_detailed_report.md
Created April 10, 2026 13:12
Batocera Detailed System Report (redacted)

BATOCERA.LINUX - COMPREHENSIVE SYSTEM REPORT

Report Generated: April 4, 2026
System Analyzed: Batocera.linux v42 (Build: 2025/10/06)


EXECUTIVE SUMMARY

Batocera.linux is a specialized, open-source Linux distribution designed exclusively for retro gaming and emulation. It transforms any compatible computer, single-board computer (SBC), or handheld device into a dedicated gaming console capable of emulating over 200 gaming systems spanning from the 1970s to modern consoles.

@thiagoh
thiagoh / windows-games-copy-guide.md
Created April 10, 2026 12:56
Windows Games Copy Guide (redacted)

Windows Games Copy Guide

Generated: 2026-04-10

Source Machine Info

  • Hostname:
  • IP: <DEVICE_IP>
  • Batocera Version: 42c (2025/10/06)
  • Kernel: 6.15.11

@thiagoh
thiagoh / batocera_security_checklist.md
Created April 10, 2026 12:56
Batocera Security Checklist (redacted)

BATOCERA SECURITY CHECKLIST

Generated: April 4, 2026
System: Batocera.linux v42
IP Address: <DEVICE_IP>
Network: <LOCAL_SUBNET> (Private LAN)


CURRENT SECURITY STATUS

{
"success": true,
"credits_left": 19993,
"rate_limit_left": 19999,
"person": {
"publicIdentifier": "eden-marco",
"linkedInIdentifier": "ACoAABx4394BeQhL15XiUqnQf7d9fobHXw13SMo",
"memberIdentifier": "477683678",
"linkedInUrl": "https://www.linkedin.com/in/eden-marco",
"firstName": "Eden",
@thiagoh
thiagoh / karabiner.json
Created September 11, 2020 17:48
Karabiner json file for mechanical keyboard on Macos
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
# This file should be at this path
# ~/.oh-my-zsh/themes/thiagoh.zsh-theme
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT='${ret_status}%{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
PROMPT='%{$fg[green]%}%n ${ret_status}%{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
@thiagoh
thiagoh / ExternalizedPromise.ts
Created May 27, 2019 18:49
resolve/reject a promise from outside its scope
export interface ExternalizedPromise<T> {
promise: Promise<T>;
resolve: (value?: T | PromiseLike<T>) => void;
reject: (reason?: any) => void;
}
export default {
create: function create<T>(
executor: (resolve: (value?: T | PromiseLike<T>) => void, rejector: (reason?: any) => void) => void
@thiagoh
thiagoh / $.js
Last active April 21, 2019 17:02
lite DOM manipulator
'use strict';
function $(el) {
function $Element() {
const self = this;
this.$is$ = function $is$() {
return true;
};
this.style = function style(key, value) {
if (/(left|right|top|bottom|background-position-x|background-position-y)/i.test(key)) {
@thiagoh
thiagoh / promise-error-handling.js
Last active September 14, 2018 04:25
Promise Error Handling
## How to run
#
# npm run main /invalid
#
const get = url => {
if (url.indexOf('/invalid') >= 0) {
return Promise.reject({
url,
error: 'error message',