Inspired by:
See Also:
| // stub for typescript | |
| declare function BigInt(n: number): number | |
| abstract class Trampoline<A> { | |
| abstract map<B>(ab: (a: A) => B): Trampoline<B> | |
| abstract flatMap<B>(ab: (a: A) => Trampoline<B>): Trampoline<B> | |
| zip<B>(tb: Trampoline<B>): Trampoline<[A, B]> { | |
| const ta = this | |
| return ta.flatMap(a => tb.map(b => [a, b] as [A, B])) |
| #!/bin/bash | |
| # IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
| # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
| # This script needs to be run from the volume you wish to use. | |
| # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
| # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
| # Get active services: launchctl list | grep -v "\-\t0" | |
| # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents |
Inspired by:
See Also: