Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| gource \ | |
| -s .03 \ | |
| -1280x720 \ | |
| --auto-skip-seconds .1 \ | |
| --multi-sampling \ | |
| --stop-at-end \ | |
| --key \ | |
| --highlight-users \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Convert jupyter notebook to sphinx gallery notebook styled examples. | |
| Usage: python ipynb_to_gallery.py <notebook.ipynb> | |
| Dependencies: | |
| pypandoc: install using `pip install pypandoc` | |
| """ | |
| import pypandoc as pdoc | |
| import json |
In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 1.install gource using HomeBrew | |
| $ brew install gource | |
| # 2.install avconv | |
| git clone git://git.libav.org/libav.git | |
| cd libav | |
| # it will take 3-5 minutes to complie, be patient. | |
| ./configure --disable-yasm | |
| make && make install |
Lets create a docker-machine first. Here I have named my machine docker-ubuntu with 2 GB RAM and 2 CPUs.
$ docker-machine.exe create -d virtualbox --virtualbox-memory "2048" --virtualbox-cpu-count "2" docker-ubuntu
Running pre-create checks...
Creating machine...
(docker-ubuntu) Copying C:\Users\Animesh\.docker\machine\cache\boot2docker.iso to C:\Users\Animesh\.docker\machine\machines\docker-ubuntu\boot2docker.iso...
(docker-ubuntu) Creating VirtualBox VM...
(docker-ubuntu) Creating SSH key...
(docker-ubuntu) Starting the VM...
(docker-ubuntu) Check network to re-create if needed...