home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 343557070

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/52#issuecomment-343557070 https://api.github.com/repos/simonw/datasette/issues/52 343557070 MDEyOklzc3VlQ29tbWVudDM0MzU1NzA3MA== 9599 2017-11-10T18:57:47Z 2017-11-10T18:57:47Z OWNER

https://file.io/ looks like it could be good for this. It's been around since 2015, and lets you upload a temporary file which can be downloaded once.

$ curl -s -F "file=@database.db" "https://file.io/?expires=1d"
{"success":true,"key":"ySrl1j","link":"https://file.io/ySrl1j","expiry":"1 day"}

Downloading from that URL serves up the data with a Content-disposition header containing the filename:

simonw$ curl -vv https://file.io/ySrl1j | more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 34.232.1.167...
* Connected to file.io (34.232.1.167) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: file.io
* Server certificate: Amazon
* Server certificate: Amazon Root CA 1
* Server certificate: Starfield Services Root Certificate Authority - G2
> GET /ySrl1j HTTP/1.1
> Host: file.io
> User-Agent: curl/7.43.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Fri, 10 Nov 2017 18:14:38 GMT
< Content-Type: undefined
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: Express
< X-RateLimit-Limit: 5
< X-RateLimit-Remaining: 4
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Headers: Cache-Control,X-reqed-With,x-requested-with
< Content-disposition: attachment; filename=database.db
...
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
273026602  
Powered by Datasette · Queries took 0.97ms · About: github-to-sqlite