Skip to content

Instantly share code, notes, and snippets.

View akitaonrails's full-sized avatar

Fabio Akita akitaonrails

View GitHub Profile
@akitaonrails
akitaonrails / AGENTS.md
Last active January 21, 2026 07:45
Analysis of 2025 X Algorithm

AGENTS.md

This document helps AI agents work effectively in the X For You Feed Algorithm repository.

Project Overview

This repository contains the core recommendation system powering the "For You" feed on X (Twitter). It combines:

  • In-network content from accounts you follow (Thunder)
  • Out-of-network content discovered through ML-based retrieval (Phoenix)
@akitaonrails
akitaonrails / install_lsps.sh
Created January 13, 2026 18:30
Installs all LSPs for all available Languages (Arch Linux/Omarch + Mise)
#!/usr/bin/env bash
set -euo pipefail
# LSP Installer for Arch Linux with Mise
# Installs major LSPs using native package managers or yay
# Only installs LSPs for languages that are already installed
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
@akitaonrails
akitaonrails / agents-xenia-canary.md
Last active January 12, 2026 00:56
AGENTS-xenia-canary.md

AGENTS.md - Xenia Canary

This document provides guidance for AI agents working in the Xenia Canary codebase - an Xbox 360 emulator.

Project Overview

Xenia Canary is an experimental fork of the Xenia Xbox 360 emulator written in C++20. The project targets:

  • Windows: Primary platform (Visual Studio 2022, D3D12/Vulkan)
  • Linux: Experimental (Clang 19+, Vulkan only)
  • Android: Experimental
@akitaonrails
akitaonrails / build_ffmpeg_command.py
Created November 5, 2024 02:24
Try to convert Netflix videos into an open MKV format
# Procedure:
# - download the episodes you want from the Android Netflix app (there is a limit)
# - connect your smartphone to your PC and navigate to Internal Storage/Android/data/com.netflix.mediaclient/Download/.of.
# - fetch each directory (each directory is one episode)
#
# Each directory should have the following file formats:
# - .nfv - the video stream, possibly already in H.264, unencrypted
# - .nfa - the most difficult file to deal with, it's an unencrypted AAC file in ISO fMP4 (fragmented) format and an unknown "object type 42" that ffmpeg complains
# - .nfs - subtitle in TTML format with custom properties.
# - .nfi - information about the download (unknown format)
@akitaonrails
akitaonrails / application.scss
Created April 3, 2024 18:48
AkitaOnRails.com Main SCSS
@import 'bootstrap/scss/bootstrap';
@import "normalize-scss";
@-ms-viewport {
width: device-width;
}
@viewport {
width: device-width;
}
@akitaonrails
akitaonrails / win11.xml
Created January 17, 2023 16:29
My Windows 11 libvirt XML configuration
<domain type='kvm'>
<name>win11-real</name>
<uuid>45768371-b871-4937-b7c2-60ed835011de</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>33554432</memory>
<currentMemory unit='KiB'>33554432</currentMemory>
  • Se quiser/precisar rodar VMWare Workstation lado a lado com WSL 2, a partir da versão 15.5.5 do Workstation com o Windows 10 20H1 build 19041.264 (Insider Slow Ring ou Preview Release).

Além disso na configuração da VM no WMWare precisa desabilitar os checkboxes na configuração de processadores, como a opção "Virtualize Intel VT-x/EPT or AMD-V/RVI"

https://blogs.vmware.com/workstation

  • Instale a feature Windows Subsystem for Linux normalmente.

  • Baixe o zip do Arch2 e deszipe por exemplo em C:\Users[seu usuario]\AppData\Local. E da pasta deszipada execute o Arch2.exe pra terminar de instalar

@akitaonrails
akitaonrails / links.md
Created November 6, 2019 01:28
Links de referência pro Episódio 66 do Canal Akitando
Unhandled exception: Cannot allocate new fiber stack: Cannot allocate memory (Errno)
GC Warning: Failed to expand heap by 2834432 bytes
GC Warning: Failed to expand heap by 790528 bytes
GC Warning: Out of Memory! Heap size: 5 MiB. Returning NULL!
Invalid memory access (signal 11) at address 0x60018
[0x5614ba5a4176] ???
[0x5614ba5a3e8f] __crystal_sigfault_handler +479
[0x7fd6dde91890] ???
[0x5614ba5931d5] ???
[0x5614ba59259b] ???
setopt prompt_subst
autoload -U add-zsh-hook
function() {
local namespace separator modified_time_fmt
# Specify the separator between context and namespace
zstyle -s ':zsh-kubectl-prompt:' separator separator
if [[ -z "$separator" ]]; then
zstyle ':zsh-kubectl-prompt:' separator '/'