Skip to content

Instantly share code, notes, and snippets.

View dmitrylitmanovich's full-sized avatar
🇺🇦

Dzmitry Litmanovich dmitrylitmanovich

🇺🇦
  • Tbilisi, Georgia
View GitHub Profile
@queeup
queeup / Nix_package_manager_on_Fedora_Silverblue.md
Last active March 13, 2026 01:57
Nix package manager install (single user) on Fedora Silverblue

Nix package manager on Fedora Silverblue

Warning

Disable composefs or enable root.transient before install and use nix on Fedora Silverblue 42. Do not mix both. Use just one method. I prefer enabling root.transient.

  • With composefs disabled

    sudo sed -i 's/,ro//' /etc/fstab
    
    sudo rpm-ostree kargs --append='ostree.prepare-root.composefs=0' --reboot
@ingeniousgenius
ingeniousgenius / README.md
Last active December 15, 2025 22:37
JWT Auth + Refresh Tokens in Rails

JWT Auth + Refresh Tokens in Rails

This is just some code I recently used in my development application in order to add token-based authentication for my api-only rails app. The api-client was to be consumed by a mobile application, so I needed an authentication solution that would keep the user logged in indefinetly and the only way to do this was either using refresh tokens or sliding sessions.

I also needed a way to both blacklist and whitelist tokens based on a unique identifier (jti)

Before trying it out DIY, I considered using: