Skip to content

Instantly share code, notes, and snippets.

View lucasgonze's full-sized avatar

Lucas Gonze lucasgonze

View GitHub Profile
@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: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.
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;

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.

@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

@lucasgonze
lucasgonze / keybase.md
Created April 11, 2014 22:07
proof gist for keybase

Keybase proof

I hereby claim:

  • I am lucasgonze on github.
  • I am lucasgonze (https://keybase.io/lucasgonze) on keybase.
  • I have a public key whose fingerprint is 20C5 5241 F079 0321 E543 115E 074B 4948 A743 7F4F

To claim this, I am signing this object:

$ 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 / gist:7252837
Created October 31, 2013 16:37
Kevin Prichard's account of YouTube DJing at a party.

I've got an old friend living in Seoul now, she says karaoke clubs are still very popular there, that Friday night after work binge drinking usually happens to karaoke.

The YT thing: I used to go to a first Fridays party in NYC with some 2600ers at a geek couple's west vill apt, and YT was the thing. Two monitors, one mirrored to the flat panel TV, with one YT vid playing on-deck, the next getting cued on the second monitor; swap windows when the track ends.

Sometimes it was music, live in concert tracks too, but more often it became viral funny stuff like cat videos, Russian dash cam footage of car wrecks, plane crashes, Ron Paul speeches (popular with that crowd but what a buzz kill) -whatever was on ppl's minds at the time. Audience participation in vid selection was a thing.

@lucasgonze
lucasgonze / dmca.txt
Last active December 14, 2015 00:29 — forked from boogah/changelog.md
Template for a DMCA takedown request. Forked from https://gist.github.com/boogah/4439159 See http://jasoncosper.com/dmca-takedown for the back story. See http://www.plagiarismtoday.com/stock-letters/ for another template.
Hello,
I am the copyright holder of content that is currently being hosted without permission on your servers. The infringing content can be found at:
http://infringingurl.com/post-location-1/
http://infringingurl.com/post-location-2/
&c.
This content is a direct copy of my original work at:
Kicking the tires on this here gist.io
--------------------------------------
Checking out http://gist.io.