Skip to content

Instantly share code, notes, and snippets.

(function(){
// This snippet is a customized version of the code found on
// stackoverflow. Since firefox only copies to the clipboard when the event
// was triggered by a user, I had to add the button to the top of the page.
// In chrome it might work without the need for a button, directly from a
// bookmarklet. See the following for more information.
// https://stackoverflow.com/questions/400212/how-do-i-copy-to-the-clipboard-in-javascript?page=1&tab=votes#tab-top
// To create a bookmarklet you might want to use the following:
// https://www.yourjs.com/bookmarklet/
@maxkerp
maxkerp / sieve-connect
Created January 28, 2021 15:05
A small wrapper around sieve-connect to make it git-like to use
#!/bin/bash
# This is a small wrapper around sieve-connect making it easier to use.
set -e
MAIL_SERVER=< mail server address here>
MAIL_ACCOUNT=< mail address here>
short_sieve(){
local cmd=$1
@maxkerp
maxkerp / orbitdb_replication_bug.html
Last active June 4, 2018 13:55
Gist to easily replicate the orbit-db replication bug #376
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Replication BUG</title>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/ipfs/0.29.1/index.js"></script> -->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/ipfs/0.29.2/index.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ipfs/0.29.3/index.js"></script>