Skip to content

Instantly share code, notes, and snippets.

As we were preparing Playwright 1.1.0, I learned quite a lot about Web Proxies. Below is the summary of my findings.

TIL: WEB Proxies

Reverse Web Proxy vs Forwarding Web Proxy

There are two groups of proxies that drive internet:

@csabapalfi
csabapalfi / aws-well-architected.md
Last active November 16, 2021 11:02
AWS Well-architected Framework

5 pillars

Security

  • protect information, systems, and assets while delivering business value
  • utilising risk assessments and mitigation strategies

Reliability

  • ability to recover from infrastructure or service failures
@csabapalfi
csabapalfi / gif2mp4.sh
Last active December 5, 2020 18:59
Convert gif to mp4
ffmpeg -f gif -i infile.gif outfile.mp4
#!/usr/bin/env bash
xsv select message "$1" | xsv fmt --quote ' ' | sed -e '1d' | jq -c -r 'fromjson'
Estimated metric Weight Fast >90 Slow <50
First Contentful Paint (FCP) 3x <2.4s >4.0s
First Meaningful Paint (FMP) 1x <2.4s >4.0s
Speed Index (SI) 4x <3.4s >5.8s
First CPU Idle (FCI) 2x <3.6s >6.5s
Time to Interactive (TTI) 5x <3.8s >7.3s
@csabapalfi
csabapalfi / caches-all-the-way-down.md
Last active May 30, 2019 07:41
Caches All the Way Down

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

  • rendering process specific, short-lived
  • strict matching, same resource type, etc, CSP
  • everything (even no-cache, except for no-store)
@csabapalfi
csabapalfi / requestIdleCallback.js
Created March 13, 2019 23:08 — forked from paullewis/requestIdleCallback.js
Shims rIC in case a browser doesn't support it.
/*!
* Copyright 2015 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@csabapalfi
csabapalfi / awesome-histograms.md
Last active December 31, 2018 04:32
awesome histograms

via @ilana_horn

Are you struggling to shave words off of your writing?

I am weirdly good at this, so let me share some of my tricks. #AcademicTwitter #phdlife #gradstudent

1. Make things plural to omit articles. They can add up.

Ex: "The teacher needs to know..." --> "Teachers need to know...."

(function (history, trackingId, options) {
const getParameterByName = (paramName) => {
var searchString = window.location.search.substring(1),
i, val, params = searchString.split("&");
for (i=0;i<params.length;i++) {
val = params[i].split("=");
if (val[0] == paramName) {
return val[1] || undefined;
}
}