-
-
Save jackdempsey/add9836c4f9555af9c83eb208fa38699 to your computer and use it in GitHub Desktop.
A template for a "go" script that you run in the morning to refresh code, open important webpages and reminders
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
~ > cat ~/bin/gogo | |
#!/bin/bash | |
echo "Good morning Jack!" | |
echo "******************" | |
cd ~/MAIN_REPO_HERE | |
echo "Checking out master..." | |
git checkout master | |
echo "Pulling changes..." | |
reup # my version of this https://gist.github.com/righi/0ca1b7d1bfa3fee03999 | |
echo "Re-bundling all apps" | |
cd ~/MAIN_REPO_HERE | |
bundle | |
cd ~/MAIN_REPO_HERE/SUB_PROJECT | |
bundle | |
cd ~/MAIN_REPO_HERE/ANOTHER_SUB_PROJECT | |
bundle | |
echo "Running DB migrations..." | |
cd ~/WHEREEVER | |
bin/rake db:migrate | |
git checkout ~/MAIN_REPO_HERE/...../schema.rb | |
echo "You're ready to go, enjoy your coffee and code!" | |
# for each important webpage you should look at daily, add an open line. | |
# remember you can often add filters and search params to filter to exactly the data you care about | |
open "https://app.asana.com/0/some_list_here/list" | |
# <SNIP> about 15 lines | |
open "https://github.com/jackdempsey/some_repo/pulls?utf8=%E2%9C%93&q=is%3Apr%20is%3Aopen%20involves%3Ajackdempsey" | |
# certain days of the week may call for certain pages | |
if [ $(date +%w) == 5 ] | |
then open "...." | |
fi | |
# sometimes you want to randomly review something | |
if [ $(ruby -e 'p rand(20).to_i==0') = "true" ] | |
then open "https://www.rdpusa.com/5-ways-vastly-improve-strategic-visioning-leadership/" | |
fi | |
if [ $(ruby -e 'p rand(10).to_i==0') = "true" ] | |
then open "https://blog.ycombinator.com/how-do-you-measure-leadership/" | |
fi | |
echo "All done!" | |
echo "Now, setup your tasks for the day and do them." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment