Updating GitHub Authentication Using Token on macOS (Replacing Password)

With GitHub’s recent changes, passwords are no longer allowed for authentication when performing actions like check-in or check-out. Here’s how you can update your authentication method to use a personal access token instead of a password on macOS.

Step 1: Generate a Personal Access Token (PAT)

  1. Go to your GitHub account and navigate to Settings.
  2. Under Developer settings, select Personal access tokens.
  3. Click on Generate new token.
  4. Select the scopes or permissions you need for your token, such as repo access.
  5. Click Generate token and copy the token somewhere safe (you won’t be able to see it again).

Step 2: Update Git Credentials on macOS

  1. Open Terminal.
  2. Use the following command to clear the old GitHub credentials:
  3. When prompted for your GitHub credentials during the next git push or pull, enter your username and paste your new personal access token in place of your password.

Step 3: Store Token in macOS Keychain

If you want to avoid entering the token repeatedly, macOS will offer to store it in your keychain after you enter it once during authentication.

That’s it! Your GitHub authentication should now be updated to use a personal access token on macOS.

Make an offer on Opensea.io automatically

This program allows us to make an offer on Opensea.io automatically.

Xem tiếp >> “Make an offer on Opensea.io automatically”

Python get current time by timezone

While creating a Python program, we may have to get the current time following a timezone. Below lines of code works for the purpose.

In order to show all timezones, let following below command

Update GitHub authentication to use a token on macOS (rather than password)

GitHub has disabled password authentication. Below are steps to update the authentication to use a token on macOS.

Xem tiếp >> “Update GitHub authentication to use a token on macOS (rather than password)”

Resolve ReCaptcha callback

In order to resolve ReCaptcha, we have to use some resolving captcha service and integrate it into our program. This article will guide you how to integrate it into Python/Selenium program 

Xem tiếp >> “Resolve ReCaptcha callback”

Python using Playwright with proxy

What is Playwright?

The playwright is a web autotest (automation) framework which is provided by Microsoft. It is similar to Selenium. 

Xem tiếp >> “Python using Playwright with proxy”