Skip to content

Instantly share code, notes, and snippets.

@sebyx07
sebyx07 / wow-335a-linux.md
Created January 9, 2026 23:34
World of Warcraft 3.3.5a on Linux (Wine + DXVK)

World of Warcraft 3.3.5a on Linux (Wine + DXVK)

Complete guide to running World of Warcraft 3.3.5a (Wrath of the Lich King) on Linux for private servers.

Download

Warmane Client (~15 GB): Official Download

Alternative: Any 3.3.5a (12340) client works.

@sebyx07
sebyx07 / sid-meiers-railroads-linux.md
Created January 9, 2026 23:34
Sid Meier's Railroads\! on Linux (Wine + DXVK)

Sid Meier's Railroads! on Linux (Wine + DXVK)

Complete guide to running Sid Meier's Railroads! on Linux with optimal performance.

Download

GOG Version (~500 MB): 1337x Torrent

Prerequisites

@sebyx07
sebyx07 / cnc-generals-linux-guide.md
Last active January 9, 2026 23:39
Complete Guide: C&C Generals Zero Hour on Linux with Wine + DXVK

C&C Generals Zero Hour on Linux (Wine + DXVK)

Complete guide to running Command & Conquer Generals Zero Hour on Linux with optimal performance.

Download

DODI Repack (~1.2 GB): 1337x Torrent

Prerequisites

@sebyx07
sebyx07 / ruby-3.3.0.sh
Last active December 25, 2024 08:51
Install ruby 3.3.0 with jemalloc, yjit from rbenv ubuntu 22.04
sudo apt update
sudo apt install libjemalloc-dev libffi-dev libpq-dev libz-dev libyaml-dev build-essential -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'eval "$(~/.rbenv/bin/rbenv init - bash)"' >> ~/.bashrc
# new terminal
@sebyx07
sebyx07 / search.js
Last active October 13, 2023 13:37
Example of search in electron.js. Only mark.js as dependency
import Mark from 'mark.js';
document.addEventListener('DOMContentLoaded', () => {
// only run in electron
if (!window.navigator.userAgent.toLowerCase().includes('electron')) return
let inputOpened = false;
let markedElements = [];
let currentMarkedElIndex = 0;
let markedEl;
@sebyx07
sebyx07 / heroku alternative.md
Created August 26, 2022 20:58
Heroku alternative

Best heroku alternative for rails applications

Hatchbox is also much cheaper

@sebyx07
sebyx07 / silence.md
Last active November 8, 2021 09:20
Silence all logs from active storage ActiveStorage::DiskController

Steps

Install lograge gem

inside config/application.rb

  config.lograge.enabled = true
  config.lograge.ignore_actions = %w[ActiveStorage::DiskController#show ActiveStorage::RepresentationsController#show]
module ChatApp
VERSION = "1" # String
class User
attr_reader :login, :email, :friends # String, String, Array[User | Bot]
def initialize(login, email) # String, String -> void
@login = login
@email = email
end
@sebyx07
sebyx07 / description.sh
Created February 24, 2021 19:14
hatchbox restore postgres db
# cd into the backup
tar -xvf DATABASE.tar
cd DATABASE/databases
gunzip -k PostgreSQL.sql.gz
psql DATABASE_URL < Postgresql.sql
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER