Skip to content

Instantly share code, notes, and snippets.

@jjelosua
Last active August 7, 2017 20:24
Show Gist options
  • Save jjelosua/636434e55f4d0aea864d4c5b652e908e to your computer and use it in GitHub Desktop.
Save jjelosua/636434e55f4d0aea864d4c5b652e908e to your computer and use it in GitHub Desktop.
Liveblog helper
tell application "iTerm2"
tell current window
tell current session
-- liveblog tool pane
set name to "liveblog"
set server to (split vertically with default profile)
-- CHANGE path to your needs
write text "cd ~/npr/projects/liveblog/"
write text "workon liveblog"
write text "git pull"
end tell
tell server
-- server pane
set name to "server"
set daemon to (split horizontally with default profile)
-- CHANGE path to your needs
write text "cd ~/npr/projects/liveblog/"
write text "workon liveblog"
write text "fab app:7777"
end tell
tell daemon
-- daemon pane
set name to "daemon"
set mongodb to (split horizontally with default profile)
-- CHANGE path to your needs
write text "cd ~/npr/projects/liveblog/"
write text "workon liveblog"
write text "fab daemons.main"
end tell
tell mongodb
-- mongodb pane
set name to "mongodb"
write text "mongod --config /usr/local/etc/mongod.conf"
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment