Skip to content

Instantly share code, notes, and snippets.

@artemave
artemave / carrierwave.rb
Last active February 10, 2023 21:08
minimagick carrierwave round image (with white border)
# config/initializers/carrierwave.rb
require 'mini_magick'
module CarrierWave
module MiniMagick
# round _square_ image
def round
manipulate! do |img|
img.format 'png'
@rayjohnson
rayjohnson / gist:fe92c9377e35b95bbfb2a3bbc535d64b
Created November 15, 2017 09:13
docker-machine set up for Qnap
I use the QNAP nas server to host docker containers. We can configure
this mac to run docker-machine and point to the qnap server to deploy or
otherwise mess with docker.
This is how we set that up:
docker-machine create --driver=none --url tcp://<your qnap box>:2376 qnap
Next we need to install the certs. Download them from within the QNAP
@Potherca
Potherca / OIDC-core.md
Last active September 2, 2025 14:54
All the figures/diagrams from various OAuth2 related specs and standrds.

OpenID Connect Core

Abstract Flow

+--------+                                   +--------+
|        |                                   |        |
|        |---------(1) AuthN Request-------->|        |
|        |                                   |        |
|        |  +--------+                       |        |