Skip to content

Instantly share code, notes, and snippets.

View stupergenius's full-sized avatar
🙂
🤓

Ben Snider stupergenius

🙂
🤓
View GitHub Profile
@stupergenius
stupergenius / pre-commit hook for Swiftlint
Last active March 26, 2019 20:48 — forked from candostdagdeviren/pre-commit
Git Pre-Commit hook with SwiftLInt
#!/bin/bash
if [ "$SKIP_SWIFTLINT" = "true" ]; then
exit 0
fi
if which swiftlint >/dev/null; then
if [ "$1" = "buildphase" ]; then
swiftlint lint
elif [ "$1" = "postcommit" ]; then
@stupergenius
stupergenius / rst_to_md.sh
Last active December 3, 2021 15:55 — forked from hugorodgerbrown/md_to_rst.sh
Shell script for converting a batch of rst files into markdown files using pandoc
# This script was created to convert a directory full
# of rst files into markdown equivalents. It uses
# pandoc to do the conversion.
#
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/
# 2. Copy this script into the directory containing the .md files
# 3. Ensure that the script has execute permissions
# 4. Run the script
#
# By default this will keep the original .rst file