-
console1984 — Privacy-aware Rails console that records sessions and protects encrypted data. Blog: Privacy-aware Rails consoles
-
audits1984 — Auditing interface for console1984 sessions. Blog: [Privacy-aware Rails
Discover gists
https://gist.github.com/ljharb/58faf1cfcb4e6808f74aae4ef7944cff
While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.
JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it mu
| #!/usr/bin/env python | |
| # filepath: .\python_notebooks\util\html_display.py | |
| """ | |
| HTML display utilities for rendering Python objects as interactive HTML | |
| Inspired by dotnet interactive's HtmlFormatter | |
| """ | |
| import json | |
| from typing import Any, Dict, List, Union, Optional |
A structured checklist for isolating, diagnosing, and resolving issues in shared-infrastructure systems.
For developers with limited multi-tenant experience and for people that need to refresh their knowledge and expertise on the subject.
The command line, in short…
wget -k -K -E -r -l 10 -p -N -F --restrict-file-names=windows -nH http://website.com/
…and the options explained
- -k : convert links to relative
- -K : keep an original versions of files without the conversions made by wget
- -E : rename html files to .html (if they don’t already have an htm(l) extension)
- -r : recursive… of course we want to make a recursive copy
- -l 10 : the maximum level of recursion. if you have a really big website you may need to put a higher number, but 10 levels should be enough.
This is a copy of the [PGP "biometric" word list][], which actually comprises two lists, each with 256 entries each. (One contains only two-syllable words, and the other contains only three-syllable words.) The words were selected in 1995 to be as phonetically distinct from one another as feasible.
The Wikipedia entry describes the lists as being licensed under the [GNU Free Documentation License][], although I have no awareness of any publicly available primary sources stating this. The underlying source code for PGPfone, which was the motivation for the list, [is licensed MIT][].