Skip to content

Instantly share code, notes, and snippets.

View brianjo's full-sized avatar
🏠
Working from home

Brian Johnson brianjo

🏠
Working from home
View GitHub Profile
@brianjo
brianjo / gourcevideo.sh
Created October 25, 2021 16:54 — forked from Gnzlt/gourcevideo.sh
Gource video export command
#!/bin/bash
gource \
-s .03 \
-1280x720 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--key \
--highlight-users \
@brianjo
brianjo / git-commit-log-stats.md
Created October 25, 2021 16:34 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@brianjo
brianjo / ipynb_to_gallery.py
Created June 17, 2021 15:06 — forked from chsasank/ipynb_to_gallery.py
Convert jupyter notebook to sphinx gallery notebook styled examples.
@brianjo
brianjo / git_rebase.md
Created May 4, 2020 22:12 — forked from ravibhure/git_rebase.md
Git rebase from remote fork repo

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:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

@brianjo
brianjo / gource.sh
Last active February 20, 2019 22:44 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 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
@brianjo
brianjo / docker.md
Created February 2, 2018 19:34 — forked from apanimesh061/docker.md
Creating a commit of a Docker Container

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...