Skip to content

Instantly share code, notes, and snippets.

View robingarcia's full-sized avatar

Robin Garcia robingarcia

View GitHub Profile
@selfawaresoup
selfawaresoup / rstudio-server-ubuntu.md
Last active November 2, 2023 07:52
Rstudio server setup on ubuntu

How to set up an Rstudio server on Ubuntu

This procedure was tested on Ubuntu 23.04 but should be very similar or identical on other verions.

Note that this will likely not install the latest version of R but the one that is included in the Ubuntu package repository. Installing a newer version can be tricky since the R project doesn't always support all recent releases of major Linux distributions. For most use cases, especially for education, the slightly older version of R will be prefectly fine though.

All commands in this guide need to be run as user root or with sudo.

1 Prepare the machine

@brfitzpatrick
brfitzpatrick / SLURM_foreach.md
Last active February 7, 2024 18:03
minimal example of using `foreach` parallelism on a clusters managed by SLURM

Job script:

#!/bin/bash

#SBATCH --job-name=rfee
#SBATCH --workdir=/home/user.name/rfee/
#SBATCH --output=r_foreach_example_console_output.txt
#SBATCH --mem-per-cpu=100 # specify RAM per CPU here in Mb
#SBATCH --time=0:02:00
@mjmeyer
mjmeyer / http-cat-error-pages.conf
Created February 17, 2016 22:58
Http.cat erorr pages for nginx
# ---------- Status Cats Error Pages!!! via: https://http.cat/ ---------
#
# requires that a dns resolver be set for nginx as in: resolver 127.0.0.1;
# typically uses dnsmasq for 127.0.0.1 resolver
#
# Usage:
# place this file somewhere accessible to nginx. /etc/nginx/snippets is a decent choice.
# then inside the server block(s) you want cat themed error status responses do:
# include snippets/http-cat-error-pages.conf
#
@rossant
rossant / benchmark.ipynb
Last active July 12, 2023 09:34
Quick HDF5 benchmark
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.