This file contains 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 | |
# add `export COREOS_DOCKER_HOST_IP=some-ip-address` to your .bashrc or .zshrc | |
function echo_usage_and_exit() | |
{ | |
echo "Usage: coreos-sync local_path_to_sync remote_dir_to_sync_into [options]" | |
echo "Options:" | |
echo "\t-w\t\t(watches/resyncs on changes)" | |
echo "\t-v\t\t(enable verbose mode)" |
This file contains 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 | |
# Usage: | |
# file-event-watch command-to-run path1 [path2, ...] | |
# TODO: Add fswatch event option to enable/disable different event types | |
cmd=$1 | |
shift | |
files=$@ | |
$cmd && fswatch -0 -x -r $files | { |
This file contains 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
<?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>homebrew.mxcl.nginx</string> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>KeepAlive</key> | |
<true/> |
OlderNewer