Skip to content

Instantly share code, notes, and snippets.

View jeffbargmann's full-sized avatar

Jeff Bargmann jeffbargmann

View GitHub Profile
@jeffbargmann
jeffbargmann / ContactsDB.js
Last active February 25, 2021 23:53
iMessage Database Parser for macOS. Generates notification packets for new messages in unmuted chats.
var nodeContacts = require('node-mac-contacts')
module.exports = ContactsDB;
function ContactsDB(opts) {
opts = opts || {};
var status = nodeContacts.getAuthStatus();
this.loadContacts();
this.indexContacts();
@jeffbargmann
jeffbargmann / ScreenTimePinAutomation.applescript
Created February 4, 2021 21:24
Generates 4 digit pin from a given passphrase, enters it in to keyboard.
# The purpose of this script is to generate/enter a ScreenTime PIN so that you don't have memory of it.
# To use, paste into Script Editor, open up ScreenTime PIN protection dialog on macOS, and leave pincode entry screen up.
# Switch back to Script editor and wait. This script will generate pin and place it in.
# Repeat process for PIN confirmation.
# You can recorver pin later by executing the script in TextEdit/similar.
# I strongly recommend you enable a backup account in case you lose this.
set passwd to "PASSWORD_GOES_HERE"
set passwordAsciiSum to stringToAsciiSum(passwd) + 10000 as string
set pincode to text -4 thru -1 of passwordAsciiSum
@jeffbargmann
jeffbargmann / data.txt
Last active November 28, 2017 11:04
Latest 800 tweets in timeline
Handle Followers Following Timestamp "Is Corporation" Length Parsed text
rsnous 956 509 Tue Nov 28 07:43:57 +0000 2017 FALSE 2 😂
devonzuegel 3153 547 Tue Nov 28 05:59:10 +0000 2017 FALSE 2 ❤️
vanschneider 58506 240 Tue Nov 28 05:42:39 +0000 2017 FALSE 2 🔺
OlutosinFashusi 1434 1320 Tue Nov 28 03:34:28 +0000 2017 FALSE 2 😳
alex 60006 8383 Tue Nov 28 02:41:10 +0000 2017 FALSE 3 lol
lex_abdalla 161 349 Tue Nov 28 04:09:16 +0000 2017 FALSE 5 Lmfao
lmcd9999_l 927 400 Tue Nov 28 04:08:42 +0000 2017 FALSE 5 #MAGA
MikeIsaac 93292 2600 Tue Nov 28 08:08:29 +0000 2017 FALSE 7 hee hee
steven_aquino 1784 751 Tue Nov 28 07:06:47 +0000 2017 FALSE 7 Pagers.