Skip to content

Instantly share code, notes, and snippets.

View peter-grajcar's full-sized avatar
🇪🇺

Peter Grajcar [ˈpe̞.te̞r ˈɡräj.ʦär] peter-grajcar

🇪🇺
View GitHub Profile
@mcattarinussi
mcattarinussi / gpg-ssh-setup.md
Last active September 5, 2026 17:44
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@Strus
Strus / clangd.md
Last active June 28, 2026 22:53
How to use clangd C/C++ LSP in any project

How to use clangd C/C++ LSP in any project

tl;dr: If you want to just know the method, skip to How to section

Clangd is a state-of-the-art C/C++ LSP that can be used in every popular text editors like Neovim, Emacs or VS Code. Even CLion uses clangd under the hood. Unfortunately, clangd requires compile_commands.json to work, and the easiest way to painlessly generate it is to use CMake.

For simple projects you can try to use Bear - it will capture compile commands and generate compile_commands.json. Although I could never make it work in big projects with custom or complicated build systems.

But what if I tell you you can quickly hack your way around that, and generate compile_commands.json for any project, no matter how compilcated? I have used that way at work for years, originaly because I used CLion which supported only CMake projects - but now I use that method succesfully with clangd and Neovim.

@Stella-S-Yan
Stella-S-Yan / jax_rq_vae.ipynb
Last active March 30, 2026 21:20
JAX Implementation of Residual-Quantized Variational Autoencoder (RQ-VAE)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.