Skip to content

Instantly share code, notes, and snippets.

gzip vs streaming HTML

curl -v -H 'Accept-Encoding: gzip' --limit-rate 2K 'https://www.homeaway.com/d/40/austin' | gzip --decompress
@csabapalfi
csabapalfi / cert.js
Created July 30, 2018 20:05
Check TLS certificates with node.js
const https = require('https');
const [,,domain] = process.argv;
const options = {
host: domain,
port: 443,
method: 'GET',
rejectUnauthorized: true
};
@csabapalfi
csabapalfi / tls-perf.md
Last active July 19, 2018 23:22
TLS performance

TLS performance

Verify OCSP stapling

echo END | \
openssl s_client -servername www.homeaway.com -connect www.homeaway.com:443 -status 2> /dev/null | \
grep -A 17 'OCSP response:' | grep -B 17 'Next Update'
@csabapalfi
csabapalfi / extensions.txt
Last active July 10, 2018 22:01
VSCode extensions
DavidAnson.vscode-markdownlint
EditorConfig.EditorConfig
PeterJausovec.vscode-docker
CoenraadS.bracket-pair-colorizer
dbaeumer.vscode-eslint
eamodio.gitlens
formulahendry.auto-close-tag
HookyQR.beautify
Ikuyadeu.r
mauve.terraform
curl -X GET 'https://api.newrelic.com/v2/applications/<app-id>/metrics/data.json' \
-H 'X-Api-Key: <api-key>' -i \
-G -d 'names[]=EndUser/errors&values[]=error_percentage&from=2018-06-24T21:38:00+00:00&to=2018-06-25T22:08:00+00:00&summarize=false'
  1. Quantity four, ten, a few, several
  2. Value/Opinion delicious, charming, beautiful
  3. Size tall, tiny, huge
  4. Temperature hot, cold
  5. Age old, young, new, 14-year-old
  6. Shape square, round
  7. Color red, purple, green
  8. Origin Swedish, Victorian, Chinese
  9. Material glass, silver, wooden
@csabapalfi
csabapalfi / richhickey.md
Created April 18, 2018 13:19 — forked from prakhar1989/richhickey.md
richhickey.md

Rich Hickey on becoming a better developer

Rich Hickey • 3 years ago

Sorry, I have to disagree with the entire premise here.

A wide variety of experiences might lead to well-roundedness, but not to greatness, nor even goodness. By constantly switching from one thing to another you are always reaching above your comfort zone, yes, but doing so by resetting your skill and knowledge level to zero.

Mastery comes from a combination of at least several of the following: