Skip to content

Instantly share code, notes, and snippets.

@BROWNPROTON
BROWNPROTON / publish_to_ghpages.sh
Created June 6, 2018 01:31
Hugo - Deployment of Project Pages From gh-pages branch
#!/bin/sh
DIR=$(dirname "$0")
cd $DIR/..
if [[ $(git status -s) ]]
then
echo "The working directory is dirty. Please commit any pending changes."
exit 1;
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Cloning from a local repo will not work with git clone & git fetch: a lot of branches/tags will remain unfetched.
To get a clone with all branches and tags.
git clone --mirror git://example.com/myproject myproject-local-bare-repo.git
To get a clone with all branches and tags but also with a working copy:
git clone --mirror git://example.com/myproject myproject/.git
cd myproject
git config --unset core.bare
# add submodule to track master branch
git submodule add -b master [URL to Git repo];
# update your submodule
git submodule update --remote
@BROWNPROTON
BROWNPROTON / JEOPARDY_QUESTIONS1
Last active September 25, 2020 21:26
200,000+ Jeopardy! Questions in a JSON file
URL: http://skeeto.s3.amazonaws.com/share/JEOPARDY_QUESTIONS1.json.gz
The json file is an unordered list of questions where each question has
'category' : the question category, e.g. "HISTORY"
'value' : $ value of the question as string, e.g. "$200"
Note: This is "None" for Final Jeopardy! and Tiebreaker questions