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
| [Editor's note: This FAQ, which was helpful to others decades later | |
| for fixing up vintage Macs, was lost when the home page of the dude | |
| who wrote it went away. There's an unreadable copy on the Internet | |
| Archive, which I have rendered readable here.] | |
| Drive Setup Patch Guide | |
| ----------------------- | |
| v1.08 [02/2000] | |
| The purpose of this guide is to explain how Apple's Drive Setup can be | |
| used to format non-Apple hard disks. It is organized in a step by step |
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
| #!/bin/sh | |
| # | |
| nohup [DO_WHATEVER_YOU_WANT_HERE] 2> /dev/null > /dev/null & | |
| # The magic incantation to: | |
| # a. Make Terminal willing to close windows | |
| # b. Quit the terminal after this .command file runs | |
| # c. Get rid of Terminal from the Recent Apps list (because nobody runs Terminal) | |
| # |
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
| #!/bin/sh | |
| # Yes, POSIX shell. Because I said so. | |
| # | |
| # Example: run Wing Commander 1 launcher | |
| COMMAND="LAUNCHER.BAT" | |
| MYDIR=$(dirname -- $0) | |
| nohup /Applications/DOSBox\ Staging.app/Contents/MacOS/dosbox -exit ${MYDIR}/${COMMAND} 2> /dev/null > /dev/null & |
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
| #!/bin/bash | |
| if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
| appify v3.0.1 for Mac OS X - http://mths.be/appify | |
| Creates the simplest possible Mac app from a shell script. | |
| Appify takes a shell script as its first argument: | |
| `basename "$0"` my-script.sh |
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
| #!/bin/bash | |
| # safely and noiselessly uninstall macos packages | |
| # | |
| # to see packages installed: | |
| # pkgutil --pkgs | |
| rmdir-if-exist() { | |
| # ghetto only first parameter | |
| [[ -d "$1" ]] && sudo rmdir --ignore-fail-on-non-empty "$1" |