Sign inSign up

prytz/github-local-redirect

By prytz

•Updated over 5 years ago

Image
0

174

prytz/github-local-redirect repository overview

⁠github-local-redirect

github.com is too long to type. Run this simple web server on your computer so you can type gh/vilhelmprytz into your web browser instead of github.com/vilhelmprytz.

⁠Instructions

Add this line to the /etc/hosts file. Replace the keyword gh with something else if you want something else.

127.0.0.1 gh
⁠Docker

The easiest way is if you got Docker installed locally. You can simply get it running on port 80 with one command.

docker run --restart unless-stopped --name github-local-redirect -d -p 80:5000 prytz/github-local-redirect:latest
⁠systemd service

Make sure you have the required dependencies installed before continuing.

  • Python 3.9
  • pipenv extension (install with pip install pipenv)
  • Git

Once you got the dependencies, run this as non-root.

bash <(curl -s https://raw.githubusercontent.com/vilhelmprytz/github-local-redirect/master/setup.sh)

It will install the app for you.

⁠Contributors ✨

Created by Vilhelm Prytz⁠.

Tag summary

Content type

Image

Digest

Size

78.3 MB

Last updated

over 5 years ago

docker pull prytz/github-local-redirect