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 Foundation | |
| // https://gist.github.com/DougGregor/92a2e4f6e11f6d733fb5065e9d1c880f | |
| extension Collection { | |
| func parallelMap<T>( | |
| parallelism requestedParallelism: Int? = nil, | |
| _ transform: @escaping (Element) async throws -> T | |
| ) async rethrows -> [T] { | |
| let defaultParallelism = 2 | |
| let parallelism = requestedParallelism ?? defaultParallelism |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <!-- not sure which one it is, so set both --> | |
| <key>Ensemble</key> | |
| <dict> | |
| <key>Enabled</key> | |
| <true/> | |
| </dict> |
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
| // Cargo.toml | |
| // | |
| // [dependencies] | |
| // serde_json = "1.0.61" | |
| // notify = "4.0.15" | |
| // anyhow = "1.0.38" | |
| // fantoccini = "0.17.1" | |
| // tokio = {version="1.1.1", features= ["full"]} | |
| // log = "0.4.14" | |
| // env_logger = "0.8.2" |
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
| /* | |
| * This document is provided to the public domain under the | |
| * terms of the Creative Commons CC0 public domain license | |
| */ | |
| How to boot Arch Linux ARM in QEMU (patched for M1) | |
| Prerequisites: | |
| QEMU - patched for M1 processors - patches: https://github.com/utmapp/qemu |
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
| { | |
| "title": "Microsoft Remote Desktop", | |
| "rules": [ | |
| { | |
| "description": "Windows Mappings", | |
| "manipulators": [ | |
| { | |
| "type": "basic", | |
| "from": { "key_code": "x", "modifiers": { "mandatory": [ "command" ] } }, | |
| "to": [ { "key_code": "x", "modifiers": [ "left_control" ] } ], |