Permalink
Browse files

added tips to readme

  • Loading branch information...
stevekrouse committed Dec 18, 2017
1 parent 6419ab9 commit 1a247352599f67b9a865c63dc1b226a110573176
Showing with 70 additions and 3 deletions.
  1. +70 −3 README.md
View
@@ -1,11 +1,78 @@
# futureofcoding.org
Hello! My name is Steve Krouse. This is the repo for http://futureofcoding.org.
# [futureofcoding.org](http://futureofcoding.org)
If you find any typos or have any suggestions, feel free to edit anything and send me a pull request.
You can also take a look at [the issues](https://github.com/stevekrouse/futureofcoding.org/issues) to see the other things in my todo list. I'd appreciate your feedback on any of those items. Or if you have anything to add there, feel free to create a new issue and I'll comment on it to let you know if I'm going to get it done.
Feel free to shoot me an email as well. I'm steve at futureofcoding.org.
## Stuff to know
### Remove large media files locally
First run:
```bash
git config core.sparsecheckout true
```
Then put the following into `.git/info/sparse-checkout`:
```
*.html
*.md
*.gitignore
*.txt
*.js
*.css
*.yml
*.json
```
And then run
```bash
git read-tree -mu HEAD
```
### Add _data/git-log.json changes
This is how I generage [futureofcoding.org/log](futureofcoding.org/log).
First, `pip install git2json` as explained [here](https://github.com/tarmstrong/git2json#installation).
Then create `.git/hooks/post-commit` with the following contents:
```bash
git2json > _data/git-log.json
previousMessage=$(git log -1 --pretty=%B)
if [ "$previousMessage" != "updated git log" ]
then
git add _data/git-log.json
git commit -m "updated git log"
fi
exit 1
```
### Quick access to journal
Add the following to `~/.bashrc`:
```bash
function empty_message {
sleep 0.1
echo -e "## Title\n\n* TOC\n{: toc }\n\n" > .git/COMMIT_EDITMSG
}
function journal {
empty_message &
git commit --allow-empty --cleanup=verbatim
}
```
<script repoPath="stevekrouse/futureofcoding.org" type="text/javascript" src="/unbreakable-links/index.js"></script>

0 comments on commit 1a24735

Please sign in to comment.