Skip to content

Instantly share code, notes, and snippets.

@gklein
gklein / qtext2txt.py
Created May 24, 2023 07:57
Qtext to TXT
import os
import shutil
import codecs
from bidi.algorithm import get_display
for file in os.listdir("."):
print(file)
ext = os.path.splitext(file)[1]
if os.path.isfile(file) and ext.startswith(".H"):
@gklein
gklein / linkedin_post_date_extractor.py
Created May 5, 2023 07:56
This code takes a LinkedIn post URL and returns the exact date of the post
"""
This code takes a LinkedIn URL and returns the date of the post.
The code uses the following steps:
1. Extracts the post ID from the URL.
2. Converts the post ID to a Unix timestamp.
3. Converts the Unix timestamp to a human-readable date.
The code uses the following libraries:
javascript: (function() { var re = /^\+?(972|0)(\-)?0?([5]{1}\d)\-?(\d{7})$/; var val=prompt("Phone Number #","");var phone=val.replace(re,'972$3$4');location="https://wa.me/"+escape(phone);})()
javascript: (function() { var re = /^\+?(972|0)(\-)?0?([5]{1}\d)\-?(\d{7})$/; var val= prompt("WhatsApp Phone Number #","");var phone=val.replace(re,'972$3$4');location="https://api.whatsapp.com/send?phone="+escape(phone)+"&text="+document.URL;})()
### Keybase proof
I hereby claim:
* I am gklein on github.
* I am gklein (https://keybase.io/gklein) on keybase.
* I have a public key whose fingerprint is 798B 719A 468D F1E5 E925 9EC9 ED34 BC0C B9B6 074F
To claim this, I am signing this object: