Skip to content
forked from shabane/gitlynx

GitLynx is collection of tools on a site which let its users to store Files, Text on a spesific repo and get a direct URL of it. its also a URL shortner

Notifications You must be signed in to change notification settings

gitlynx-ir/gitlynx

 
 

Repository files navigation

GitLynx

GitLynx is a web app to store your files and get direct link. you can upload any type of file under 100MB, even you can paste text directly on site and even it can shorten your URL.

How it work?

  1. FileBin: well it hase a middle server to intract with github. the middle server runs the site, user will upload its file to the server and then middle server will save it on github after that it will send back a direct url of the file to user.

  2. PasteBin: this is same as FileBin, execpt that user can write or paste its text directly on the site and then push it on site to get its URL.

  3. Url Shortner: there is a theme.html file which contain some html code and some URL varialble, the URL passed from user will store on that variables, then an html page will upload to github which whenever its open, it will redirect the user to new location.

Why this Idea!?

In IRAN all Url Shortners, Pastebins and File Sharing Platforms are Banned! so i decide to create a new one which is based on other site that is still open. if some time Github get banned by Iran, we can replace the github module with anoter module to save and recive file to/from another site.

and or we can use a CDN like CloudFlare to cercuvment censorship.

How to deploy our own?

you can deploy it on streamlit for free

or on your own server. well its easy with this command

curl https://raw.githubusercontent.com/shabane/gitlynx/master/install.sh | sh

or you can install and run it manualy

  1. clone the repo and set 3 environment varialbes that explained below.
git clone --depth 1 https://github.com/shabane/gitlynx.git ~/gitlynx
Variable Name Explain
TOKEN your github token which have access to REPO
REPO The repository that you want the site to upload data to
OWNER Owner of the repository
  1. install prerequestes
sudo apt-get update
sudo apt-get install python3-pip
pip3 install requests streamlit
  1. run site
nohup streamlit run ~/gitlynx/main.py &

Donation!

Kidding me!? i live in IRAN which get worst every day! donation help me get through!

Iranian Donation Service

Donation with CryptoCurrency

About

GitLynx is collection of tools on a site which let its users to store Files, Text on a spesific repo and get a direct URL of it. its also a URL shortner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.1%
  • HTML 8.8%
  • Shell 2.1%