Skip to content

Instantly share code, notes, and snippets.

View pierd's full-sized avatar
🦀

Kuba pierd

🦀
View GitHub Profile

macOS toggle-natural-scrolling helper

There's only one setting for Natural Scrolling in macOS. On the surface there are two (one for Trackpad and one for Mouse) but changing one changes the other.

I like to have Natural Scrolling on for Trackpad and off for Mouse. This is where this script comes in handy.

Tested on Sonoma. Tried a bunch of different scripts but this is the one that worked so I've put it here.

Setup

@pierd
pierd / README.md
Created April 18, 2023 14:45 — forked from palewire/README.md
How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

How to push tagged Docker releases to Google Artifact Registry with a GitHub Action

Here's how I configured a GitHub Action so that a new version issued by GitHub's release interface will build a Dockerfile, tag it with the version number and upload it to Google Artifact Registry.

Before you attempt the steps below, you need the following:

  • A GitHub repository that contains a working Dockerfile
  • The Google Cloud SDK tool gcloud installed and authenticated

Create a Workload Identity Federation

Keybase proof

I hereby claim:

  • I am pierd on github.
  • I am pierd (https://keybase.io/pierd) on keybase.
  • I have a public key ASDIpumN_nS3kwV4IQnNU5DSgewlVzJfOlr0ABHkfPuqtAo

To claim this, I am signing this object: