Skip to content

Instantly share code, notes, and snippets.

View DavideWiest's full-sized avatar
🧠
Collecting Knowledge

Davide R. Wiest DavideWiest

🧠
Collecting Knowledge
View GitHub Profile
@DavideWiest
DavideWiest / md_to_taskpaper.py
Created March 24, 2024 10:42
Markdown Tasks to Taskpaper (Obsidian Tasks Syntax)
import glob
import os
import sys
import re
import urllib.parse
# sorted by priority
markdown_priorities = [
"highest", "high", "medium", "low", "lowest"
]
@DavideWiest
DavideWiest / deleteGitDuplicates.py
Last active August 16, 2023 16:43
Delete Git Duplicates (useful for the Obsdian Git Plugin)
"terminal version"
import os
import platform
try:
from tqdm import tqdm
USETQDM = True
except ImportError:
USETQDM = False
"""
Parses apache2 access log entries into json, adding ip details with the ipinfo.io API
Example entry:
95.90.223.124 - - [02/Jan/2023:18:38:29 +0000] "GET / HTTP/1.1" 500 6024
"""
import sys
import traceback
import json
import time