Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
ELLIOTTCABLE / gist:3a945b04ed8170d710ac
Created February 10, 2015 15:55
POSIX-compatible shell-script truthiness-checking cheat-sheet with-a hyphenated-title
[ -n "${VAR##[NFnf]*}" ] && echo '$VAR must be truthy (but will be considered falsey by default, if empty)'
[ -z "${VAR##[YTyt]*}" ] && echo '$VAR must be truthy (and will be by default, if empty)'
[ -z "${VAR##[NFnf]*}" ] && echo '$VAR must be falsey (and will be by default, if empty)'
[ -n "${VAR##[YTyt]*}" ] && echo '$VAR must be falsey (but will be considered truthy by default, if empty)'
struct e(node);
struct e(ast);
typedef struct e(node) * e(node);
typedef struct e(ast) * e(ast);
/* FIXME: I am slightly uncomfortable imposing a hard limit on the maximum size of “documents” that this Paws
* interpreter can handle. I’d love to use some sort of arbitrary-integer representation for this, but
* at the moment, that’s extra work I cannot afford. */
typedef unsigned long long int e(ast_index);
Process: Pretzel [18290]
Path: /Applications/Pretzel.app/Contents/MacOS/Pretzel
Identifier: rocks.pretzel
Version: 0.0.19 (0.0.19.46)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Pretzel [18290]
User ID: 501
Date/Time: 2020-04-01 16:01:30.767 -0500
AGDCDiagnose Version: 4.7.2.2
### Start: GPUWrangler #######################################################
Stats: GPUCAdded:3 GpuAdded:3 Eject:0/f0/fd0/c0 Remove:0/t0 Un:0
gpu 0x9d07 flags 0xbe000020 (DG,published,driversStarted,hasGPUC,quiet,pubSched,pubArmed) vid.did=1002.66a3 b:d:f=14:0:0
gpu 0x9d07 pci 0x100000370 IOService:/AppleACPIPlatformExpert/PC01@0/AppleACPIPCI/BR1A@0/IOPP/GU00@0/IOPP/GD10@10/IOPP/EGP0@0/IOPP/EGP1@0/IOPP/GFX0@0
gpu 0x9d07 agdc 0x100000de5 /AtiDeviceControl
gpu 0x9d07 gpuc 0x100000c94 /AMD10000ControllerWrangler
gpu 0x9d07 agdpclient 0x100000de9 /AtiDeviceControl/AppleGraphicsDevicePolicy/AGDPClientControl
gpu 0x9d07 accel 0x100000d58 /AMDRadeonX5000_AMDVega20GraphicsAccelerator
@ELLIOTTCABLE
ELLIOTTCABLE / Pro_Display_XDR_chained.txt
Created March 16, 2020 10:12
Different EDIDs for Pro Display XDR when directly connected over Thunderbolt, vs. daisy-chained through another Thunderbolt device
EDID report generated by SwitchResX Version 4.9.1 for display Pro Display XDR
-----------------------------------------------------
------------------- RAW DATA ------------------------
-----------------------------------------------------
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
-----------------------------------------------------
0 | 00 FF FF FF FF FF FF 00 06 10 23 AE 02 0E 00 18
1 | 01 1D 01 04 C5 46 27 78 80 0F 91 AE 52 43 B0 26
@ELLIOTTCABLE
ELLIOTTCABLE / gist:6ecbbc77b54c685b71ead7bf6c4eb08c
Created February 13, 2020 04:09
UA Mixer Engine crash when using the Console 1
Process: UA Mixer Engine [3354]
Path: /Library/Application Support/Universal Audio/*/UA Mixer Engine.app/Contents/MacOS/UA Mixer Engine
Identifier: com.uaudio.ua_mixer_engine
Version: 9.11.0 (9.11.0)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: UA Mixer Engine [3354]
User ID: 501
Date/Time: 2020-02-12 22:04:14.662 -0600
@ELLIOTTCABLE
ELLIOTTCABLE / maintained-badges.markdown
Last active February 8, 2020 02:38
Replacements for StillMaintained badges

Since http://stillmaintained.com is, ironically, no longer maintained, here's some custom GitHub badges for your dead, stale, or frozen projects:

: https://img.shields.io/badge/maintained%3F-no!-red.svg?style=flat
: https://img.shields.io/badge/maintained%3F-seeking:_help_me!-yellow.svg?style=flat
: https://img.shields.io/badge/maintained%3F-rapidly_changing!-orange.svg?style=flat
: https://img.shields.io/badge/maintained%3F-yes!-brightgreen.svg?style=flat
: https://img.shields.io/badge/maintained%3F-feature--frozen-lightgrey.svg?style=flat

You can modify these using [Shields.

; Unshift numrow on Ergodox(en)
#UseHook
*1::+1
*2::+2
*3::+3
*4::+4
*5::+5
*6::+6
*7::+7
*8::+8
type 'a unresolved = Unresolved | Resolved of 'a | Absent
type 'a or_subexpr = Sub of expression | Literal of 'a | Absent
and flag = { name : string; mutable payload : string or_subexpr unresolved }
and arg = Positional of string or_subexpr | Flag of flag
and expression = { count : int; cmd : string or_subexpr; mutable args : arg array }
<?xml version="1.0" encoding="utf-8"?>
<ModList>
<Name>FM2. adding some</Name>
<modIds>
<li>Core</li>
<li>1507748539</li>
<li>1872244972</li>
<li>818773962</li>
<li>1541460369</li>
<li>1561769193</li>