Skip to content

Instantly share code, notes, and snippets.

@ruthtillman
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save ruthtillman/43e7ebc7445831405b90 to your computer and use it in GitHub Desktop.

Select an option

Save ruthtillman/43e7ebc7445831405b90 to your computer and use it in GitHub Desktop.
Updating my _ebooks tweets including an old tweets.zip export. On Windows but w/Git Bash
#as a note, I took out the first two lines of tweets.model after creating it from tweets.csv. This seems to allow the files to merge ok.
cd C:/Users/RKT/Dropbox/bots
cp ruthbrarian.json C:/ruthbrar_ebooks/corpus
cd C:/ruthbrar_ebooks
ebooks consume corpus/ruthbrarian.json
cd model
cat ruthbrarian.model tweets.model > ruthbrarebooks.model
cp ruthbrarebooks.model ruthbrar_ebooks.model
rm -f ruthbrarebooks.model
cd ..
git add model/ruthbrar_ebooks.model
git commit -m "Running the regular update"
git push heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment