Skip to content

Instantly share code, notes, and snippets.

View seldo's full-sized avatar

Laurie Voss seldo

View GitHub Profile
@seldo
seldo / 1 - instructions.md
Last active November 20, 2022 20:03
How to find your top tweets in your twitter archive

Get your top tweets

  1. Get your archive from twitter
  2. Find tweets.js; if you have a lot of tweets you may also have a tweets-part1, part2 etc.
  3. Modify the first line of each of those files to:
let data = [

and add this to the last line

@seldo
seldo / can-spam.md
Last active May 2, 2023 19:52
CAN-SPAM

Hi! I notice your email doesn't contain instructions on how to unsubscribe, which is illegal:

https://www.ftc.gov/tips-advice/business-center/guidance/can-spam-act-compliance-guide-business

Despite its name, the CAN-SPAM Act doesn’t apply just to bulk email. It covers all commercial messages, which the law defines as “any electronic mail message the primary purpose of which is the commercial advertisement or promotion of a commercial product or service,” including email that promotes content on commercial websites. The law makes no exception for business-to-business email. That means all email – for example, a message to former customers announcing a new product line – must comply with the law.

Each separate email in violation of the CAN-SPAM Act is subject to penalties of up to $46,517, so non-compliance can be costly. But following the law isn’t complicated. Here’s a rundown of CAN-SPAM’s main requirements:

  1. Don’t use false or misleading header information.
  2. Don’t use deceptive subject lines.
@seldo
seldo / gist:845a5f54fe83a35a39ccb276985c22c2
Last active January 6, 2020 00:33
Corrected twitter card for Gatsby
return (
<Helmet
htmlAttributes={{
lang,
}}
title={title}
titleTemplate={`%s`}
meta={[
{
name: `description`,
const fs = require('fs');
const readline = require('readline');
async function processLineByLine() {
const fileStream = fs.createReadStream('input.txt');
const rl = readline.createInterface({
input: fileStream,
crlfDelay: Infinity
});
@seldo
seldo / quasar domestic android robot.md
Last active March 26, 2018 20:58
A 1970s-era robot hoax provoked one of the first debates about free speech on the internet.

Then, in the spring of 1977, Quasar rolled in the door. Its arrival marked the beginning of the first debate over free speech in cyberspace. The controversy centered on an unusual device made by Quasar Industries and blew up into an argument over using the taxpayer- fundedARPANETto speak, in openly critical terms, about a private company.

The brainchild of Quasar Industries, the device stood five feet four inches and weighed two hundred forty pounds. It was called the Domestic Android robot, a programmable helper that could perform a dozen basic household tasks such as mopping the floor, mowing the lawn, washing dishes, and serving cocktails. It came equipped with a personality and speech, so that it could “interact in any human situation.” It could “teach the kids French” and “continue teaching them, while they sleep.” At the advertised price of $4,000, the thing seemed a steal.

Phil Karlton of Carnegie-Mellon was the first to alert the Msg-Group, on May 26, 1977. His site on theARPANETwas heavily involved

LGBTQ in tech conference:

For people who run startups:

  • How to create an environment where employees feel safe to come out
  • Getting comprehensive health coverage for trans employees
  • Handling partner benefits for poly employees
  • Best practices for parental leave for queer couples
  • Resources for educating straight allies without requiring queer employees educate their co workers
  • Hiring: writing inclusive job descriptions and strategies for getting them in front of queer candidates
  • Queer PR: supporting queer employees when social media gets hostile
orlando:seldo.com-preact seldo$ ps aux | grep node
seldo 75480 0.1 1.1 3915248 376604 ?? S 1:25PM 7:58.96 /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper --type=renderer --no-sandbox --primordial-pipe-token=3B467EA3BC657997AAAAC6565F05A43E --lang=en-US --node-integration=true --background-color=#fff --hidden-page --enable-pinch --num-raster-threads=2 --enable-zero-copy --disable-partial-raster --enable-gpu-memory-buffer-compositor-resources --content-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --video-image-texture-target=3553,3553,3553,3553,3553,34037,3553,3553,3553,3553,3553,34037,3553,34037,34037 --mojo-channel-token=0AB7331ABCE11065E0FC198A3456FEE3 --mojo-application-channel-token=A909F4BE2EF1D8554BEB14FADCB40869 --channel=75476.1.328899740
seldo 81625 0.0 0.1 3083996 37972 s001 S+ 6:02PM 0:00.29 node /Users/seldo/projects/seldo.com-preact/node_modules/.bin/nodemon --

Pigeon peas

Ingredients:

  • 2 cans peas
  • 1 can coconut milk
  • 1 can cubed pumpkin (fresh is better)
  • 1 onion
  • 1 pack bacon
  • ketchup (or other sugar)
  • pepper sauce (or other pepper)
  • Worcester sauce (for browning)
JQMIGRATE: Migrate is installed with logging active, version 1.4.1
JQMIGRATE: jQuery.browser is deprecated
Failed to load resource: the server responded with a status of 404 ()
https://twitter.com/i/cards/tfw/v1/795868728525201408?cardname=summary&autoplay_disabled=true&forward=true&earned=true&lang=en&card_height=130&scribe_context=%7B%22client%22%3A%22web%22%2C%22page%22%3A%22connect%22%2C%22section%22%3A%22connect%22%2C%22component%22%3A%22tweet%22%7D#xdm_e=https%3A%2F%2Ftwitter.com&xdm_c=default385&xdm_p=1
Failed to load resource: the server responded with a status of 404 ()
https://twitter.com/i/cards/tfw/v1/795868728525201408?cardname=summary&autoplay_disabled=true&forward=true&earned=true&lang=en&card_height=130&scribe_context=%7B%22client%22%3A%22web%22%2C%22page%22%3A%22connect%22%2C%22section%22%3A%22connect%22%2C%22component%22%3A%22tweet%22%7D#xdm_e=https%3A%2F%2Ftwitter.com&xdm_c=default385&xdm_p=1
Failed to load resource: the server responded with a status of 404 ()
https://twitter.com/i/cards/t
Newt Gingrich
Let’s go to Mars!
Let’s go to the zoo!
Ted Cruz
Derp
Imagine
Each day I learn what a scoundrel I am.
Listen, we elected Warren G. Harding.
It’s like the right wing thought, What’s the exact opposite of a black president? How about a Canadian Latino who’ll never be president?!