Skip to content

Instantly share code, notes, and snippets.

View extratone's full-sized avatar
🗿
sudo exit

David Blue extratone

🗿
sudo exit
View GitHub Profile
if ((/^localhost/).test(document.location.host)) {
var linkChecker = (function() {
"use strict";
let links, errors = [], completed = [], errorCounter = 0;
function addStyle(styleString) {
const style = document.createElement("style");
style.textContent = styleString;
document.head.append(style);
}
@extratone
extratone / LegacyDocsets.md
Created May 2, 2021 08:15 — forked from fzwo/LegacyDocsets.md
Download and view old Apple developer documentation

How to download and view legacy documentation from Apple (no need to sign in to your dev account)

  1. Download the docset index XML.
  2. Find the docset you want (there are some with URL https://apple.com/none.dmg; ignore them - you will find them again further down the file with a working URL).
  3. Download the dmg. It's probably around a gigabyte or so.
  4. "Install" the .pkg file somewhere on your disk. If you don't trust the installer, do it manually:
    1. Find the largest file, named Payload, and extract it using The Unarchiver.
    2. This creates a new, even larger file, probably named Payload-1.
    3. Extract Payload-1 using The Unarchiver.
  5. After many minutes of extracting, we have our .docset file.
@extratone
extratone / follow.md
Last active January 28, 2023 00:22
Why I Didn't Follow You Back

Twitter Follow Limits

There is a limit to how many accounts you can follow on Twitter. It was finally documented in this official help document, dated March 2019, but for more than ten years, it was implemented without any explanation from the service, and was known only to those of us who'd actually encountered it.

Here's what happens when I try to follow a new account from @NeoYokel:

Follow Limit Notice

I was only able to verify that this has been the case since October 20th, 2017 - naturally, I didn't bother to note the actual date I first received that notice.

@extratone
extratone / discoursemd.md
Created May 7, 2021 17:01
Discourse Post to Raw Markdown

Discourse Post to Raw Markdown

Source: Export topic as markdown (enabled for all participants) - feature - Discourse Meta

The native URL to the thread: https://meta.discourse.org/t/export-topic-as-markdown-enabled-for-all-participants/152185

By eliminating the topic title from a given post’s URL (t/export-topic-as-markdown-enabled-for-all-participants) and prepending raw/, we’re left only with the post ID (152185).

The whole URL will take one to the plain text of the post with Markdown formatting.

@extratone
extratone / pandoc_multi_input.md
Created May 8, 2021 21:41 — forked from xuanlongma/pandoc_multi_input.md
Combine multiple input files when using Pandoc

If multiple input files are given, pandoc will concatenate them all (with blank lines between them) before parsing. -- from Pandoc website

Pandoc command: pandoc -s input1.md input2.md input3.md -o output.html

@extratone
extratone / TwitterArchiveParser.swift
Created May 15, 2021 02:45 — forked from rolandleth/TwitterArchiveParser.swift
Extracting and converting your Twitter archive into simpler objects
// Blog post: https://rolandleth.com/extracting-and-parsing-tweets-from-your-twitter-archive
import Foundation
struct Tweet: Codable {
let text: String
let timestamp: String
}
@extratone
extratone / typoraconf.json
Last active September 9, 2022 18:45
My conf.user.json file containing my personal customizations to Typora.
/** For advanced users. */
{
"defaultFontFamily": {
"standard": null, //String - Defaults to "Times New Roman".
"serif": null, // String - Defaults to "Times New Roman".
"sansSerif": null, // String - Defaults to "Arial".
"monospace": null // String - Defaults to "Courier New".
},
"autoHideMenuBar": false, //Boolean - Auto hide the menu bar unless the `Alt` key is pressed. Default is false.
// Array - Search Service user can access from context menu after a range of text is selected. Each item is formatted as [caption, url]
@extratone
extratone / txtfuck.md
Created May 15, 2021 15:23
Text Fucking Tools
@extratone
extratone / siri.md
Last active September 2, 2024 12:32
Siri Voice Commands List

Shortlink: http://bit.ly/siricmds

Table of Contents

  • [Wallet Siri Commands][page_wallet_siri_commands]
  • [Web and YouTube Search Siri Commands][page_web_and_youtube_search_siri_commands]
  • [More Phone and Notifications Siri Commands][page_more_phone_and_notifications_siri_commands]
  • [Contacts Siri Commands][page_contacts_siri_commands]
  • [Affective (Fun) Siri Commands][page_affective__fun__siri_commands]
  • [Notes Siri Commands][page_notes_siri_commands]
@extratone
extratone / flashjobs.md
Created May 25, 2021 22:18
“Thoughts on Flash” by Steve Jobs - April, 2010.

Thoughts on Flash | Apple Inc.

Apple has a long relationship with Adobe. In fact, we met Adobe’s founders when they were in their proverbial garage. Apple was their first big customer, adopting their Postscript language for our new Laserwriter printer. Apple invested in Adobe and owned around 20% of the company for many years. The two companies worked closely together to pioneer desktop publishing and there were many good times. Since that golden era, the companies have grown apart. Apple went through its near death experience, and Adobe was drawn to the corporate market with their Acrobat products. Today the two companies still work together to serve their joint creative customers – Mac users buy around half of Adobe’s Creative Suite products – but beyond that there are few joint interests.

I wanted to jot down some of our thoughts on Adobe’s Flash products so that customers and critics may better understand why we do not allow Flash on iPhones, iPods and iPads. Adobe has characterized our decision as