Skip to content

Instantly share code, notes, and snippets.

View dougvk's full-sized avatar

dougvk dougvk

View GitHub Profile
@dougvk
dougvk / profile signing
Last active November 1, 2017 15:21
how to sign a blockstack profile
# danvk's profile
~ % cat /tmp/danvk.json | python -m json.tool
{
"@type": "Person",
"account": [
{
"@type": "Account",
"identifier": "danvk",
"proofType": "http",
"proofUrl": "https://twitter.com/danvk/status/923752824458137601",
@dougvk
dougvk / update zonefile command
Created October 29, 2017 16:48
example update command for the zonefile
~ % blockstack update danvk.id /tmp/danvk.zonefile
--------------------------------------------------------------------------------
Data public key: 0443a3ff5442367e3efd3d81a9fd9366bb3d0315ceb4e417bdc0c0c27bb30379b76ba5c66124eb33709847e80305040b780579b90ebb4a1a6429bddf1b16bf8994
Profile replicas (1):
(1) https://ipfs.io/ipfs/QmRGcCWVrwHqArigxPXpyadmyNMXv57qwQThk6JWsREkkE
Handled by drivers: [http]
TXT records (0):
@dougvk
dougvk / zonefile
Last active November 1, 2017 15:28
example blockstack zonefile
~ % cat /tmp/danvk.zonefile
$ORIGIN danvk.id
$TTL 3600
pubkey TXT "pubkey:data:0243a3ff5442367e3efd3d81a9fd9366bb3d0315ceb4e417bdc0c0c27bb30379b7"
_https._tcp URI 10 1 "https://ipfs.io/ipfs/QmQJJokN8cwVg7gMLB6p6ztTbj6Twe3sQmeAehCEUwHpwo"
@dougvk
dougvk / runkit-profile-signing-script.js
Created October 29, 2017 16:10
script for creating and signing a profile with blockstack.js
// https://npm.runkit.com/blockstack
var blockstack = require("blockstack")
const profileOfDan = {
"@context": "http://schema.org",
"@type": "Person",
"account": [
{
"@type": "Account",
"identifier": "danvk",
"placeholder": false,
Verifying that "dougvk.id" is my Blockstack ID. https://onename.com/dougvk
  • Description for running the Energy Hub services

Create a digital ocean docker box using the docker-machine command: https://docs.docker.com/machine/drivers/digital-ocean/ Run docker-compose -f docker-compose.yml.production build Run docker-compose -f docker-compose.yml.production up -d

If you look at the docker-compose file, you'll see it builds the nginx and node apps. nginx has a configurable .crt file, which you should change. Same with default.conf, based on your specifications.

The first time you run the docker-compose command, it will spin up the nginx and the ehub box. The ehub box will not work.

@dougvk
dougvk / alt-woke.md
Last active February 20, 2017 19:31

ALT WOKE. Feature list if you'd like to adopt it:

  1. Less clumsy than 'anti-authoritarian liberal who is suspicious but not knee-jerk opposed to language policing'

  2. Signals modern, urban, pro-tech liberal as opposed to 60s boomer liberal values clearly, includes hat tip to civil rights

  3. More pronounceable than 'liberal-tarian' (which is invariably misread as 'libertarian' if you don't include the hyphen and attach an explanation for those who haven't heard the term)

  4. Clearer to people under 30 than 'McGovern libertarian' (Marc Andreessen's preferred label), which is kinda where this came from

Keybase proof

I hereby claim:

  • I am dougvk on github.
  • I am dougvk (https://keybase.io/dougvk) on keybase.
  • I have a public key whose fingerprint is A94E DBDA 1DE6 7834 DDE2 5DFF BDED 2E9E ADEF 4B1A

To claim this, I am signing this object:

@dougvk
dougvk / Dockerfile
Last active January 27, 2020 20:28
Building Urbit with Docker
FROM ubuntu:latest
RUN apt-get update -y && apt-get install -y \
libgmp3-dev libsigsegv-dev openssl libssl-dev \
libncurses5-dev git make exuberant-ctags automake autoconf libtool \
g++ ragel cmake re2c curl
RUN git clone https://github.com/urbit/urbit /urbit
WORKDIR /urbit
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-0.33649000000001,
45.69892000000001