Skip to content

Instantly share code, notes, and snippets.

View JamesNZL's full-sized avatar

James JamesNZL

View GitHub Profile
@jaskfla
jaskfla / macos-tidbits.md
Last active May 15, 2024 09:22
macOS Tidbits

Clarus the dogcow macOS Tidbits

Some neat conveniences for macOS users (or just the macOS-curious).


When ⌘↹-ing between apps, you can mouse over over an app and release ⌘ to switch to that app without having to spam ↹ or ⇧↹.

⌥⌘-click an app in the Dock to switch to that app and hide all other apps at the same time. This is great when screen sharing.

@Excigma
Excigma / matterbridge.md
Last active July 23, 2023 23:30
Slack <=> Discord bridge with Matterbridge

Slack <=> Discord bridge with Matterbridge

This is a tutorial to get an instance of Matterbridge running on a machine using Docker and docker compose.

What is Matterbridge?

Matterbridge is an open-source and self-hosted application that acts as a bridge between different chat platforms. It can connect a variety of services, such as Slack, Discord, Matrix, Telegram, IRC, and more. This means that users on one platform can communicate with users on another without joining each other's servers or networks. Matterbridge is capable of mirroring text messages, files and images across platforms.

Options for hosting

@bennlee
bennlee / remapping-keys-via-hidutil.md
Created November 19, 2021 05:39
How to remapping keys on macOS without thirdparty applications.

How to remapping keys on macOS without thirdparty applications.

You could remapping keys via the macOS embedded command line tool hidutil.


Key IDs Table
Usage Usage ID (hex) Usage Usage ID (hex) Usage Usage ID (hex) Usage Usage ID (hex)
@sloanlance
sloanlance / git-temporary-ignore.md
Last active March 2, 2024 01:32
git: A couple ways to temporarily ignore changed or new files without altering .gitignore.

There are times notifications aren't wanted about either a changed repo file or a new file that needs to be added to the repo. However, adding the name of the file to .gitignore might not be a good option, either. For example, locally-generated files that other users aren't likely to generate (e.g., files created by an editor) or files of experimental test code might not be appropriate to appear in a .gitignore file.

In those cases, use one of these solutions:

  1. If the file is a changed repo file

    Use the command:

    git update-index --assume-unchanged "$FILE"