This gist has been converted to an article: https://steinbaugh.com/posts/git-private-fork.html
This file contains 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
# I'm no longer using this approach. | |
# | |
# Instead, I encourage you to check out my transformer package. | |
# https://steinbaugh.com/transformer/ | |
# https://github.com/steinbaugh/transformer/ | |
# | |
# - M | |
This file contains 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
#!/usr/local/bin/node | |
// Michael Steinbaugh | |
// 2018-02-01 | |
// | |
// This script requires node | |
// brew install node | |
// | |
// Copied from Steven Schobert | |
// https://github.com/stevenschobert/dotfiles/blob/master/.bbedit/Text%20Filters/.reverse_lines.js |
This file contains 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
Gist has moved to https://steinbaugh.com/posts/rbenv.html |
This file contains 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
# Normalize a Windows file path from the clipboard. | |
# | |
# Single backslash is an escape character in R. | |
# Sanitize `\` to either `\\` or `/` (preferred). | |
# | |
# Otherwise, you'll hit this error: | |
# Error: '\p' is an unrecognized escape in character | |
# | |
# Note that this only works in R running on Windows. | |
# Linux/macOS R doesn't have the `readClipboard()` function. |
This file contains 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
Error in get0(oNam, envir = ns) : | |
lazy-load database '/home/travis/R/Library/callr/R/callr.rdb' is corrupt | |
Calls: <Anonymous> ... force -> rcmd_build_tools -> :: -> getExportedValue -> get0 | |
In addition: Warning message: | |
In get0(oNam, envir = ns) : internal error -3 in R_decompress1 | |
Execution halted |
This file contains 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://bookdown.org/yihui/rmarkdown/document-templates.html |
This file contains 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
bcl2fastq --use-bases-mask y*,y*,y*,y* --mask-short-adapter-reads 0 --minimum-trimmed-read-length 0 |
This file contains 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
# Fix detached head in a submodule | |
# Here's a good explanation on how to fix detached HEAD for submodules. | |
# https://stackoverflow.com/questions/18770545 | |
git branch | |
git checkout master | |
git submodule add -b <branch> <repository> [<submodule-path>] | |
git branch --set-upstream-to=origin/master master |
— Clone repository with submodules automatically:
git clone --recursive [email protected]:name/repo.git
— Initialize submodules after regular cloning:
OlderNewer