Skip to content

Instantly share code, notes, and snippets.

@shankar-bavan
shankar-bavan / DKIM-SPF-DMARC-check-via-command-line.md
Created December 25, 2022 14:26
DKIM, SPF, and DMARC check via command line

SPF record check

  • Open the command line (Start > Run > cmd).
  • Enter nslookup -type=txt followed by a space and a domain or hostname, for example, nslookup -type=txt google.com.
  • If an SPF record exists, the result will be something like this: v=spf1 include:_spf.google.com ~all.
  • If there are no results or no v=spf1, then there is a problem getting the record for the domain, or it doesn’t exist.

DKIM record check

@creachadair
creachadair / chrome-encrypted-cookies.md
Last active November 13, 2025 18:24
Encryption format for Chrome browser cookies

Google Chrome Encrypted Cookies

Google Chrome stores browser cookies in an SQLite database. The database has two tables, meta containing format and version metadata, and cookies with the contents of the cookies. The cookies table uses this schema:

-- To reproduce: sqlite path/to/Cookies .schema
CREATE TABLE cookies (
   creation_utc     INTEGER  NOT NULL,  -- microseconds since epoch
   host_key         TEXT     NOT NULL,  -- domain
   name             TEXT     NOT NULL,
@basham
basham / css-units-best-practices.md
Last active October 26, 2025 18:37
CSS Units Best Practices

CSS units

Recommendations of unit types per media type:

Media Recommended Occasional use Infrequent use Not recommended
Screen em, rem, % px ch, ex, vw, vh, vmin, vmax cm, mm, in, pt, pc
Print em, rem, % cm, mm, in, pt, pc ch, ex px, vw, vh, vmin, vmax

Relative units

Relative units