Skip to content

Instantly share code, notes, and snippets.

View hristo-joia's full-sized avatar

Hristo Joia hristo-joia

View GitHub Profile
@hristo-joia
hristo-joia / clear_modrinth_notifs.py
Last active February 1, 2024 15:38
Delete all read notifications from your modrinth notification history.
#!/usr/bin/env python
import requests
import json
username = "" # Enter your modrinth username here
HEADERS = {
"Authorization": "" # Enter your authorisation token here
}
@hristo-joia
hristo-joia / colemaro.sh
Last active December 13, 2023 15:47
A bash script to add a Romanian Colemak layout to xkb layout definitons - Un script bash pentru adăugarea unui aranjament colemak pentru limba română în definițiile de tastatură xkb
#!/usr/bin/bash
if grep colemak -i /usr/share/X11/xkb/symbols/ro > /dev/null
then
echo "colemak layout already installed, skipping"
exit
else
echo "defining colemak layout in /usr/share/X11/xkb/symbols/ro"
sudo sed -i '/partial alphanumeric_keys/{
:b
@hristo-joia
hristo-joia / notion2Habitica.py
Last active June 13, 2023 09:00 — forked from gauchy/notion2Habitica.py
Notion to Habitica Sync tool
#!/usr/bin/env python
import requests, json
#Notion's token and databaseId
token = 'XXX'
databaseId = 'XXX'
#Notion's headers
headers = {
"Authorization": "Bearer " + token,