Skip to content

Instantly share code, notes, and snippets.

View melvincarvalho's full-sized avatar
💭
I may be slow to respond.

Melvin Carvalho melvincarvalho

💭
I may be slow to respond.
View GitHub Profile
@melvincarvalho
melvincarvalho / index.html
Created September 19, 2018 08:57 — forked from bellbind/index.html
[solid][browser] pastebins app from tutorial doc
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script
src="https://solid.github.io/releases/solid.js/solid-client.min.js"
></script>
<script type="module" src="./main.js"></script>
<style>
li > input:checked ~ .child {display: none;}
@melvincarvalho
melvincarvalho / index.html
Last active September 19, 2018 09:03 — forked from bellbind/index.html
[solid][browser] elementary app with solid-auth-client library
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script src="https://solid.github.io/solid-auth-client/dist/solid-auth-client.bundle.js"></script>
<script type="module" src="./main.js"></script>
<style>
#login {display: none;}
#webid:empty ~ #login {display: inline;}
#webid:empty ~ #logout {display: none;}
@melvincarvalho
melvincarvalho / databoxpassword.png
Last active February 7, 2018 17:49
How to recover your databox.me account
databoxpassword.png
@melvincarvalho
melvincarvalho / databox401.md
Last active February 7, 2018 17:29
How to login via 401 on databox.me

How to login via 401 on databox.me

  1. Go to a URI without access

  2. Login with webid and password

@melvincarvalho
melvincarvalho / databox.md
Last active May 2, 2022 18:53
How to get a WebID + TLS account on databox.me
@melvincarvalho
melvincarvalho / sshToX509.js
Created February 6, 2018 22:25
sshToX509.js
var fs = require("fs");
var forge = require('node-forge');
var debug = require('debug')('converter');
var BigInteger = forge.jsbn.BigInteger;
// change as necessary
var countryName = 'UK';
var domain = 'http://databox.me/';
var localityName = 'London';
var organizationName = 'databox.me';
@melvincarvalho
melvincarvalho / keygen.php
Created January 23, 2018 20:03
keygen.php
<?php
function write_cert($cert) {
echo "$cert";
$myFile = "/tmp/tmp1234.spkac";
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $cert);
fclose($fh);
@melvincarvalho
melvincarvalho / gist:c5bba67e1c02ce0ca3ed06aa9d57d157
Last active May 24, 2017 07:49
Reasons to like weibd-tls

Tim Berners-Lee @timbl

I lke webid-tls because

  • Public keys are sooo much better than passwords

  • I want to have 1 or more public ID consistently in a bunch of stuff I do, not a different ID in each silo.

  • I feel it is simpler/quicker/more secure to authenticate directly from client to server in general than get redirected to other third parties.

1) AccountManager (account creation tests) accessing accounts should be able to access public file of an account:
TypeError: Cannot read property 'status' of undefined
at Test._assertStatus (node_modules/supertest/lib/test.js:229:10)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/superagent/lib/node/index.js:687:12)
at ClientRequest.<anonymous> (node_modules/superagent/lib/node/index.js:639:10)
at TLSSocket.socketErrorListener (_http_client.js:306:9)
@melvincarvalho
melvincarvalho / node-solid-server-tests-all.txt
Created May 11, 2017 14:31
node solid server tests all
1) AccountManager (account creation tests) accessing accounts should be able to access public file of an account:
TypeError: Cannot read property 'status' of undefined
at Test._assertStatus (node_modules/supertest/lib/test.js:229:10)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/superagent/lib/node/index.js:687:12)
at ClientRequest.<anonymous> (node_modules/superagent/lib/node/index.js:639:10)
at TLSSocket.socketErrorListener (_http_client.js:306:9)