Skip to content

Instantly share code, notes, and snippets.

View extratone's full-sized avatar
🗿
iOS Keyboard Shortcuts and E D I T O R I A L G I T , BITCH!

David Blue extratone

🗿
iOS Keyboard Shortcuts and E D I T O R I A L G I T , BITCH!
View GitHub Profile
@extratone
extratone / a-wotd-custom-word-list.md
Created September 20, 2024 09:17 — forked from jsomers/a-wotd-custom-word-list.md
How to use a custom word list with OS X's "Word of the Day" screensaver

OS X's "Word of the Day" screensaver is a great way to passively learn words:

But I've always thought that its word list kind of stunk—it was full of obscure words that I could never really see myself using. I'd prefer something like Norman Schur's 1000 Most Important Words. What if you could plug your own word list into the screensaver?

On a rather obscure comment thread, someone explained where you might find the word list that Apple uses to power the screensaver. It is at /System/Library/Graphics/Quartz\ Composer\ Plug-Ins/WOTD.plugin/Contents/Resources/NOAD_wotd_list.txt. The file looks like this:

m_en_us1282510	quinsy
@extratone
extratone / script.sh
Created September 15, 2024 18:17 — forked from vielhuber/script.sh
ffmpeg: Video convert m2ts to mp4, mp4 to webm, mp4 to ogv #tools
MP4 TO MP4 (MEDIUM)
ffmpeg -i input.mp4 -b 1000000 output.mp4
M2TS TO MP4
ffmpeg -i input.m2ts -vcodec libx264 -crf 20 -acodec ac3 -vf "yadif" output.mp4
MP4 TO WEBM (HIGH)
ffmpeg -i input.mp4 -aq 5 -ac 2 -qmax 25 -threads 2 output.webm
ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k -c:a libopus output.webm
@extratone
extratone / applefn.patch
Created August 24, 2024 15:19 — forked from fauxpark/applefn.patch
QMK Apple Fn
diff --git a/builddefs/common_features.mk b/builddefs/common_features.mk
index 18f8b0bbfc..4ef3e230e4 100644
--- a/builddefs/common_features.mk
+++ b/builddefs/common_features.mk
@@ -878,6 +878,10 @@ ifeq ($(strip $(JOYSTICK_ENABLE)), yes)
endif
endif
+ifeq ($(strip $(APPLE_FN_ENABLE)), yes)
+ OPT_DEFS += -DAPPLE_FN_ENABLE
/* Light mode */
:root {
--text: #000000;
--link: #1565C0;
--link_visited: #1565C0;
--accent1: #333333;
--accent2: #666666;
--background: #ffffff;
--code: #e3e3e3;
--button-text: #ffffff;
@extratone
extratone / iMDtoPDF.py
Created July 8, 2024 08:17 — forked from wcaleb/iMDtoPDF.py
iMDtoPDF
#! /usr/bin/env python
# -*- coding: utf-8 -*-
## iMDtoPDF.py
## by W. Caleb McDaniel
## http://wcm1.web.rice.edu
## This is a wrapper script for sending documents to Docverter
## for conversion from markdown to PDF using Pandoc. Typically
## Docverter calls are made with cURL; this script uses httplib.
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@extratone
extratone / countrycode-latlong-array.json
Created June 25, 2024 11:17 — forked from sindresorhus/countrycode-latlong-array.json
Country codes (ISO 3166) to latitude longitude - converted from http://www.maxmind.com/app/country_latlon
{
"ad": [
"42.5000",
"1.5000"
],
"ae": [
"24.0000",
"54.0000"
],
"af": [
@extratone
extratone / PlayStationBIOSFilesNAEUJP.md
Created June 22, 2024 02:57 — forked from juanbrujo/PlayStationBIOSFilesNAEUJP.md
Files for PlayStation BIOS Files NA-EU-JP
@extratone
extratone / PlayStationBIOSFilesNAEUJP.md
Created June 22, 2024 02:57 — forked from juanbrujo/PlayStationBIOSFilesNAEUJP.md
Files for PlayStation BIOS Files NA-EU-JP

FIA WEC Timing Screen Tweaks

This is my data maximization CSS for the Stylish Chrome extension. I'm using it to Airplay two browsers side-by-side to a 39" TV (see comment below), so your application may need some tweaks.

To use, install the extension then visit live.fiawec.com. Click the Stylish icon, and choose "Write style for live.fiawec.com/this_URL". Then paste in the your preferred version of the css in the edit window (see photos of the two versions in the comments below), press save, and the page will automaticaly refresh.

The biggest change can be made just with the font size. You'll want to adjust that based on your screen and viewing distance.

If things are too crowded, adjust the padding inside the #classement td. 5px looks better, but space is precious.