Skip to content

Instantly share code, notes, and snippets.

@dfreniche dfreniche/standup.sh
Created Jul 10, 2019

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.