Skip to content

Instantly share code, notes, and snippets.

View lucasgonze's full-sized avatar

Lucas Gonze lucasgonze

View GitHub Profile

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:c5d935823ef17f5ffa3f
Last active December 21, 2023 02:17
DIY URL Shortener

Do This

  1. Create dedicated domain on an Apache server that supports .htaccess
  2. ssh to root directory there
  3. Use random.org to create 200 random strings. (Five characters long, with digits, uppercase letters and lowercase letters).
  4. Save to short-strings.txt
  5. echo "RewriteRules On" > .htaccess
  6. cat short-strings.txt | awk '{print "RewriteRule ^"$1"$ TO [R,L]"}' >> .htaccess
  7. rm short-strings.txt
  8. When you want to shorten a URL, edit .htaccess. Replace any TO with the long URL.
@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:a57f8f5262a5a82c3797
Last active August 25, 2020 17:27
Q: how do you make money? A: sell stuff

Internet of Things products rely on hardware sensors. These are little devices that monitor things like room temperature, heart rate, compass reading, etc. Sensors need to be cheap and plentiful. Low prices mean ultra-low profit margins.

So how do you make money in the sensor business?

  1. Only allow access from a front end you control, and charge for the front end.
  2. Don't bother trying, let suckers eat the tiny margin.
  3. Give away the sensor and own the data center and/or UI.

Those are the consensus as far as I can tell, anyway. But I don't know if I believe this is all you can do. So here are my contrarian answers:

@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

@lucasgonze
lucasgonze / metricsmodelmarkdowntemplate.md
Last active November 3, 2021 22:28
Metrics Model Markdown Template

Name of Metrics Model

Why You Should Care

Metrics in the Metrics Model