Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rdalverny on github.
  • I am rda (https://keybase.io/rda) on keybase.
  • I have a public key ASABtNABzDVNjXK0fH9durTmx-cRPE54XDgUkmP_zIQ9ZQo

To claim this, I am signing this object:

@rdalverny
rdalverny / install-multiple-jdk-on-macos-high-sierra.md
Created July 27, 2018 09:05 — forked from ntamvl/install-multiple-jdk-on-macos-high-sierra.md
Install Multiple Java Versions on macOS High Sierra

Install Multiple Java Versions on macOS High Sierra

Install Homebrew Cask

On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.

Install Homebrew Cask first if you haven’t:

brew update
brew tap caskroom/cask
@rdalverny
rdalverny / main.go
Created March 27, 2018 14:19 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
#!/bin/bash
# Wrapper for automated audits,
# using https://github.com/arthepsy/ssh-audit
#
set -euo pipefail
SSHAUDIT="ssh-audit.py"
OPTIONS="--batch --no-colors"
CMD="${SSHAUDIT} ${OPTIONS} $*"

Keybase proof

I hereby claim:

  • I am rdalverny on github.
  • I am rda (https://keybase.io/rda) on keybase.
  • I have a public key ASA2BEEqqLvhl0830zdhswN6oLe5g2Cj8BJ1fkyOrPnq5Ao

To claim this, I am signing this object:

@rdalverny
rdalverny / README.md
Created July 12, 2017 20:27 — forked from gdamjan/README.md
Setup for an easy to use, simple reverse http tunnels with nginx and ssh. It's that simple there's no authentication at all. The end result, a single ssh command invocation gives you a public url for your web app hosted on your laptop.

What

A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.

Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).

Requirements

# Mediawiki, Bugzilla and mediawiki-bugzilla extension
# test setup
version: '2'
services:
mysql:
container_name: mw-bz-mysql
image: mysql
volumes:
- "./data/mysql:/var/lib/mysql"
restart: always
@rdalverny
rdalverny / postmortem.md
Created October 3, 2016 17:11 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym

Keybase proof

I hereby claim:

  • I am rdalverny on github.
  • I am rda (https://keybase.io/rda) on keybase.
  • I have a public key whose fingerprint is EAAA F201 0CBA 050C 2723 D567 C229 00A1 4587 F6D1

To claim this, I am signing this object: