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/env python3 | |
| # | |
| # Copyright 2014-2020 Cameron Hart <cameron.hart@gmail.com>. | |
| # All rights reserved. | |
| # | |
| # Redistribution and use in source and binary forms, with or without | |
| # modification, are permitted provided that the following conditions are met: | |
| # | |
| # 1. Redistributions of source code must retain the above copyright notice, | |
| # this list of conditions and the following disclaimer. |
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
| # applescript | |
| # add login item | |
| osascript -e 'tell application "System Events" to make login item at end with properties {name: "Notes",path:"/Applications/Notes.app", hidden:false}' | |
| # delete login item | |
| osascript -e 'tell application "System Events" to delete login item "itemname"' | |
| # list loginitems | |
| osascript -e 'tell application "System Events" to get the name of every login item' |
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 | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
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/env python | |
| import argparse, os, re, subprocess | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--sdk', default='', help='OS X or iOS SDK directory') | |
| parser.add_argument('--no-frameworks', action='store_true', default=False, help='do not print frameworks, only unprefixed classes') | |
| args = parser.parse_args() | |
| print_frameworks = not args.no_frameworks |
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
| [schwa@ungoliant] ~$ export OBJC_HELP=1 | |
| [schwa@ungoliant] ~$ /Applications/Safari.app/Contents/MacOS/Safari | |
| objc[10559]: Objective-C runtime debugging. Set variable=YES to enable. | |
| objc[10559]: OBJC_HELP: describe available environment variables | |
| objc[10559]: OBJC_PRINT_OPTIONS: list which options are set | |
| objc[10559]: OBJC_PRINT_IMAGES: log image and library names as they are loaded | |
| objc[10559]: OBJC_PRINT_LOAD_METHODS: log calls to class and category +load methods | |
| objc[10559]: OBJC_PRINT_INITIALIZE_METHODS: log calls to class +initialize methods | |
| objc[10559]: OBJC_PRINT_RESOLVED_METHODS: log methods created by +resolveClassMethod: and +resolveInstanceMethod: | |
| objc[10559]: OBJC_PRINT_CLASS_SETUP: log progress of class and category setup |
NewerOlder