Skip to content

Instantly share code, notes, and snippets.

@ThisIsJohnBrown
Last active September 13, 2016 22:00
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 ThisIsJohnBrown/ec7ddcab271f3d2c5f4740f68aac6933 to your computer and use it in GitHub Desktop.
Save ThisIsJohnBrown/ec7ddcab271f3d2c5f4740f68aac6933 to your computer and use it in GitHub Desktop.
#!/bin/bash
source /cygdrive/d/config.shl
/home/horizon/dc2/dc2.exe -create="config.xml"
sed 's/value="Identity"/value="270-degreesCW"/g' config.xml > config-portrait.xml
sed 's/value="270-degreesCW"/value="Identity"/g' config.xml > config-landscape.xml
case $EXPERIENCE in
data)
/home/horizon/dc2/dc2.exe -configure="config-landscape.xml"
'/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe' http://wholelysheets.com --kiosk
;;
data-side)
/home/horizon/dc2/dc2.exe -configure="config-portrait.xml"
'/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe' http://wholelysheets.com/side --kiosk
;;
emotobooth)
/home/horizon/dc2/dc2.exe -configure="config-landscape.xml"
'/cygdrive/c/Program Files/Phase One/Capture One 9/CaptureOne.exe' &
cd /home/horizon/emotobooth/deploy; vagrant up; vagrant ssh --command "/vagrant/run.shl" &
sleep 15s
'/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe' http://localhost:8080?zoom --kiosk
;;
emotobooth-attract)
/home/horizon/dc2/dc2.exe -configure="config-landscape.xml"
'/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe' http://${HOST}:8080/?showGrid\&prepopulate --kiosk
;;
query-it)
/home/horizon/dc2/dc2.exe -configure="config-landscape.xml"
cd /home/horizon/query-it; git pull origin horizon-dataset;
cd /home/horizon/query-it/deploy; vagrant up; vagrant ssh --command "./queryit-tmux.sh" &
sleep 10s
'/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe' http://localhost:8080?live=true --kiosk
;;
mirror)
/home/horizon/dc2/dc2.exe -configure="config-portrait.xml"
if [ -z "$PORTRAIT" ]; then
cd /home/horizon/ascii-to-my-heart/; ./scripts/lovelace.sh &
else
cd /home/horizon/ascii-to-my-heart/; ./scripts/${PORTRAIT}.sh &
fi
sleep 5s
'/cygdrive/c/Program Files (x86)/Google/Chrome/Application/chrome.exe' http://localhost:3000 --full-screen
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment