Skip to content

Instantly share code, notes, and snippets.

@samr7
samr7 / backup2vcf.py
Created August 10, 2018 22:08
iOS backup contact list extractor and VCF converter
#!/usr/bin/python3
import sys
import sqlite3
import datetime
import base64
def convert_ab_time(tmx):
epoch = datetime.datetime(2001, 1, 1)
return epoch + datetime.timedelta(seconds=float(tmx))
@samr7
samr7 / typesim.ahk
Created February 20, 2020 23:04
Auto Hot Key typing simulator (ctrl-shift-V to pretend to type clipboard)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
#NoTrayIcon ; Hide the tray icon
SlowType(str) {
len := StrLen(str)
Loop, %len% {
xchar := SubStr(str, A_Index, 1)
if (xchar == chr(13)) {
continue
}