Skip to content

Instantly share code, notes, and snippets.

View bahrom04's full-sized avatar
🎯
Focusing

bahrom04 bahrom04

🎯
Focusing
View GitHub Profile
@orzklv
orzklv / readme.md
Last active November 11, 2025 17:59
How to migrate from homebrew to Nix package manager by Orzklv! Moved to: https://nix-darwin.uz/guide/

How to migrate from Homebrew to Nix

#homebrew #brew #nix #nixos

I'll be honest with ya'll, you don't wanna get away from Homebrew completely, yes, I'll explain!

I've been using Nix package manager in all my MacOS machines about 3-4 months and I always kept Homebrew installed. You see, Nix is a very good package manager and with its home-manager, it becomes a good config farm as well. However, installing & managing GUI & unfree apps via Nix has been a quite painful experience for me. Sometimes, it wouldn't run properly, crash or wouldn't even start. Also, Nix doesn't have most of GUI packages that Homebrew has. Therefore, I keep homebrew and use it only for its "casks" registry to install GUI & unfree apps whereas having nix to manage dot file configurations and cli apps.

@ohld
ohld / telegram_watch_stories.py
Created August 16, 2023 13:08
Watch million telegram stories for free with python and telethon
"""
t.me/danokhlopkov
x.com/danokhlopkov
github.com/danokhlopkov
Strategy:
1. get chats / groups you're in
2. iterate over participants and find ones with stories
3. watch them
@magnetikonline
magnetikonline / README.md
Last active November 14, 2025 13:00
Creating a 'run once' systemd unit.

Creating a 'run once' systemd unit

Systemd unit template which calls a script exactly once upon startup and keeps unit status active after script finishes.

Unit file placed in /etc/systemd/system and enabled with:

$ sudo systemctl enable runonce.service
$ sudo systemctl start runonce.service
@joemaffia
joemaffia / git-clear-cache.sh
Last active November 15, 2024 11:40
Clear git cache
git rm -r --cached .
git add .
git commit -m 'git cache cleared'
git push