Git Product home page Git Product logo

dfile's Introduction

visitors

๐Ÿ“ˆ GitHub Activity Graph:

coolcode's github activity graph

. .
coolcode's github stats Quiec's github stats

Metrics

Profile Views

counting of visitors to this page in this section started from Sept 9, 2023

Thanks for visiting โค๏ธ

Flag Counter

Star History

Star History Chart



If you liked my profile, you can Star โญ the repo and if you want to use this template you can Fork it and can use.

dfile's People

Contributors

coolcode 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  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  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

dfile's Issues

Weekly Digest (16 February, 2020 - 23 February, 2020)

Here's the Weekly Digest for coolcode/dfile:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository coolcode/dfile to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

Files are not stored forever!

Hi,

First of all, thank you for your great application!
It's awesome to see IPFS based solutions in an area where IPFS is really good (hosting files).
And going with support from the command line is just lots of bonus points too!

But...
There are a couple of issues.

First of all, uploads don't work. That's quite a big issue :)
With a file of ~6MB i get this error:

<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.10.3 (Ubuntu)</center>
</body>
</html>

And with a file of just ~300KB i get this error:

<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.10.3 (Ubuntu)</center>
</body>
</html>

Both were with using the dfile ZSH function.
But uploading via the site itself also didn't work for me.

Second, and this i do take issue with as it's highly misleading. You claim files are stored forever. That is quite simply just not true. As you probably know, IPFS relies on pinning to keep files alive. When i'm uploading a file using your service it's likely being pinned on your IPFS instance (it is automatically if you internally do ipfs add ...). And your server, despite your best intentions, will by no means have the ability to hold the promise of keeping all the files online. I would like to ask you to please clarify this on your site. You could even extend your service a little to add notification support and send the uploader of a file a mail - say - one week before you unpin it. If it doesn't have any pins after that and no recent visits then the file will in fact be gone from IPFS.

Cheers,
Mark

Weekly Digest (6 February, 2020 - 13 February, 2020)

Here's the Weekly Digest for coolcode/dfile:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository coolcode/dfile to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

Weekly Digest (9 February, 2020 - 16 February, 2020)

Here's the Weekly Digest for coolcode/dfile:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository coolcode/dfile to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

DFile Alias or Commands

DFile Alias or Commands

zch shell https://ohmyz.sh/

dfile() {
    if [ $# -eq 0 ]; then
        echo -e "No arguments specified. Usage: echo dfile /tmp/test.md cat /tmp/test.md | dfile test.md";
        return 1;
    fi; 
    tmpfile=$( mktemp -t transferXXX ); 
    if tty -s; then 
        basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); 
        curl --progress-bar -F file=@"$1" "https://dfile.herokuapp.com" >> $tmpfile; 
    else 
        curl --progress-bar -F file=@"-" "https://dfile.herokuapp.com/$1" >> $tmpfile;
    fi; 
    cat $tmpfile; 
    rm -f $tmpfile;
}

fish shell

What is the fish shell?
dfile.fish (~/.config/fish/)

function dfile --description "https://dfile.herokuapp.com"
    if test (count $argv) -eq 0
        echo "No arguments specified. Usage:\necho dfile /tmp/test.md\ncat /tmp/test.md | dfile test.md"
        return 1
    end

    ## get temporarily filename, output is written to this file show progress can be showed
    set tmpfile ( mktemp -t transferXXX )

    ## upload stdin or file
    set file $argv[1]

    set basefile (basename "$file" | sed -e 's/[^a-zA-Z0-9._-]/-/g')

    if test -d $file
        # zip directory and transfer
        set zipfile ( mktemp -t transferXXX.zip )
        # echo (dirname $file)
        #cd (dirname $file) and echo (pwd)
        zip -r -q - $file >> $zipfile
        curl --progress-bar  -F file=@"$zipfile" "https://dfile.herokuapp.com" >> $tmpfile
        rm -f $zipfile
    else
        # transfer file
        curl --progress-bar -F file=@$file "https://dfile.herokuapp.com" >> $tmpfile
    end

    ## cat output link
    cat $tmpfile

    ## cleanup
    rm -f $tmpfile
end

[enhancement] mobile friendly ui

Message from google search console:

Search Console has identified that your site is affected by 3 Mobile Usability issues:
Top Issues:

  • Text too small to read
  • Content wider than screen
  • Clickable elements too close together

We recommend that you fix these issues when possible to enable the best experience and coverage in Google Search.

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.