Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Jackson e28eta

View GitHub Profile
@e28eta
e28eta / com.github.nfarina.homebridge.plist
Last active Jan 19, 2017
Launchd.plist for running nfarina/homebridge from /etc/homebridge while the computer is running. Probably adapted from somewhere, but I don't remember where.
View com.github.nfarina.homebridge.plist
<?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> <key>Label</key> <string>com.github.nfarina.homebridge</string> <key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/usr/local/bin/:/usr/bin:$PATH</string> </dict> <key>ProgramArguments</key> <array> <string>/usr/local/bin/homebridge</string> <string>-U</string> <string>/etc/homebridge/</string> </array> <key>KeepAlive</key> <true /><!-- <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <dict> <key>SuccessfulExit</key> <false/> </dict> --> <key>StandardErrorPath</key> <string>/Library/Logs/homebridge.log</string> <key>StandardOutPath</key> <string>/Library/Logs/homebridge.log</string> </dict></plist>
@e28eta
e28eta / org.djackson._xcode_redirect_disable.plist
Created Jan 19, 2017
Per [HT205290](https://support.apple.com/en-us/HT205290), every time Xcode service is restarted, or Server.app is updated, Apache will redirect `GET /` to `GET /xcode/` Which is something I definitely don't want on a shared web server. I think this launchd plist will automatically prevent that.
View org.djackson._xcode_redirect_disable.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.djackson.XcodeRedirectDisable</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>