Skip to content

Instantly share code, notes, and snippets.

View ELBeavers's full-sized avatar
🤔
I hope I'm learning something new right now!

Eric Beavers ELBeavers

🤔
I hope I'm learning something new right now!
View GitHub Profile
@gruber
gruber / Split Tabs to New Window.scpt
Last active April 16, 2024 20:52
An AppleScript for Safari to move all tabs in the frontmost window, from the current tab to the rightmost (last) tab, to a new window.
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
(*
Original script: John Gruber (https://daringfireball.net/linked/2023/12/05/an-applescript-for-safari-split-tabs-to-new-window)
Much more elegant version: Leon Cowle (https://github.com/leoncowle)
Even more elegant version: https://stackoverflow.com/questions/54066100/applescript-to-split-safari-tabs-into-new-window/54089865#54089865
Worth a warning: "moving" tabs with this script doesn't actually move them like
drag-and-drop does. The tabs "moved" by this script will reload in the new window,
@ttscoff
ttscoff / toot.rb
Last active April 28, 2023 04:58
Scans RSS feed for latest post and creates Mastodon toot
#!/usr/bin/env ruby -W1
# frozen_string_literal: true
# This script scans an RSS feed for the latest post, and if
# it hasn't already been posted to Mastodon, creates a new
# toot with a link to it.
require 'json'
require 'optparse'
require 'rss'
@merlinmann
merlinmann / sous-vide-tests.md
Last active March 17, 2023 06:16
sous vide cooking times

Sous Vide Cooking Times

Good? FOOD TIME TEMP COMMENT
CANON! pork chops, MED 1:30 143°
CANON! prime rib roast, MR 6:00 129.5 Works every time!
CANON! pork chops SUPER thick 1:45 142° solid MR+
YES ribeye, frozen, R 1:30 126° Awesome at low temp
YES thick pork chops, MR 1:30 142° SO good
XXX filet mignon, MR 1:30 130° XX

All the rage was the Scarlet Johansson-branded protective helmet. It's a colorful helmet, it is a planter with 11 specific draining holes, and it's an important crucible for ideas.

We met at a media event held at a junior high. Scarlet was polite, but perfunctory.

Then there was a very small hotel room with glass walls and doors. Stocked with Herbal Bourbons — ice machine didn't work. Scarlet said "No way am I drinking that shit." She was serious and smart. Might be Las Vegas.

@marcoarment
marcoarment / S3.php
Last active June 25, 2023 19:41
A simple PHP class to perform basic operations against Amazon S3 and compatible services.
<?php
/*
A simple PHP class to perform basic operations against Amazon S3 and compatible
services. Requires modern PHP (7+, probably) with curl, dom, and iconv modules.
Copyright 2022 Marco Arment. Released under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@merlinmann
merlinmann / usage I dislike.md
Last active February 28, 2024 21:24
An Epicenter of Wordsmithing…for the Enterprise.

Usage I Dislike


An Epicenter of Wordsmithing…for the Enterprise.


Words: Ugly, Dumb, or Overpriced

@merlinmann
merlinmann / Better.md
Last active February 8, 2024 19:58
Original version of Merlin Mann's essay, "Better."

Better

Politics, celebrity gossip, business headlines, tech punditry, odd news, and user-generated content.

These are the chew toys that have made me sad and tired and cynical.

Each, in its own way, contributes to the imperative that we constantly expand our portfolio of shallow but strongly-held opinions about nearly everything. Then we're supposed to post something about it. Somewhere.

From businesses we've never heard of, to countries we've never visited, to infants who've had the random misfortune to be born into a family that's on TV -- it's all grist for obvious jokes and shortsighted commentary that, for at least a few minutes, helps both the maker and the consumer feel a little less bored, a little less vulnerable, and a little less disconnected. For a minute, anyway, it makes us feel more alive. Does me, anyway.

@merlinmann
merlinmann / Harry-Potter-Years.md
Last active March 2, 2022 14:48
A fast trick to knowing Harry Potter's age, time, and book/film order.

The Harry Potter Trick

Here's a fast trick to knowing ages, time, and order. JK makes it super-simple for us:

Harry's age, the school year, the chronological year, the book number, and the movie number each end with the digit "1," then just increment up.

Book & Movie Number Chron. Year HP Age Book Movie Year Pp.[^1]
1 1991 11 Stone 2001 233
2 1992 12 Chamber 2002 251
@alexcoxfm
alexcoxfm / mind doodles.md
Last active December 16, 2021 08:31
Here are unfinished ideas that fall out of my brain.

Mind Doodles

  • Going viral is now just another inconvenience in life, like when your apartment floods or your power goes out. You may have "caused" it by posting/not sealing your door or blowing a fuse, but it's mostly out of your control.

  • As the moral panic around how Zoomers work/communicate continues, we've lost an important thread: their digital lives are largely happening behind closed digital doors. Companies may still own all of their data, but it's not necessarily public to everyone on the platform. This has largely shaped how Snapchat has evolved: users are much more interested in one on one communication and filters instead of a feed that they have no agency over.

  • Is a wiki that different from a metaverse? What about co-op text based games? What if you have your own world? I think of Obsidian as my own little internet grove.

  • iCloud is already Apple's social network. They might not be able to cultivate social media, but the blue bubble holding text still subtly indicates you're in th

@merlinmann
merlinmann / quotes.md
Last active January 27, 2024 16:40
Quotes to get right. #runx

Quotations to Get Right