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
| # Configuring R for Package Developers on Linux | |
| # Assumes you are using a Ubuntu-based distro | |
| # Tested and working on Pop!_OS 22.04 LTS in 2023 | |
| # 1. System Requirements | |
| sudo apt install -y build-essential | |
| # 2. Install R | |
| sudo apt update | |
| sudo apt install -y r-base r-base-dev |
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 | |
| git pull | |
| git add --all | |
| git commit -asm "`date +'%a %d %b %Y %H:%M:%S'`" | |
| git push |
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
| library(microbenchmark) | |
| library(data.table) | |
| library(reshape2) | |
| library(Rcpp) | |
| library(dplyr) | |
| library(ggplot2) | |
| theme_set(theme_bw()) | |
| #--- Data ---- | |
| set.seed(1) |
- feat- - Development work on a new feature. Typ merged into a
rcbranch - doc- - Documentation of project, not code comments. Typ merged into a
rcbranch - fix-14- - Fix of a bug, include the issue number if possible. Typ merged into a
rcbranch - rc0.0.0 - Release candidate for a stable point and is ready to be released. May have an open draft pull request
- main - Default branch. Has tags and releases with semantic versioning e.g.
v0.9.1
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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """Minimal python commad line.""" | |
| import sys | |
| import argparse | |
| import logging |
For Ubuntu and Pop!_OS
Start with mle.sh and then run rice.sh
References:
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/sh | |
| FORCE_STOP=${FORCE_STOP:-"--force"} | |
| docker ps -aq | xargs docker stop ${FORCE_STOP} | |
| docker image prune -f |
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/sh | |
| KEEP="master" | |
| KEEP_LOCAL="${KEEP_LOCAL:-"true"}" | |
| [ "$KEEP_LOCAL" = true ] && KEEP="${KEEP}\|\*" | |
| echo "Deleting local branches" | |
| git branch --list | grep -v "$KEEP" | xargs git branch -d |
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/sh | |
| MIRROR_REPO=${MIRROR_REPO:-"origin"} | |
| UPSTREAM_REMOTE=${UPSTREAM_REMOTE:-"upstream_remote"} | |
| UPSTREAM_REMOTE_NAME=${UPSTREAM_REMOTE_NAME:-"upstream"} | |
| UPSTREAM_REMOTE_URL=${UPSTREAM_REMOTE_URL:-"<alternate-remote.git>"} | |
| echo "Pulling $UPSTREAM_REMOTE_URL" | |
| git remote add "$UPSTREAM_REMOTE" "$UPSTREAM_REMOTE_URL" | |
| git fetch "$UPSTREAM_REMOTE" |