Skip to content

Instantly share code, notes, and snippets.

View vongohren's full-sized avatar
⛓️

Snorre Lothar von Gohren Edwin vongohren

⛓️
View GitHub Profile
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABmJLR0QA/wD/AP+gvaeTAAAgAElEQVR4nOzdeXxU1fk/8M+5984+mayQhEDCvi+iCIiiiLt1q/taqXWjrf1aba2t7be02lq1/Wqta63+bHGpC7jjLgKKgmwCshMgQPZ99ruc8/tjlsxkZkICSSZhnvfrlZfkzp07JxfJee45z3kOQ4YQQkwFcD6ACQCKABSHv5zpbBchhJC08QCoCn9VA/gOwDuMsfVpbVUvYeluQE8SQhwD4GaEOv7BaW4OIYSQ/uEAgHcA/JMxtiHdjekpR2UAIIQoBXAfgGtxlP6MhBBCepwA8AKA3zLGKtLdmO52VHWOQggFwB8B/ByANc3NIYQQcnQIAHgYwP8yxvR0N6a7HDUBgBAiF8BrAE5Ld1sIIYQclZYCuJQx1pjuhnSHoyIAEEKMAvAugNHpbgshhJCj2m4A5zPGtqa7IUeq3wcAQojJCEVleeluCyGEkIzQAmAuY2xduhtyJPp1ACCEKASwGkBputtCCCEkoxwAMJ0xVpXuhhwuKd0NOFxCCCuAN0GdPyGEkN43GMCb4b6oX+q3AQCAfwKYme5GEEIIyVjTEeqL+qV+OQUghDgZwLJ0t4MQQggBcApjbHm6G9FV/TUAWIVQ5EUIIYSk22rG2Ix0N6Kr+t0UgBDiclDnTwghpO+YHu6b+pV+NwIghPgWwOR0t4MQQgiJsZExNiXdjeiKfhUACCGGAShPdzsIIYSQJIYzxvakuxGd1d+mAC5IdwMIIYSQFPpVH9XfAoDz090AQgghJIV+1Uf1tykAP2iXP0IIIX1TgDFmS3cjOqvfjACEd/ujzp8QQkhfZQ33Vf1CvwkAABSnuwGEEELIIfSbvooCAEIIIaT79Ju+qj8FAPnpbgAhhBByCP2mr1LS3YAu6E/BCiH9TmuwFf9c+0/sad6DY4uPxbxj5kFmcrqb1S8EjSCeWfsMttZvxb
@vongohren
vongohren / issue.ts
Created February 2, 2022 17:49
How I issue VCs
import { verifiable } from '@transmute/vc.js';
import { documentLoaders } from 'jsonld';
// import { log } from '../utils/logger';
import { Ed25519Signature2018, Ed25519VerificationKey2018 } from '@transmute/ed25519-signature-2018';
export const vcCreateWithSignature = async (signableTemplate, documentLoader, suite) => {
const output = await verifiable.credential.create({
credential: signableTemplate,
documentLoader: documentLoader,
suite: suite,
const {
BbsBlsSignature2020,
BbsBlsSignatureProof2020,
deriveProof
} = require("@mattrglobal/jsonld-signatures-bbs");
const { extendContextLoader, sign, verify, purposes } = require("jsonld-signatures");
const { resolver } = require('@transmute/did-key.js');
const { documentLoaders } = require("jsonld");
@vongohren
vongohren / index.gs
Created February 25, 2021 08:05
Google sheets slack bot
// Put your Slack webhook here, make sure its connected to the correct channel
var SLACK_WEBHOOK_POST_URL = "make one from slack integration web hoooks" //general
function dice() {
if(Utilities.formatDate(new Date(), "GMT", "u") < 6){
var personal = 0; // Satt til null siden jeg tenkte vi kjører gruppepreik 100%. Men kan endres her om man vil. Da må man sikkert endre logikken litt i preik() og separere spørsmålene på et vis.
var dice = Math.random();
@vongohren
vongohren / Remote work benefits and challenges.md
Created May 22, 2020 21:11
Remote work benefits and challenges

It's 2020, lets talk about remote work

I'm not the first one to talk about this in the recent months. The whole world has been forced into remote work, or distributed work as Matt Mullenwheg from Automatic, likes to call it.

#!/usr/bin/env python
# Copyright 2012-2017 Gerwin Sturm
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@vongohren
vongohren / My trello input process.md
Last active January 12, 2020 21:58
My trello input process

+++ date = "2019-12-28" title = "The ultimate trello input process" +++

The ultimate input process

In this article: How I put a process on life I wrote about the processification of my life. But did not go into detail on how my input process is done.

By the input process I mean the way of collecting data from all the different sources I get my inspiration and thoughts from. That can be self-notes, articles you want to read, URLs you want to explore, tweets you want to explore, books you want to read and so on! I will not delve into the thought process around this, because that was discussed more in-depth in the mentioned article. But rather dive straight into the details.

@vongohren
vongohren / Why I do a writing challenge.md
Last active August 15, 2019 20:51
Why I do a writing challenge

+++ date = "2019-08-15" title = "Why you should do a writing challenge" +++

Why you should do a writing challenge

The world is getting global, the work relations we have are getting digital, and more and more is happening in a written form.

And nothing is better than a challenge for yourself! I'm doing a writing challenge, and the experience has been great so far. Therefore I want to share that experience and tell you why you should do a writing challenge for yourself!

@vongohren
vongohren / How i agiled up my life.md
Last active December 28, 2019 11:23
How i put a process on life

+++ date = "2019-07-15" title = "How i put a process on life" math = "true" +++

How I put a process on life

This is a beginning of a couple of write-ups giving insight to how I was able to stop forgetting, stop stressing about to do's and initiatives, a better sense of completion, a greater ability to execute and much more focus. This write-up starts as an intro to my path of change. In the bottom, you can see som clear results of this change.

Also, I just want to share that I have put myself up for a writing challenge, that is one of the reasons I'm sharing this. I want to better express my thoughts in writing and be able to get across important insights and ideas digitally and formally. I'm working on a write up with reasons, values, and outcomes of this on this link

import IPFS from 'ipfs'
import OrbitDB from 'orbit-db'
// OrbitDB uses Pubsub which is an experimental feature
// and need to be turned on manually.
// Note that these options need to be passed to IPFS in
// all examples even if not specified so.
const ipfsOptions = {
EXPERIMENTAL: {
pubsub: true