Skip to content

Instantly share code, notes, and snippets.

@jenny-codes
Created May 10, 2019 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenny-codes/3ad160580627c34f98f1dca173fb821f to your computer and use it in GitHub Desktop.
Save jenny-codes/3ad160580627c34f98f1dca173fb821f to your computer and use it in GitHub Desktop.
Launchctl job to auto-upload to github
<?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>notes.upload</string>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>[your directory]</string>
<key>Program</key>
<string>/usr/local/bin/git_pushall</string>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>20</integer>
<key>Minute</key>
<integer>03</integer>
</dict>
<dict>
<key>Hour</key>
<integer>10</integer>
<key>Minute</key>
<integer>03</integer>
</dict>
</array>
<key>StandardOutPath</key>
<string>[wherever you wish your log file to be]</string>
<key>StandardErrorPath</key>
<string>[wherever you wish your log file to be]</string>
</dict>
</plist>
@jenny-codes
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment