Skip to content

Instantly share code, notes, and snippets.

View fsimonis's full-sized avatar

Frédéric Simonis fsimonis

View GitHub Profile
@fsimonis
fsimonis / README.md
Created November 19, 2024 10:03
Tool to expand CMake unity builds for clangd support

deunify

This tool exands the compile_commands.json of unity build files generated by CMake to enable clangd support.

Without this, clangd doesn't know what to do with the compilation units.

Default file is compile_commands.json in the current working directory. Outputs to console by default. Use -i to update in-place.

To use:

@fsimonis
fsimonis / wl-copyfile
Created September 3, 2025 14:58
Copy file uri from terminal to paste in GUI applications
#!bash
echo -n "file://$( readlink -f $@ )" | wl-copy -t "text/uri-list"
@fsimonis
fsimonis / guide.md
Last active March 25, 2026 10:24
Finding Grammarly Client ID
  1. Install Firefox Grammarly extension and login
  2. Go to about:debugging#/runtime/this-firefox find Grammarly and click Inspect
  3. In the new window open the tab Storage
  4. Open the "Extension Storage" tab and click on the moz-extension entry.
  5. On the right find the key user
  6. The entry id contains the Grammarly client/user ID
@fsimonis
fsimonis / mem.py
Created April 24, 2026 08:26
Memory footprint comparison of python classes
import sys
from abc import ABC, abstractmethod
class DictBase(ABC):
@abstractmethod
def do(self):
pass
class SlotBase(ABC):