Skip to content

Instantly share code, notes, and snippets.

View celaxodon's full-sized avatar

Graham Leva celaxodon

View GitHub Profile
@celaxodon
celaxodon / rstudio-repro.Dockerfile
Created October 4, 2021 18:13
Rstudio desktop 2021.09.0+351 crash reproduction
FROM debian:buster-slim
RUN apt-get update -y && apt-get install -y \
r-base \
wget
RUN echo "R version is: $(R --version)"
RUN apt-get install -y \
gdebi-core \
@celaxodon
celaxodon / bench.sh
Created July 10, 2017 20:17
Webserver benchmarks with ab and wrk
# -c <num> -- number of connections to keep open
# -d <time> -- duration
# -t <num> -- number of threads to use
wrk -c 75 -d 10 -t 8 {url}
# -c <num> -- concurrent users
# -n <num> -- number of requests (length of the benchmark)
# -k -- keepalive (done by default by most browsers)
ab -c 75 -n 10000 {url}
@celaxodon
celaxodon / Backup.sh
Created September 18, 2016 13:03
Fedora backup script using rsync
#!/bin/bash
# A script to backup the data and package lists on my Fedora system
# Must be run with root privileges!
set -e
set -o pipefail