Coder Social home page Coder Social logo

0xprateek / dash Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 15.0 4.36 MB

A Command Line tool for faster, smarter and limitless file sharing.

License: GNU General Public License v3.0

Python 46.96% CSS 24.58% JavaScript 17.36% HTML 11.10%
data-sharing file-sharing file-transfer file-upload flask python3

dash's People

Contributors

0xprateek avatar janish1999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dash's Issues

Location based Ngrok Server configuration of DASH

  • Ngrok provides servers which are located at 7 different location in the world and for faster file transfer we need to select the nearest server and this can be different to a different user.
  • The objective of this issue is to add one more configuration step to DASH which will ask the user to enter the server which is nearest to them ;

code | country
us | United States
eu | Europe
ap  | Asia/Pacific
au  | Australia
sa  | South America
jp  | Japan
in  | India
`

and depending on the selected location we need to update the line number 58 of dash.py

ngrok = subprocess.Popen(['ngrok','http','-region','**Server Code**' ,str(port)], stdout = subprocess.PIP )

  • For more information about ngrok region configuration you can check here

Optimizing DASH web Pages

Optimization
- Current Dash webpage is very slow to load.
Changes
- Adding DASH links to the webpage as well - Issue #4

Use PEP-8 code formatting

Use PEP-8 standard for formatting code.
you can read about it here.

  • For this, run the whole code through a pep-8 formatter and update new codes here.

Share a specific file from server side

Currently, you can only receive a file from anyone but the objective of this feature is ;

  • To add a dash feature which allows you to share any specific file with others.

Custom upload path for file received

Objective
User can set up where he wants to save the file which he/she going to receive it.

  • Make use of command-line arguments
  • Default location when not specified the path is at the Desktop.

Custom port for running DASH

Objective:-
User can choose for the port at which local and public server should run. Possibly choosing the port using command-line arguments would be a good way : )

Automating ngrok authentication retrival for configuration

  • Currently, while configuring dash we are asking the user to enter the authentication token manually.
  • The Objective of this Issue is to automate this issue and in place of entering auth token we take Username and password of their Ngrok account and get the auth token automatically.
  • When user does not pass any value to username and pass then ask them to enter authtoken after getting it manually.

configure.py borked for Alpine Linux

System:
image

Enter Ngrok Authentication token : <censored>
   /usr/local/bin/ngrok: line 1: �ELF����: not found

Traceback (most recent call last):
  File "configure.py", line 46, in <module>
    print(colors.white," ",output.decode('utf-8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x93 in position 30: invalid start byte
LAPTOP-1VTNTMTJ:~$ source /usr/local/bin/ngrok
-ash: /usr/local/bin/ngrok: �ELF����: not found
-ash: /usr/local/bin/ngrok: : not found
-ash: /usr/local/bin/ngrok: ���: not found
-ash: /usr/local/bin/ngrok: �+�+���,�l�l�@��Qtd��e����@�: not found
-ash: /usr/local/bin/ngrok: �A��: not found
-ash: /usr/local/bin/ngrok: }��: not found
-ash: /usr/local/bin/ngrok: ��: not found
-ash: /usr/local/bin/ngrok: R: not found
-ash: /usr/local/bin/ngrok: line 2: ��X: not found
-ash: /usr/local/bin/ngrok: ��: not found
-ash: /usr/local/bin/ngrok: line 4: �g��: not found
-ash: /usr/local/bin/ngrok: line 5: syntax error: unexpected "("

colored output on terminal

  • Change the color of all the lines printing on the terminal.

    • Type 0 should be having a green color.
    • Type 1 should be having a red color.
    • Type 2 should be having a white color.
  • change the color of separation line between the starting verbose and the upload queries.

Adding no verbose mode.

Objective
Although Dash is not printing too many lines on the terminal still I am looking to filter out some of the lines to be printed on the terminal.

Removing un-used code from uploader template code.

  • Some files like normalize.css are available online but we are having it locally. So, removing such files can reduce the code size.
  • removing unused css styling and js codes (if any) is also required.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.