Skip to content

Instantly share code, notes, and snippets.

View bahrom04's full-sized avatar
🎯
Focusing

bahrom04 bahrom04

🎯
Focusing
View GitHub Profile
@bahrom04
bahrom04 / savollar.md
Created September 21, 2026 09:40
Xinux questions?
  • Xeonitte basic install => full disk install boʻlishi kerakmi?
  • Agar full disk install boʻlsa advansed install nomi custom partition
  • install boʻladi. Natijada advansed boʻlgan sozlamalarni qoʻsha olmaymiz. Flatpak, appimage, custom kernels
@bahrom04
bahrom04 / relm4-guide3.md
Last active September 19, 2026 19:26
UOSS desktop development. relm4 3-qism

WIP

  • dconf, gsettings, gschema.xml
  • CI
@bahrom04
bahrom04 / relm4-guide2.md
Last active September 19, 2026 19:26
UOSS desktop development. relm4 2-qism

struktura, shablon

cargo add relm4 qilib ishlab ketishdan koʻra relm4-template reposidan shablon olib ishni boshlagan afzal. Loyihani har xil distrolarda build qilsa boʻladi va NixOS bilan ham integratsiyasi bor. Batafsil README.md

git clone git@github.com:Relm4/relm4-template.git

Qoʻshimchasiga Xinux jamoasi test loyihalar uchun bleur dasturiga relm4 shablonlarini ham qoʻshib qoʻygan.

meson, justfile, nix, flatpak

@bahrom04
bahrom04 / guide.md
Last active September 19, 2026 19:25
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)