Skip to content

Instantly share code, notes, and snippets.

View bahrom04's full-sized avatar
🎯
Focusing

bahrom04 bahrom04

🎯
Focusing
View GitHub Profile
@bahrom04
bahrom04 / guide.md
Created August 29, 2026 15:59
UOSS desktop development

“Uzinfocom Open Source software” boʻlimini qisqaroq qilib aytganda UOSS. Jamoaning taxminan 1/3 qismi aʼzolari Xinux OT ustida ish olib borishadi va aynan shu Xinux jamoasining rust tilida yozadigan jamoasi bor 😁️.

Androidchilar dart, kotlin, java tilida, iOSʼchilar esa swift tilida yozganiga oʻxshab rust tili har xil DE uchun desktop development yoʻnalishida yaxshigina hamjimiyatlariga ega.

Jumladan eng mashxurlar freymvorklari:

@bahrom04
bahrom04 / gist:167ece36a268855aaac5332b7e94d3f9
Last active August 15, 2026 06:02
nixpkgs reposiga hissa qoʻshish

nixpkgs reposiga hissa qoʻshish

image image
nix run nixpkgs#fastfetch

Situation

You have 2 git repos in 2 different VCS platform. For example forgejo main development and codeberg is mirror repo. If someone opens PR for codeberd mirror here is what you can do for sync with your main development forgejo.

git remote add codeberg URL

git push set upstream # i did via git client gitte
@bahrom04
bahrom04 / README.md
Last active February 11, 2026 10:41
Generals run on Linux (NixOS). Still researching.

Play Generals Contra X Beta 2 on Linux (NixOS).

🇺🇸

Note

Host: Linux (Nixos 26.05).

You buy Generals from Steam, but you can't play it properly. EA Sports took the old 2004 game as it was and released it on Steam. They archived the code on Github: (Communities were forced to fork it, advancing it by +2000 commits. Even then, it's only for the Windows platform.

  • Goal:

  • Ability to play on Linux platform ✅
@bahrom04
bahrom04 / README.md
Last active July 7, 2026 05:55
Addding samba file sharing in NixOS
@bahrom04
bahrom04 / app.rs
Created December 27, 2025 19:03
Relm4 stack sidebar text with icons
use crate::RelmActionGroup;
use relm4::*;
use relm4::actions::RelmAction;
use adw::prelude::*;
use gtk::{gio, glib};
use crate::config::{APP_ID, PROFILE};
use crate::modals::{
@bahrom04
bahrom04 / main.py
Created December 27, 2025 14:24
Python ABC va Rust trait
from abc import ABC, abstractmethod
class Animal(ABC):
def __init__(self, name):
self.name = name
@abstractmethod
def speak(self):
print("hayvon buni gapirdi: ", self.name)
@bahrom04
bahrom04 / README.md
Last active December 27, 2025 20:29

Git hosting repo language stats helper

To use install Tampermonkey extension for Chrome-based or Firefox-based browsers.

Codeberg

Skrinshot: 2025-12-25 12-57-21

Gitlab

Skrinshot: 2025-12-25 12-57-36
@bahrom04
bahrom04 / Cargo.toml
Last active November 25, 2025 05:46
Vodozemac example in 2 accound chatting
[package]
name = "megolm"
version = "0.1.0"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "#website#"
repository = "#repository#"
description = "#description#"
authors = ["bahrom04"]
// Common Latin alphabet layout
default partial
xkb_symbols "basic" {
key <AE01> { [ 1, exclam, onesuperior, exclamdown ] };
key <AE02> { [ 2, at, twosuperior, oneeighth ] };
key <AE03> { [ 3, numbersign, threesuperior, sterling ] };
key <AE04> { [ 4, dollar, onequarter, dollar ] };
key <AE05> { [ 5, percent, onehalf, threeeighths ] };