Skip to content

Instantly share code, notes, and snippets.

View lucasgonze's full-sized avatar

Lucas Gonze lucasgonze

View GitHub Profile
$ npm install crater
npm http GET https://registry.npmjs.org/crater
npm http GET https://registry.npmjs.org/crater
npm http GET https://registry.npmjs.org/crater
npm ERR! Error: SSL Error: CERT_UNTRUSTED
npm ERR! at ClientRequest.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:409:26)
npm ERR! at ClientRequest.g (events.js:185:14)
npm ERR! at ClientRequest.EventEmitter.emit (events.js:88:17)
npm ERR! at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1445:7)
npm ERR! at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
@lucasgonze
lucasgonze / humanians.md
Last active August 29, 2015 13:59
The Humanian Explosion

It's 250,000 years from now and people are moving back to the sea.

The land is crowded with a human population of two trillion. Humans have reached the Malthusian limits of what the land can support. Enough real estate for a bed is too precious for many, and the homeless are in the billions.

Living outdoors from one generation to the next, breeding among themselves on the streets, the homeless have begun to diverge physically. They are becoming a new species.

And nowhere more clearly than among the homeless living on the shore. To compete with commercial fishing and one another, a fringe spends its time literally in the water, as close as possible to edible fish and plants.

Competing for food means getting there first, and getting there first means swimming right up to your catch. Webbed toes help, especially for those too poor to buy fins. The ability to hold your breath longer follows quickly. Larger eyes to see in dark water. New digestive enzymes to process seaweed and kelp. Faster reflexes to catc

A couple observations on fragmentions (https://indiewebcamp.com/fragmention):

Google Drive has a comparable feature which uses this syntax to bookmark searches: https://drive.google.com/a/gonze.com/#search/%lorem%20ipsum%22

Another piece of prior art is the .well-known: http://www.mnot.net/blog/2010/04/07/well-known http://www.rfc-editor.org/rfc/rfc5785.txt

I think that what the RFC 5785 example shows it that Kevin's double-hash syntax is one of a thousand flowers blooming. It's the same process that played out eventually as .well-known - a path to standardized fragment IDs.

<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;
@lucasgonze
lucasgonze / gist:22f10779e89e21332c5e
Last active August 29, 2015 14:02
Proof of concept anti-surveillance tunnel

Goal: Develop ways to construct tunnels through surveilled areas.

A surveilled area has cameras, either recording or or transmitting. A tunnel is a path with no cameras and an unsurveilled entrance and exit.

Proof of Concept

Identify a surveilled area bordered by unsurveilled areas. You could start with really small chunks of real estate, like:

  1. Surveilled area to tunnel through is a single ATM with a security camera on it, with camera-free areas on either side.
@lucasgonze
lucasgonze / gist:9880502a396bcd113108
Created October 1, 2014 17:02
Tunnel incantation
When I'm on an open wifi network, I use an SSH tunnel to encrypt my traffic. Here's my script:
#!/bin/bash
ssh -D 9999 user@my-ssh-host.com "
echo '
****
Establishing ssh tunnel...
@lucasgonze
lucasgonze / gist:23bb922b5dfa2be2941a
Created May 16, 2015 03:09
IndieWeb Post Kinds bug
In http://some.gonze.com/wp-admin/post.php
Plugin IndieWeb Post Kinds
Version 1.4.0
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'transition' not found or invalid function name in /home/lgonze/some.gonze.com/wp-includes/plugin.php on line 496
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'transition' not found or invalid function name in /home/lgonze/some.gonze.com/wp-includes/plugin.php on line 496
@lucasgonze
lucasgonze / cultofgrowth.md
Created July 25, 2015 18:41
The cult of growth

http://idlewords.com/talks/web_design_first_100_years.htm

The cult of growth denies the idea that you can build anything useful or helpful unless you're prepared to bring it to so-called "Internet scale". There's no point in opening a lemonade stand unless you're prepared to take on PepsiCo.

I always thought that things should go the other way. Once you remove the barriers of distance, there's room for all sorts of crazy niche products to find a little market online. People can eke out a living that would not be possible in the physical world. Venture capital has its place, as a useful way to fund long-shot projects, but not everything fits in that mold.

The cult of growth has led us to a sterile, centralized web.

@lucasgonze
lucasgonze / jasonhirschhorn.md
Last active August 29, 2015 14:26
Advantage: middle

Artists now spend significantly more time touring than they did in the pre-Napster days (estimates here vary) and command close to 35% more per ticket on an inflation-adjusted basis. As a result, the US concert industry has nearly tripled since 1999 (when recorded music sales peaked).

Yet, what’s typically overlooked by this narrative is that the vast majority of this growth – 83% to be exact – has gone to non-Top 100 touring artists. In 2000, the Top 100 tours (which included ‘NSYNC, Metallica and Snoop Dogg & Dr. Dre) collected nearly 90% of annual concert revenues. Today, that share has fallen to only 44%. Furthermore, the Top 100 tours have faced stagnant revenues for close to a decade, with both ticket prices and sales largely flat:

So in all, the pains and changes over the past 15 years have been unevenly distributed.

The most popular artists have seen their primary income stream, recorded music sales, collapse by more than 70% in inflation-adjusted terms since 2000 (~$14B), while their conc

Playdar is special because it is scalable, cheap, and unbundled.
---
It is *scalable* because it is capable of supporting the entire internet.
No single music service can say the same, no matter how big. Every service has its own strengths and weaknesses, with the strengths of one counterbalancing the weaknesses of another.
Spotify is only in Europe, Rhapsody is only in the US. YouTube is the only place for a large pool of amateur content. File sharing networks are the only source for orphaned works that are out of print but still in copyright. Web search is the only way to locate recordings hosted solely by the creators on their own servers. Chinese pop is readily available in businesses that cater to Chinese customers, spanish-language pop is readily available from Latin American companies, and so on for every cultural group on earth, but no business serves all of these customers.