Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Improving Processes, Products, Projects and People in Software Development.

Ben Peachey Potherca

👨‍💻
Improving Processes, Products, Projects and People in Software Development.
View GitHub Profile
View ds.sh
#!/usr/bin/env bash
ds() {
is_command() {
[[ -x "$("${command}" -v "$1" 2> /dev/null)" ]] && return 0
return 1
}
is_command 'dos2unix' || { echo 'dos2unix is required'; exit 1; }
@Potherca
Potherca / README.md
Last active Oct 21, 2020
LinkedIn Profile revision strategy
View README.md
@Potherca
Potherca / index.html
Created Aug 18, 2020
Timeline of books read by Goodreads user. Requires a GoodReads API key
View index.html
<!doctype html>
<meta charset="utf-8">
<meta name=viewport content="width=device-width, initial-scale=1">
<meta name="description" content="Timeline of books read by Goodreads user" />
<meta name="twitter:site" content="@potherca">
<meta name="twitter:title" content="Goodreads Timeline">
<meta name="twitter:description" content="Timeline of books read by Goodreads user">
<meta name="twitter:creator" content="@potherca">
@Potherca
Potherca / main.go
Last active Aug 17, 2020
Output an ASCII string as SVG string in Go using https://github.com/asciitosvg/asciitosvg -- Run live at: https://play.golang.org/p/lDD5Mc3iVeU
View main.go
package main
import (
"fmt"
"github.com/asciitosvg/asciitosvg"
)
const logo = ` .-------------------------.
| |
| .---.-. .-----. .-----. |
@Potherca
Potherca / Cost.md
Last active Aug 17, 2020
The yearly costs of various online storage providers
View Cost.md

Online Storage Costs

Free

Provider TB GB € Yearly
Dropbox 0.002 2 Free
Microsoft 0.005 5 Free
Box 0.01 10 Free
@Potherca
Potherca / OIDC-core.md
Last active Aug 26, 2020
All the figures/diagrams from various OAuth2 related specs and standrds.
View OIDC-core.md

OpenID Connect Core

Abstract Flow

+--------+                                   +--------+
|        |                                   |        |
|        |---------(1) AuthN Request-------->|        |
|        |                                   |        |
|        |  +--------+                       |        |
@Potherca
Potherca / docker-cleanse.sh
Last active Jul 13, 2020
Remove/Reset all docker images, networks, volumes, etc.
View docker-cleanse.sh
#!/usr/bin/env sh
set -o errexit -o nounset
# j̶u̶m̶p̶ ̶t̶h̶e̶ ̶s̶h̶a̶r̶k̶, n̶u̶k̶e̶ ̶t̶h̶e̶ ̶f̶r̶i̶d̶g̶e̶, d̶r̶i̶n̶k̶ ̶t̶h̶e̶ ̶b̶l̶e̶a̶c̶h̶, cleanse the docker
# Please note that subshells have _not_ been quoted _on purpose_ to allow them to be uesd as list input
# shellcheck disable=SC2046
docker_cleanse() {
@Potherca
Potherca / README.md
Last active Jul 16, 2020
Logo proposal for PDS Interop.
View README.md

Today I was explaining to someone what Solid is, and discussing PDS Interop and our Solid-Nextcloud project.

I made a drawing (on paper) that looked more or less like this:

canvas

Somehow this struct me as something that might work as a logo, so I recreated it as an SVG.

The final result comes down to 708 characters (or bytes). Because it is an SVG is scales nicely as well.

@Potherca
Potherca / dabblet.css
Last active Jun 19, 2020
Website voor Finna
View dabblet.css
/**
* Website voor Finna
*/
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&display=swap');
html{
height:100%;
background: #eee;
}
@Potherca
Potherca / dabblet.css
Created Jun 19, 2020
Types of Engineering Managers
View dabblet.css
/**
* Types of Engineering Managers
*
* https://dabblet.com/f11dd0ad029e5952c879bd10cc75e36a
*/
.architecture meter::-webkit-meter-optimum-value {background: #C27BA0}
.code meter::-webkit-meter-optimum-value {background: #D5A6BD}
.people meter::-webkit-meter-optimum-value {background: #A64D79}
.product meter::-webkit-meter-optimum-value {background: #D5A6BD}
You can’t perform that action at this time.