Skip to content

Instantly share code, notes, and snippets.

@elsehow
elsehow / kava.md
Last active September 26, 2023 22:51
What is kava?
  • Kava is a drink made from the root of piper methysticum, a pepper plant native to the South Pacific.
  • It's a mild drug, the way coffee is---people drink it because it's fun.
  • Don't mix it with alcohol - immediate hangover.

What is it?

Kava is made by grinding the root into a powder and squeezing it in a bag with some lukewarm water. The result is a brown liquid, and it tastes earthy at best. You get it down in one gulp, if you can---that's the traditional way to drink it! In practice, you do this with all of your friends and family, and that's what makes it fun. The bad taste is part of the bonding experience.

What's its story?

digraph G {
rankdir = TB;
node [shape=rectangle, width=3, height=0.5, fontsize=14, fontcolor=white];
L5 [label="Layer 5: Social", fillcolor="#ff4d4d", style=filled];
L4 [label="Layer 4: Application", fillcolor="#b84dff", style=filled];
L3 [label="Layer 3: Transport", fillcolor="#4d94ff", style=filled];
L2 [label="Layer 2: Protocol", fillcolor="#ff66cc", style=filled];
L1 [label="Layer 1: Physical", fillcolor="#4dff88", style=filled];
L5 -> L4 [style=invis];

This proposal will distribute tokens for our August Contributor Drop (see table).

The remainder of this proposal describes my methodology for running this contributor drop and producing these token allocations.

Phase 1. Intake

First, I distributed an intake form among all contributors, tagging people with the @Contributor tag. The form collected monikers, Juno addresses, and a self-described contribution statement.

Phase 2. Rating

Once that intake survey closed (after 3 weeks), I distributed a lo-fi Coordinape clone. Like Coordinape, ours was a constant-sum survey, meaning that responses were numerical and had to sum to 100. I distributed this survey on Qualtrics, and gave members of the DF 7 days (including one weekend) to fill it out.

@elsehow
elsehow / llc.md
Last active September 7, 2022 17:46
How to make a California LLC

Pick a name. This doesn't matter, so have fun.

Get Registered Agent service for California. I use Northwest Registered Agent. They will give you an address to use - use this address on all public filings with the state.

Create an LLC on the California Secretary of State website. You want to create the Articles of Organization for a CA LLC. Use your registered agent's address. This address will be public forever. When you create your LLC online, at the Agent for Service of Process section, choose California Regsitered Corporate Agent, and search for Northwest Registered Agent's (#C3184722).

Once you get an email from the state that your LLC is set up, go down to a bank and get a bank account and a credit card for your new business. Any business expense (think: your internet bill, a meal you ate while working, etc...) is deductible from your income. Keep track of all your business expenses in a spreadsheet wit

Keybase proof

I hereby claim:

  • I am elsehow on github.
  • I am elsehow (https://keybase.io/elsehow) on keybase.
  • I have a public key whose fingerprint is 7E25 42E6 5081 2283 8AE7 F0D3 E577 2156 9AB6 8E0A

To claim this, I am signing this object:

@elsehow
elsehow / MPOS.py
Last active July 4, 2017 00:47
python API for MPOS (mining portal open source)
from functools import partial
import requests
class MPOS (object):
'''
API for MPOS (Mining Portal Open Source).
https://github.com/MPOS/php-mpos/wiki/API-Reference
'''

Keybase proof

I hereby claim:

  • I am elsehow on github.
  • I am elsehow (https://keybase.io/elsehow) on keybase.
  • I have a public key ASAbkU8uC6gOorxyW8gA2OiUIkziwxlxD08yIIUePW7xBgo

To claim this, I am signing this object:

@elsehow
elsehow / image-search.py
Last active December 15, 2017 08:48
Google image search in Python3
# setup a custom search http://www.google.com/cse/manage/all
# you can set up wildcards like *.com, *.org, *.net etc to cast a broad net for your custom search
# remmeber to flip the "images" switch if you want that service
from googleapiclient.discovery import build
def image_search (query):
service = build("customsearch", "v1",
developerKey="[YOUR API KEY - console.developers.google.com]")
res = service.cse().list(
@elsehow
elsehow / .htaccess
Created May 10, 2016 18:49
redirect all http traffic to https trafic, preserving subdomain
RewriteEngine On
RewriteCond %{HTTP_HOST} ^chat.cosmopol.is/$ [OR]
RewriteRule (.*) https://chat.cosmopol.is/$1 [L,R]
const Kefir = require('kefir')
// NO MODES
// EVERYTHING IS COMMANDS
// EVEN IF SOME COMMANDS ARE AUTO-POPULATE
function api (param) {
// here we can close over some mutable state
// if we need to