- http://stackoverflow.com/questions/804115 (
rebasevsmerge). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebasevsmerge) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
resetvscheckoutvsrevert) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse) - http://stackoverflow.com/questions/292357 (
pullvsfetch) - http://stackoverflow.com/questions/39651 (
stashvsbranch) - http://stackoverflow.com/questions/8358035 (
resetvscheckoutvsrevert)
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
| BASE_DIR="$HOME/.vim" | |
| PLUGIN_DIR="$BASE_DIR/bundle" | |
| COLORS_DIR="$BASE_DIR/colors" | |
| AUTOLOAD_DIR="$BASE_DIR/autoload" | |
| PLUGINS=( | |
| "kien/ctrlp.vim" | |
| "vim-airline/vim-airline" | |
| "vim-airline/vim-airline-themes" | |
| "scrooloose/nerdtree" |
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
| curl -L https://get.oh-my.fish | fish | |
| omf install sushi | |
| # copy fish config | |
| fundle install 'nesl247/fish-theme-dracula' |
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
| https://github.com/moncho/dry |
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
| repo_create <- try(gh::gh("POST /user/repos", | |
| name = repo_nm, | |
| description = paste("Website for workshop", repo_nm)), | |
| silent = TRUE) | |
| if (inherits(repo_create, "try-error")) { | |
| stop("Can't create repository. Does it already exist?") | |
| } else if (inherits(repo_create, "gh_response")) { | |
| if (identical(attr(repo_create, "response")$status, | |
| "201 Created")) | |
| message("repo created") |
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
| rstudio_type = function(x, pause = function() .1, mistake = 0, save = 0) { | |
| get_ctx = function() rstudioapi::getSourceEditorContext() | |
| ctx = get_ctx() | |
| if (is.null(id <- ctx$id)) { | |
| message('Please make sure an RStudio editor tab is open') | |
| return() | |
| } | |
| save_it = function(prob = 1) { | |
| if (ctx$path == '' || (rbinom(1, 1, prob) == 0)) return() |
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
| users=`ls /data/home/` | |
| folder="FOLDER" | |
| for i in $users; do | |
| echo "Copying to $i" | |
| cp -R /data/$folder /home/$i/ | |
| rm -rf /home/$i/$folder/.git | |
| rm -rf /home/$i/$folder/.Rproj.user | |
| chown -R $i: /home/$i/$folder | |
| done |
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
| install_location <- .libPaths()[[2]] | |
| pkgs <- c( | |
| "RcppTOML", | |
| "anytime", | |
| "styler", | |
| "sinew", | |
| "shinyjs", | |
| "diffr", | |
| "data.table", |
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
| // This code is published under GNU GPL v3+. For more information, visit http://www.gnu.org/licenses/gpl.html | |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" |
Run go install and
gogitlocalstats -add /path/to/folderwill scan that folder and its subdirectories for repositories to scangogitlocalstats -email [email protected]will generate a CLI stats graph representing the last 6 months of activity for the passed email. You can configure the default inmain.go, so you can rungogitlocalstatswithout parameters.
Being able to pass an email as param makes it possible to scan repos for collaborators activity as well.
