Skip to content

Instantly share code, notes, and snippets.

@psychemedia
psychemedia / .env
Last active May 10, 2019 16:29
Example of docker-compose / Digital Ocean workbench config for running Jupyter notebooks, PostgresDB and Agensgraph db
#Create a default token/password for Jupyter notebook
JUPYTER_TOKEN=letmein
@haani-niyaz
haani-niyaz / haproxy-docker-nexus.md
Last active March 22, 2023 12:37
HAProxy config for nexus docker repo with no connector

HAPROXY Docker Nexus (No HTTP Connector)

Background

  1. The docker-login repo is setup with minimal (read-only) access which allows all users to login. This creates the necessary credentials store required for all subsequent docker operations. The team docker repositories will be setup with RBAC to only allow access to members of that respective team to perform docker push/pull operations.

  2. The proxy will inspect the context path for the docker pull/push operations and proceed only if authorization is successful.

@thomasdarimont
thomasdarimont / app.py
Last active July 19, 2024 02:17
Simple python example using flask, flask_oidc and keycloak
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
@nathwill
nathwill / roles.json
Created July 24, 2015 19:03
packer template for role-based packer builds
{
"description": "build th base image",
"min_packer_version": "0.8.0",
"variables": {
"user": "centos",
"image": "d5f2c6b8-ae55-41d3-b9ba-15e0f2350659",
"flavor": "2",
"role1": "common",
"role2": "common",
"role3": "common",
@spuder
spuder / gist:8274987
Created January 5, 2014 22:37
Vagrant - post create
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#config.vm.box = "PuppetlabsCent64"
#config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box"
config.vm.box = "Debian-7-2"