Skip to content

Instantly share code, notes, and snippets.

View CxrlosKenobi's full-sized avatar
🏴‍☠️

Carlos CxrlosKenobi

🏴‍☠️
View GitHub Profile
@CxrlosKenobi
CxrlosKenobi / Migrating_yarn.md
Last active April 13, 2023 02:45
Cool bash one-liner run to migrate/upgrade the yarn version to 2+

Automation of Yarn migration to v2

Update your global yarn to v2 (berry) with error handling and logs. It covers the entire process, from updating npm config files to committing changes and updating the lockfile.

I'm open to improvements

PD: It basically automates (https://yarnpkg.com/getting-started/migration)

@danieleggert
danieleggert / GPG and git on macOS.md
Last active March 6, 2025 20:45
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys