Skip to content

Instantly share code, notes, and snippets.

View fegue's full-sized avatar

Felix Günther fegue

View GitHub Profile
@fegue
fegue / r_ubuntu_20_04.sh
Last active May 10, 2021 07:36 — forked from ElToro1966/r_ubuntu_18_04.sh
[R on Linux] Setup R and RStudio on Ubuntu 20.04 #R #linux
#!/bin/bash
# Add CRAN Repository for an up-to-date R-Version
# https://cran.r-project.org/bin/linux/ubuntu/README.html
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/'
# Follow instructions to add key
# Install R
sudo apt update
sudo apt install libxml2-dev libssl-dev libcurl4-openssl-dev libopenblas-dev r-base r-base-dev
import io
import selectors
import subprocess
import sys
def capture_subprocess_output(subprocess_args):
# Start subprocess
# bufsize = 1 means output is line buffered
# universal_newlines = True is required for line buffering
process = subprocess.Popen(subprocess_args,
@fegue
fegue / README.md
Created November 30, 2022 17:23 — forked from mzabriskie/README.md
Check git status of multiple repos

If you're like me you have a dir like ~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually.

Usage:

git-status [directory]

This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.