Step 1
Download macOS Installer (InstallAssistant.pkg). Here is the link to Sonoma beta installer:
| /** | |
| * Wait on a slow download page for Anna's archive and auto * click the Download button once it is ready | |
| */ | |
| function checkAndClickDownloadButton() { | |
| const intervalMs = 1000; | |
| let clicked = false; | |
| let intervalId; | |
| function check() { | |
| const btns = Array.from(document.getElementsByTagName("a")).filter( | |
| (ele) => ele.innerText === "Download now" |
Step 1
Download macOS Installer (InstallAssistant.pkg). Here is the link to Sonoma beta installer:
| #!/usr/bin/perl -w | |
| use strict; | |
| @ARGV or die "Usage: $0 PNGFILE...\nOutputs the file names of the PNG files with trailing data."; | |
| FILE: while (@ARGV) { | |
| my $fn = shift; | |
| eval { | |
| no warnings 'exiting'; |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| #------------------------------------------------------------------------------ | |
| # Top 20K hashes from the Troy Hunt / haveibeenpwned Pwned Passwords list v6 (2020-06-19) | |
| # with frequency count and cracked plaintext passwords | |
| # | |
| # The latest version of this file can be found here: | |
| # https://gist.github.com/roycewilliams/226886fd01572964e1431ac8afc999ce | |
| # The equivalent of this file, but based on v2 of the Pwned Passwords, is here: | |
| # https://gist.github.com/roycewilliams/281ce539915a947a23db17137d91aeb7 | |
| #------------------------------------------------------------------------------ | |
| # Notes and references: |
Convert mac-os-el-capitan-pkg-to-iso.sh from using hdiutil and asr to using Linux utilities.
Important: You will need about 30GB of free disk space.
A list of the best LeetCode questions that teach you core concepts and techniques for each category/type of problem. Many other LeetCode questions are a mashup of the techniques from these individual questions.
| #!/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. |
| 0 | |
| 00 | |
| 01 | |
| 02 | |
| 03 | |
| 1 | |
| 1.0 | |
| 10 | |
| 100 | |
| 1000 |
| # use ImageMagick convert | |
| # the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
| convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |