This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0800:0000 1E PUSH DS // save ds, since we'll be setting it to 0 | |
| 0800:0001 33C9 XOR CX,CX // cx = 0 | |
| 0800:0003 8ED9 MOV DS,ECX // ds = 0 | |
| // Detect parallel port address (from bios data area) | |
| 0800:0005 BB0804 MOV BX,0408 | |
| 0800:0008 B104 MOV CL,04 // try up to 4 addresses | |
| 0800:000A 8B17 MOV DX,WORD PTR [BX] | |
| 0800:000C 0BD2 OR DX,DX | |
| 0800:000E 7506 JNE 0016 // if (DX != 0) break; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ligature: ff fi fl ffi ffl | |
| hyphen: ‐ | |
| non-breaking hyphen: ‑ | |
| minus sign: − | |
| figure dash: ‒ | |
| en dash: – | |
| em dash: — | |
| horizontal bar: ― |