Skip to content

Instantly share code, notes, and snippets.

@alanshaw
alanshaw / drand.md
Last active July 21, 2020 20:27
drand dev setup

Setup

# Create keys
drand generate-keypair --tls-disable --folder ~/.drand0 127.0.0.1:3000
drand generate-keypair --tls-disable --folder ~/.drand1 127.0.0.1:3100
drand generate-keypair --tls-disable --folder ~/.drand2 127.0.0.1:3200

# Start daemons
drand start --tls-disable --folder ~/.drand0 --private-listen 127.0.0.1:3000 --control 3001 --public-listen 127.0.0.1:3002
@robbiev
robbiev / clipboard.md
Created April 14, 2017 16:22
clipboard access for WSL / bash on Windows

For those who want to go the X server route, let me leave my notes here.

  1. Install VcXsrv (I found that Xming is outdated on sourceforge and the new version is donationware)
  2. If it starts after installing, stop it
  3. Start it using XLaunch (search in the start menu), go with all the defaults (ensure the clipboard options are checked)
  4. At the end, save the configuration to a file (use that to start it from now on)
  5. Put export DISPLAY=localhost:0.0 in your .bashrc in bash for Windows (and run the command in any open bash windows). The reason I explicitly say localhost is that this makes SSH X forwarding work, see below.
  6. Ensure vim is installed using clipboard support. vim --version | grep clipboard should say +clipboard, not -clipboard. Also if you run the ex command :echo has('clipboard') in vim and it says 0 it does not have clipboard support compiled in. If you don't have clipboard support, install the vim-gtk package (`apt-get install vi