Skip to content

Instantly share code, notes, and snippets.

View FrostyX's full-sized avatar

Jakub Kadlčík FrostyX

View GitHub Profile
@viiru-
viiru- / viiru-ement-tracking.el
Last active November 18, 2023 10:13
Ement tracking.el integration
(cl-defun viiru/ement-notify-track (event room session &key (buffer-name "*Ement Notifications*"))
(with-demoted-errors "viiru/ement-notify-track-if-buffer: %S"
(when (ement-notify--event-message-p event room session)
(let ((buffer (if (ement-notify--room-buffer-live-p event room session)
(map-elt (ement-room-local room) 'buffer)
(when (ement-notify--room-unread-p event room session)
(get-buffer buffer-name))))
(faces (if (ement-notify--room-unread-p event room session)
'(ement-room-list-direct)
'(default))))
@e7d
e7d / remove-obsolete-gpg-key-from-dnf.md
Last active April 19, 2025 04:37
Remove obsolete GPG key from DNF (Fedora)
@xsuchy
xsuchy / grammar-check.py
Created April 17, 2025 09:52
Kontrola gramatiky
#!/usr/bin/python3
"""
AI prompt:
You are Python and ChatGPT expert. Can you write a Python script that reads a text from STDIN and submits it to ChatGPT to find any grammatical errors and correct them? No stylistic changes should be made to ensure the differences are minimal. The resulting text will be printed.
"""
import os
import sys
from openai import OpenAI
# Retrieve your API key from the environment