Skip to content

Instantly share code, notes, and snippets.

View Potherca's full-sized avatar
🤔
I wonder what this button does…

Ben Peachey Potherca

🤔
I wonder what this button does…
View GitHub Profile
#include <stdio.h>
#include <emscripten/emscripten.h>
int main(int argc, char ** argv) {
printf("Hello World\n");
}
#ifdef __cplusplus
extern "C" {
#endif
#!/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 December 7, 2020 15:36
LinkedIn Profile revision strategy
@Potherca
Potherca / index.html
Created August 18, 2020 12:51
Timeline of books read by Goodreads user. Requires a GoodReads API key
<!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 June 14, 2022 08:54
Output an ASCII string as SVG string in Go using https://github.com/asciitosvg/asciitosvg -- Run live at: https://go.dev/play/p/t2TBmJ9Rpfl
package main
import (
"fmt"
"github.com/asciitosvg/asciitosvg"
)
const logo = ` .-------------------------.
| |
| .---.-. .-----. .-----. |
@Potherca
Potherca / Cost.md
Last active August 17, 2020 13:54
The yearly costs of various online storage providers

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 August 26, 2020 09:57
All the figures/diagrams from various OAuth2 related specs and standrds.

OpenID Connect Core

Abstract Flow

+--------+                                   +--------+
|        |                                   |        |
|        |---------(1) AuthN Request-------->|        |
|        |                                   |        |
|        |  +--------+                       |        |
@Potherca
Potherca / docker-cleanse.sh
Last active August 4, 2022 09:27
Remove/Reset all docker images, networks, volumes, etc.
#!/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 used as list input
# shellcheck disable=SC2046
docker_cleanse() {
@Potherca
Potherca / README.md
Last active July 16, 2020 16:58
Logo proposal for PDS Interop.

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 June 19, 2020 18:44
Website voor Finna
/**
* Website voor Finna
*/
@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@700&display=swap');
html{
height:100%;
background: #eee;
}