Skip to content

Instantly share code, notes, and snippets.

@dfreniche
Created July 10, 2019 16:16
Show Gist options
  • Save dfreniche/21425d7d911dcca89873e76c7776ad09 to your computer and use it in GitHub Desktop.
Save dfreniche/21425d7d911dcca89873e76c7776ad09 to your computer and use it in GitHub Desktop.
#!/bin/bash
SU_DATE="## `date "+%d %m %Y (%a)"`"
SU_TEXT1="Yesterday:"
SU_TEXT2="Today:"
SU_TEXT3="---"
# weather info
SU_WEATHER=`curl 'wttr.in/Sevilla?format=3'`
SU_DIR=~/Teamwork/daily-standups
IMG_FILE=$SU_DIR/img/`date "+%Y-%m-%d"`.jpg
# Add link to that capture in standup file
MD_IMG="![]($IMG_FILE)"
echo "$(echo $MD_IMG; echo $SU_DATE; echo ""; echo $SU_WEATHER; echo ""; echo $SU_TEXT1; echo ""; echo ""; echo $SU_TEXT2; echo ""; echo ""; echo $SU_TEXT3; echo ""; cat $SU_DIR/standup.md)" > $SU_DIR/standup.md
open -a /Applications/Visual\ Studio\ Code.app $SU_DIR/standup.md
# Open Meet (sadly only works properly with Chrome)
open https://meet.google.com/YOUR-MEETING-LINK_HERE -a /Applications/Google\ Chrome.app
# Photo capture
imagesnap -q -w 5 $IMG_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment