⚠️ Ngroker was moved to https://github.com/maelvls/ngroker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This custom pretty-printer for mitmproxy will decode the base64url-encoded | |
'payload' and 'protected' fields. | |
This pretty-printer is useful for understanding the POST requests made to | |
an ACME server, since these requests are made using JWS as JSON, which, | |
contrary to JWT tokens that are very easy to decode, aren't as common. | |
The whole JWS as JSON and application/jose+json are detailed in | |
https://tools.ietf.org/html/rfc8555. |
% code --list-extensions | pbcopy
adamhartford.vscode-base64
ahebrank.yaml2json
alexdima.copy-relative-path
aliariff.auto-add-brackets
anseki.vscode-color
aprilandjan.ascii-tree-generator
bierner.markdown-preview-github-styles
codezombiech.gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The point of this snippet is to showcase how to handle gracefully any incoming | |
// SIGINT (manual ctrl-c) or SIGTERM (process is killed) for a long-running task | |
// such as a server. | |
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"os" |
gcloud projects create upspin42
gcloud iam service-accounts create --project upspin-service-account
gcloud iam service-accounts create --project upspin42 upspin-service-account
gcloud projects add-iam-policy-binding upspin42 --role=roles/owner --member=serviceAccount:[email protected]
gcloud iam service-accounts keys create json_key.json --iam-account [email protected] --project upspin42
gcloud alpha billing projects link --billing-account $(gcloud alpha billing accounts list --format json | jq -r '.[0].name') upspin42
gcloud dns record-sets transaction start --zone maelvls
gcloud dns record-sets transaction add --project august-period-234610 --zone=maelvls --type=A --ttl 300 --name upspin.maelvls.dev. 34.89.156.68
I wanted to make sure no one gets slowed down in their PRs because of the
introduction of authorization.go
. It has been added to all the services
and all HTTP endpoints are affected. Here is how to get around that.
The current impl of authorization.go
is algorithm-agnostic regarding
the verification. The gateway or sidecar proxy (Envoy/Istio) will handle
the verification.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.2 | |
info: | |
title: Dogs and cats | |
description: some dogs and some cats | |
version: 1.0.0 | |
paths: | |
/pets: | |
patch: | |
requestBody: |
Software (I run macOS):
- USB overdrive (the default macOS mouse acceleration drives me crazy; also allows me to invert up/down scolling for the mouse only; I keep "natural scrolling" turned on in the system settings)
- HyperSwitch for switching between windows with alt+tab (cmd+tab only allows to switch between apps)
- iTerm 2 + zsh + antigen + async prompt theme (agkozak-zsh-prompt) + tons of stuff around command line
Desk setup:
- Flexispot standing desk E5B (B = black) with a €25 wood board I mounted on top
- LG 27UL850-W 27 inches 4K monitor
- 📖 Remote: Office Not Required (2003, by 37signals/Basecamp): amazon
- 📺🇫🇷 Aussi efficace à la maison qu'au bureau (Jean-Laurent de Morlhon): youtube
- 🎙Remote Work Podcast (by trackly.com): apple podcast