- Create your kind cluster (suit yourself https://kind.sigs.k8s.io/docs/user/configuration/)
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
#!/bin/bash | |
set -ex | |
if [ $# -ne 3 ]; then | |
echo usage: $0 jenkins_home git_repos_url backup_folder | |
exit 1 | |
fi | |
# Jenkins home folder |
from flask import Flask | |
from uuid import uuid4 | |
app = Flask(__name__) | |
app.config["SECRET_KEY"] = str(uuid4()) | |
IDP_CONFIG = { | |
"well_known_url": "Identity Provider wellknown url: https://{TENANT}.auth0.com/.well-known/openid-configuration", |
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
package auth | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net" | |
"net/http" | |
"net/url" |
#!/usr/bin/env python3 | |
# Copyright 2020 Nicolas P. Rougier - BSD License | |
# | |
# from reading org-mode emacs files, display a formated calendar in the | |
# terminal showing holidays and busy days and upcomiing events. | |
import holidays # https://pypi.org/project/holidays/ | |
import calendar | |
import datetime | |
import orgparse # https://pypi.org/project/orgparse |
short url: caseywatts.com/selfpublish
my book is out! an applied psychology / self-help book targeted at developers: Debugging Your Brain
Markdown
--> PDF
(as a booklet!)
Markdown
--> EPUB
and MOBI
def attach_handler(app): | |
from flask import redirect, url_for | |
app.wsgi_app = CustomProxyFix(app.wsgi_app) | |
class CustomProxyFix(object): | |
def __init__(self, app): | |
self.app = app | |
def __call__(self, environ, start_response): | |
host = environ.get('HTTP_X_FHOST', '') | |
if host: |
Allow about one hour to follow this tutorial and become familiar with BLT. To save time, create the Acquia Cloud Free environment before you start the tutorial.
This tutorial assumes you are on a Mac, but I also wrote a quick start for Drupal and BLT on Windows 10.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; Pre gopls/lsp-mode/go-mode setup | |
;;; This section installs use-package from melpa if it isn't | |
;;; already installed. You can skip this if you already have use-package | |
;; enable melpa if it isn't enabled | |
(require 'package) | |
(when (not (assoc "melpa" package-archives)) | |
(setq package-archives (append '(("melpa" . "https://melpa.org/packages/")) package-archives))) | |
(package-initialize) |
pipeline { | |
agent { | |
kubernetes { | |
label 'dind' | |
defaultContainer 'docker' | |
yaml """ | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: |