Skip to content

Instantly share code, notes, and snippets.

View dbrant's full-sized avatar
🍣
Kickin' it

Dmitry Brant dbrant

🍣
Kickin' it
View GitHub Profile
@dbrant
dbrant / MacRetrospectTapeBackup.txt
Created April 20, 2022 13:50
Tape backup format for Mac Retrospect v??
(Dmitry Brant, Apr 2022)
Recently I came across a backup tape (an AIT-3 100GB tape) that was written with a format
I didn't recognize. The only thing I knew is that it came from a Mac workstation, which means
it was likely written using Retrospect, which was a popular backup tool at the time.
This is the result of my reverse-engineering effort to get the contents out of this archive.
------------------
This backup format is composed of a sequence of blocks which use FourCC-style formatting.
(All data is big-endian. Dates are formatted as seconds since Jan 1 1904.)
@dbrant
dbrant / uploadfiles.py
Created January 8, 2020 21:26
Upload a list of files to Google Drive
import os
import sys
import pickle
from googleapiclient.discovery import build
from googleapiclient.http import MediaFileUpload
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
directoryIndexMap = {}
@dbrant
dbrant / sendemail.py
Created January 8, 2020 21:19
Send email via python
import smtplib
server = smtplib.SMTP("smtp.gmail.com", 587)
server.ehlo()
server.starttls()
server.ehlo()
server.login("account@example.com", password)
msg = "To: destination@example.com\n"
msg += "From: source@example.com\n"
msg += "Subject: "
@dbrant
dbrant / symbology
Last active July 21, 2020 02:04
Useful symbols
ligature: ff fi fl ffi ffl
hyphen: ‐
non-breaking hyphen: ‑
minus sign: −
figure dash: ‒
en dash: –
em dash: —
horizontal bar: ―