To do this, open Terminal and type:
jupyter notebook --generate-config
This generates the file:
~/.jupyter/jupyter_notebook_config.py
| git clone https://github.com/FourierFlows/GeophysicalFlowsDocumentation.jl.git; cd GeophysicalFlowsDocumentation.jl; git checkout gh-pages; git rm -rf previews; git commit -m "delete previews"; git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}); git push --force origin gh-pages-new:gh-pages; |
| #!/usr/bin/env python | |
| import pathlib | |
| import subprocess | |
| # Get the list of files we want to modify | |
| p=pathlib.Path('mom6') | |
| filelist=list(p.glob('**/sync_output_to_gdata.sh')) | |
| # Loop on the files | |
| for f in filelist: |
| cd repository | |
| git checkout --orphan orphan_name | |
| git rm -rf . | |
| rm '.gitignore' | |
| echo "#Title of Readme" > README.md | |
| git add README.md | |
| git commit -a -m "Initial Commit" | |
| git push origin orphan_name |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2357277/hack.sh | sh | |
| # |