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.
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.
This file has been truncated, but you can view the full file.
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
| #------------------------------------------------------------------------------ | |
| # 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 | |
| #------------------------------------------------------------------------------ |
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:
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
| #!/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'; |
Step 1
Download macOS Installer (InstallAssistant.pkg). Here is the link to Sonoma beta installer:
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
| /** | |
| * 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" |
OlderNewer