Skip to content

Instantly share code, notes, and snippets.

View autonome's full-sized avatar

Dietrich Ayala autonome

View GitHub Profile
<dietrich> asuth: do you know anything about whether indexedb should be available for pages that are non-http/s protocols? looks like it worked until 63.
<dietrich> (or who would know?)
<mconley> dietrich: maybe bevis?
<asuth> dietrich: Are you actually creating origins under new protocols? Many things won't like that.
dietrich: QuotaManager won't create directories for origins it doesn't understand. Here's the "okay" list: https://searchfox.org/mozilla-central/source/dom/quota/ActorsParent.cpp#8462
<asuth> dietrich: In particular, are the protocols implemented via https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/protocol_handlers? Because if so I'd expect the semantics to conform to those of https://html.spec.whatwg.org/multipage/system-state.html#custom-handlers
dietrich: And in particular the clause ```User agents must throw a "SecurityError" DOMException if the resulting URL record has an origin that differs from the origin specified by the relevant settings objec
function build(callback) {
Metalsmith(__dirname) // __dirname defined by node.js:
// name of current working directory
.metadata({ // add any variable you want
// use them in layout-files
sitename: "foo",
siteurl: "https://foo.com/",
description: "Website!",
generatorname: "Metalsmith",
generatorurl: "https://metalsmith.io/"
{
"coliseum": {
"name": "Veterans Memorial Coliseum",
"location": {
"latitude": "45.532141",
"longitude": "-122.6693299"
},
"link": "https://goo.gl/maps/sPJe9UY5Nqs"
},
"mainstage": {
@autonome
autonome / web-tech-subreddits.csv
Last active March 27, 2018 17:56
Subreddits related to web development - name, subscribers, age in years
name subscribers ageinyears
/r/programming 1003937 12
/r/technology 6005355 10
/r/learnprogramming 517081 8
/r/javascript 227797 10
/r/webdev 208237 9
/r/node 54220 8
/r/reactjs 47536 4
/r/learnjavascript 40905 5
/r/frontend 32008 6
@autonome
autonome / Privacy-by-Design.md
Created February 8, 2018 22:42 — forked from anseljh/Privacy-by-Design.md
Enhancing Alert App User Privacy by Design

SMS and Privacy

There are a few problems with delivering alerts via SMS, but they mostly boil down to this: SMS is not very private.

For vulnerable audiences, it’s preferable to not collect any subscriber information at all. This isn’t possible with SMS, because you have to know the recipient’s phone number to deliver a message. Unless you’re talking about burners—which most people won’t have—that phone number is tied to a real identity. This is a vulnerability in at least these scenarios:

  • If the alerting app itself gets targeted (whether by LE or other malicious actors), user-identifying information could be leaked.
  • Phone companies cooperate with LE, through legal process (subpoenas) or otherwise, to find out which phone subscribers are receiving SMS alerts.
  • LE , IC, or well-resourced hackers snoop on the SMS network.
@autonome
autonome / userChrome.css
Created January 18, 2018 19:31
@dietrich's userChrome.css file for Firefox
/*
* Do not remove the @namespace line -- it's required for correct functioning
*/
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
/*
Disable tab throbber to stop battery death.
https://bugzilla.mozilla.org/show_bug.cgi?id=1422090#c67
*/

Biryani

Ingredients

  • salt
  • chili powder (mirch)
  • turmeric
  • raw cashews
  • tomato
  • onion
@autonome
autonome / Taipei-speaker-training-notes.md
Last active November 9, 2018 08:11
Taipei Speaker Training Notes

Text

  • Look for text you can remove. If text is on your slide, people will be spending time reading it instead of listening to you, especially if the text is not in their native language. The text should almost entirely come from you.

  • Often, text in your slides is text you're already going to say anyways. Remove any text you are going to say anyway, unless it's an important title or section change.

  • When using acronyms, make sure to explain them on first use.

  • Wall of text: Often I've seen a slide that is a beautiful or useful image, followed by a slide that is a wall of text on the same topic. Move all text into speaker notes, and have just one slide with the image.

@autonome
autonome / system-fonts.css
Created August 17, 2017 09:46
System Fonts CSS
body {
font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
}
[
{
"namespace": "showonlythesetabs",
"description": "WebExtension API to show only some tabs on the tab strip.",
"permissions": ["experiments.showonlythesetabs"],
"types": [
{
"id": "Tab",
"type": "object",
"properties": {