Skip to content

Instantly share code, notes, and snippets.

Michael van Rooijen mrrooijen

Block or report user

Report or block mrrooijen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mrrooijen /
Last active Jun 7, 2018
Command to produce a wildcard ssl certificate using the Let's Encrypt Certificate Authority. Verification is done using the DNS challenge. The resulting certificates can be found in ./ssl/live/
docker run -it --rm --name certbot \
-v $(pwd)/ssl:/etc/letsencrypt \
-v $(pwd)/ssl:/var/lib/letsencrypt \
certbot/certbot certonly \
--server \
--manual \
--preferred-challenges dns \
-d * \
mrrooijen /
Created May 6, 2018
How to enable SSL with Redis (Ruby Driver) on RedisLabs.

How to enable SSL with [Redis] ([Ruby Driver]) on [RedisLabs].

Typically, this is how you'd connect to Redis: ENV["REDIS_URL"])

Where REDIS_URL uses the following format:

mrrooijen /
Created Jan 18, 2018
How to update Intel microcode on Ubuntu.

Verify the microcode version prior to updating:

dmesg | grep microcode

Update your package list and install the following packages:

apt update
apt install microcode.ctl intel-microcode

Reboot and run the following command again to verify the new microcode is in effect:

mrrooijen /
Last active Jan 18, 2018
How to update the Linux kernel.

Verify your current kernel version:

uname -r

To update the Linux kernel, select a version from the following URL:

For example v4.14.13:

mrrooijen / countries.json
Last active Aug 8, 2017
JSON collection of 2-letter ISO 3166 alpha-2 code country list.
View countries.json
"AF": "Afghanistan",
"AX": "AlandIslands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "AmericanSamoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
# Install Docker
curl -fsSL | sh
# Run Rancher
docker run -d \
--name=rancher \
--restart=always \
-v /var/lib/mysql:/var/lib/mysql \
-p 8080:8080 \
mrrooijen / global_register.ex
Created Jan 2, 2017
Ensure that only one instance of a given (supervised) process exists in the cluster.
View global_register.ex
defmodule Party.Clock do
use GenServer
def start_link do
case GenServer.start_link(__MODULE__, [], name: {:global, __MODULE__}) do
{:ok, pid} ->
{:ok, pid}
{:error, {:already_started, pid}} ->
IO.puts("Already started!!")
mrrooijen / ssh_config
Created Dec 21, 2016
SSH config for keeping idle connections alive, and to automatically add ssh key to agent.
View ssh_config
Host *
ServerAliveInterval 60
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
mrrooijen /
Created Dec 3, 2016
View (graph of) receiving and transmitting (sending) data
speedometer -r eth0 -t eth0
You can’t perform that action at this time.