Skip to content

Instantly share code, notes, and snippets.

@agoose77
Created March 27, 2026 14:07
Show Gist options
  • Select an option

  • Save agoose77/a35ad8f9ae2e958f76b77f80195c09ff to your computer and use it in GitHub Desktop.

Select an option

Save agoose77/a35ad8f9ae2e958f76b77f80195c09ff to your computer and use it in GitHub Desktop.
Generate nbgitpuller-aware permalinks

Modify user-direct URLs to include permalinks

This script takes two URLs, the permalink URL for a hub profile, and a user-direct URL (e.g. an nbgitpuller URL), and fuses them together.

python ./permalink.py <USER-URL> <PERMALINK-URL>

The output is the fixed URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment