Skip to content

Instantly share code, notes, and snippets.

@thurstontye
thurstontye / osx-for-hackers.sh
Created July 19, 2019 07:47 — forked from matthewmueller/osx-for-hackers.sh
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@thurstontye
thurstontye / group-object-items-to-tuples.js
Created December 10, 2020 12:42
filtered tuples from object
const agg = {
"top_theme_rank1_name": 'thing1',
"top_theme_rank1_uuid": 'id1',
"top_theme_rank2_name": 'thing2',
"top_theme_rank2_uuid": 'id2',
"top_theme_rank3_name": 'thing3',
"top_theme_rank3_uuid": 'id3',
"top_theme_rank4_name": 'thing4',
"top_theme_rank4_uuid": 'id4',
"top_theme_rank5_name": 'thing5',

Caches all the way down

https://ldnwebperf.org/events/caches-all-the-way-down/

Layers of caching in the browser

(kind of Chromium specific here and there)

1. MemoryCache

  • same rendering process, short-lived
  • strict matching, same resource type, etc, CSP
  • everything (even no-cache, except for no-store)