Skip to content

Instantly share code, notes, and snippets.

jjb /
Created February 4, 2018 16:27
Active Record Connection Management in Rails 5.1 or lower
tabiodun / Dockerfile
Last active August 22, 2020 08:06
chromedriver dockerfile
FROM ubuntu:14.04
# Install Chromium build dependencies.
RUN echo "deb trusty multiverse" >> /etc/apt/sources.list # && dpkg --add-architecture i386
RUN apt-get update && apt-get install -qy git build-essential clang curl
# Install Chromium's depot_tools.
ENV DEPOT_TOOLS /usr/bin/depot_tools
RUN git clone $DEPOT_TOOLS
tabiodun / Dockerfile
Last active April 24, 2018 21:33
Dockerfile for tabiodun/selenium-chrome-headless
FROM selenium/node-base:3.4.0-dysprosium
USER root
ARG CHROME_VERSION="google-chrome-beta"
RUN wget -q -O - | apt-key add - \
&& echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update -qqy \
&& apt-get -qqy install \
Arie / gist:25b260cc02d04a67d282
Last active October 22, 2020 21:37
Installing flent on OS/X with homebrew
`pip install flent matplotlib`
`brew install fping`
Netperf in homebrew is installed without demo mode by default, so we need to edit the recipe slightly, also demo mode fails to build under OS/X, requiring a tiny patch to netlib.c ( ). The following recipe changes the URL to a prepatched version that I host and changes the configure line to enable demo mode.
`brew edit netperf`
class Netperf < Formula
desc "Benchmarks performance of many different types of networking"