Skip to content

Instantly share code, notes, and snippets.

View FlorianDr's full-sized avatar

Florian Dreschner FlorianDr

View GitHub Profile

Devcon × Meerkat SSO Integration

Overview

This document describes the Single Sign-On (SSO) integration between app.devcon.org and app.meerkat.events.

When a Devcon user clicks a link to Meerkat, they are transparently authenticated without a separate login. The flow is based on a one-time opaque code embedded in the redirect URL, exchanged server-to-server using a pre-shared API key. No OAuth infrastructure is required.

Key properties:

  • Short-lived code (TTL 60s), single-use, 32 bytes of CSPRNG entropy
@FlorianDr
FlorianDr / demo.json
Created January 30, 2020 10:11
An example form
{
"elements": [
{
"id": "name",
"type": "short_text",
"_mimeType": "application/vnd.io.beekeeper.form.element.v1+json",
"label": "1. What's your name?",
"placeholder": "e.g. John Doe",
"validation": {
"type": "string",
@FlorianDr
FlorianDr / python.md
Created February 21, 2019 21:49
Tips & Tricks

Remove all installed pip packages:

pip freeze | xargs pip uninstall -y
@FlorianDr
FlorianDr / README.md
Created April 21, 2016 15:49
Modify hosts file on mac

sudo vim /etc/hosts

sudo killall -HUP mDNSResponder

@FlorianDr
FlorianDr / _radios.html
Created April 12, 2016 07:58
Bootstrap 3 horizontal radio inputs
<form>
<div class="form-group row">
<label class="control-label col-md-3"> My Label </label>
<div class="radio col-md-9">
<label>
<input type="radio" name="radio" value="true"/>
This radio button should be more popular
</label>
</div>
<div class="radio col-md-9 col-md-3">
@FlorianDr
FlorianDr / docker.md
Last active May 15, 2018 07:29
Docker Commands

OUTDATED Delete all untagged images

docker rmi $(docker images | grep "^" | awk '{print $3}')

Reset Docker Machine DNS after network change

docker-machine ssh default sudo udhcpc

Remove all stopped containers

docker ps -aq | xargs docker stop | xargs docker rm