Skip to content

Instantly share code, notes, and snippets.

Avatar

Theodore Dziuba teddziuba

  • DevOps@EarnUp
  • Placerville, CA
View GitHub Profile
@teddziuba
teddziuba / osx_extract_hash.py
Last active Jun 6, 2021
Extract a Mac OSX Catalina user's password hash as a hashcat-compatible string
View osx_extract_hash.py
#!/usr/bin/env python3
"""
Mac OSX Catalina User Password Hash Extractor
Extracts a user's password hash as a hashcat-compatible string.
Mac OSX Catalina (10.15) uses a salted SHA-512 PBKDF2 for storing user passwords
(hashcat type 7100), and it's saved in an annoying binary-plist-nested-inside-xml-plist
format, so previously reported methods for extracting the hash don't work.
View keybase.md

Keybase proof

I hereby claim:

  • I am teddziuba on github.
  • I am teddziuba (https://keybase.io/teddziuba) on keybase.
  • I have a public key whose fingerprint is 1708 720F E073 DE8D 8870 A7D2 F78B 92A9 0449 5452

To claim this, I am signing this object:

View gist:12530cdcf6d82bbf7042
user=> (defprotocol P
#_=> (foo [x])
#_=> (bar [x]))
P
user=> (defrecord X [a b]
#_=> P
#_=> (foo [this] a))
user.X
user=> (def x (->X 1 2))
#'user/x
@teddziuba
teddziuba / crazy.clj
Last active Aug 29, 2015
data transport by function definitions?
View crazy.clj
;; We define a product record as a series of explicitly-defined function return values.
;; - This only convey data, not execution
;; - It can reference itself in a sensible way
;; - Consumers aren't concerned about message formatting, simply whether or not
;; a given function is defined.
(defpoints SKU12345
View gist:6433642
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: GPGTools - http://gpgtools.org
mQINBFG9H0oBEADNgw2sGyfLOQ/JkajAo28x5k0dGHiFR9QKSHR1IDdqafoh+7R+
hVc44CZjrBVDCSI3L1pnxysFCcdwfKm1TzCnK7ra/Un0GtUFLThaTJZZyEepct3+
ZmzKKfwt32Oz0ZJv/uT/c2hiFVcll4w15fZNMSSlS5cuplkfLl/gpWxGuoEIZgEJ
rL1oO9dS1aV65AipV+pmkKHXhiA9AYg+6G0uZlFnJlm0ahDrP+XR0BoHj+v2sux0
AAmC8o6bgEgpLU4bKm+75i5+yWI2lhX1E+vbEA2jwmq8YYQCXoQn2o+ZTAkoi1FD
T7kamq/i+cBEZ8wzs/419RCcppFjpS08ENLlUh9+Zfw1mr+YnIJIDq1GAv8bPR+w
@teddziuba
teddziuba / proposal.md
Last active Dec 20, 2015
Docker Service Discovery Proposal
View proposal.md

Mental Models

My mental model of a Docker image is "the environment in which a given application runs", from the application's perspective, it has the entire machine to itself.

My mental model of a service is a single entry point ("address") that dispatches incoming service requests to one of N different processes. Each process is running inside a Docker container.

A process is an program, running inside a Docker container. A process has 0 to N service dependencies, and connects to these services by way of their addresses.

Running a Process with Dependencies