Am I crazy? Perhaps. But why shouldn't we use gist as a blogging platform?
- support for comments
- renders markdown
- support for multiple files, so code examples can be attached as well as inline
- automatic indexing by search engines
#!/bin/bash | |
# | |
# git-update | |
# Pull down latest from git remote and remove dead branches | |
# | |
# To create an alias to `git update`, put this on your path, then: | |
# git config --global alias.update '!git-update' | |
# | |
# Copyright (c) 2016 Leftclick.com.au | |
# License: MIT |
#!/bin/bash | |
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - | |
sudo apt-get install nodejs | |
sudo chown -R $USER /usr/lib/node_modules/ | |
sudo chgrp $USER /usr/bin | |
sudo chmod g+w /usr/bin |
Am I crazy? Perhaps. But why shouldn't we use gist as a blogging platform?
#!/bin/bash | |
set -u | |
# usage example to find all Java source files: ./sloc-by-extension java | |
EXTENSION="${1}" | |
for dir in $(ls -d */); do | |
pushd ${dir} >/dev/null | |
LIST=$(find . -name "*.${EXTENSION}" | grep -iv test) |