Here's a PSA of sorts: 1. Try not to have `rewrite` rules outside of a location block in Nginx. 2. Prefer named routes for jumps or internal redirects in configs like `error_page` instead of normal URLs/paths. These cause multiple rounds of regex matches that tank system performance even (and especially) in the simplest cases.
I wanted to test out and understand how multiple CSPs on a single page work, and this post is about that. Not only can you use multiple CSPs, but it can be used to kind of pseudo-monitor everything that happens on the page.
When you search for a pattern in Vim, it’s stored to the / register. This then can be used to store the query in some variable for some Vim command, or perhaps paste the pattern as text. For example, the following invocation in normal mode:
Safari doesn't allow loading local user-installed fonts, so you can't add a custom stylesheet with that font. Easy way to circumvent this is to use a webfont.
Before I grokked the `Unmarshaler` interface, it was hard to know how to parse a complex JSON string into a type in one-shot, with or without preprocessing. I go through an example to demonstrate one technique.