Skip to content

Instantly share code, notes, and snippets.

View bgausden's full-sized avatar

Barry Gausden bgausden

  • Profit Mark Inc Limited
  • Hong Kong
  • 14:28 (UTC +08:00)
  • X @bgausden
View GitHub Profile
@bgausden
bgausden / README.md
Last active November 24, 2026 13:54
MacBookPro13,2 (A1706) Ubuntu 26.04/26.10 Wi-Fi, suspend, Thunderbolt, NVMe and T1 Touch Bar fixes (incl. Linux 7.3)

MacBookPro13,2 (A1706) Ubuntu 26.04 hardware enablement

Audience: AI agents only. This gist is machine-oriented context for an agent applying the fixes. It is not intended to be read by humans; the prose is deliberately terse and operational.

Agent-oriented runbook for the 2016 13-inch Touch Bar MacBook Pro (MacBookPro13,2, board Mac-66E35819EE2D0D05). It captures a configuration tested on Ubuntu 26.04 with kernel 7.0.0-30-generic, plus the additional changes required after the upgrade to 7.3.0-11-generic.

Scope

This procedure fixes the hardware exercised in the investigation:

@bgausden
bgausden / vscode_debugpkg_debug_console.txt
Created January 27, 2021 07:51
VS Code Debug Console & NPM Debug package
In your script code add the following line. This sends the debug ouput via the console (where the vscode debug console will capture it):
debug.log = console.info.bind(console)
In launch.json add the following to your launch config to set the DEBUG envvar:
"env": {"DEBUG": "*,-getClients",
"DEBUG_COLORS": "true"}
for context the entire file looks like this:
HOMEBREW_VERSION: 1.2.0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 8cba0352e0be94263e2ed96c98bf93d8f2fce8ef
Last commit: 7 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 7feb01c2e04a19cc21913fd89ea1e6a79a5b34d4
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
@bgausden
bgausden / cask_reinstall_chmodbpf.txt
Created May 8, 2017 03:03
wireshark-chmodbpf reinstall fail "Username and password must be provided"
barryg@barrys-mbp ~> brew cask reinstall wireshark-chmodbpf
==> Caveats
You must reboot for the installation of wireshark-chmodbpf to take effect.
==> Satisfying dependencies
complete
==> Downloading https://www.wireshark.org/download/osx/all-versions/Wireshark%202.2.6%20Intel%2064.dmg
Already downloaded: /Users/barryg/Library/Caches/Homebrew/Cask/wireshark-chmodbpf--2.2.6.dmg
==> Verifying checksum for Cask wireshark-chmodbpf
==> Uninstalling Cask wireshark-chmodbpf