File diff: [root]/dump @ 711ba91f858 | log | faq | css

diff --git a/dump/api b/dump/api
new file mode 100644
index 0000000..b760795
-- /dev/null
++ b/dump/api
@@ -0,0 +1,35 @@
h1. How to use dump.bitcheese.net to asynchronously upload files

1. Generate an unique token for your upload, sending GET request to @http://dump.bitcheese.net/gentoken@

bc. % curl http://dump.bitcheese.net/gentoken
nuxyzud<...>umonuso

2. Add this token as @token@ form field when uploading a file

bc. % curl -F file=@file -F token=nuxyzud<...>wyfumonuso http://dump.bitcheese.net/upload-file?simple
http://dump.bitcheese.net/files/urobos/

3. If you want to query progress of file upload, you can send GET request to @http://dump.bitcheese.net/gettoken/$token@

bc. curl http://dump.bitcheese.net/gettoken/nuxyzu<...>fumonuso

This returns either an empty string (if file isn't uploaded yet or token doesn't exist) or relative path to file, like @files/urobos/file@

@gentoken@ and @gettoken@ are also available in JS format, just append "?format=js" to URI:

bc. % curl http://dump.bitcheese.net/gentoken?format=js
uploader.callback("nuxyzud<...>umonuso");

bc. % curl http://dump.bitcheese.net/gettoken/nuxyzud<...>umonuso?format=js
uploader.callback("images/uwegyra/font.png", {
"url":"http://dump.localhost/images/uwegyra/font.png/preview",
"name":"font.png",
"size":1186,
"file":"http://dump.localhost/images/uwegyra/font.png",
"pixelsize":[164,36],
"thumbsize":[400,88],
"thumb":"http://dump.localhost/images/uwegyra/thumb/font.png"
});

Fields should be self-descriptive.
\ No newline at end of file

diff --git a/dump/index b/dump/index
new file mode 100644
index 0000000..e3d02f7
-- /dev/null
++ b/dump/index
@@ -0,0 +1,53 @@
api - Description of API for using dump.bitcheese.net from other sites
script - Shell script to use dump.bitcheese.net from command line

h1. dump.bitcheese.net description

toc.

h2. Service description

dump.bitcheese.net is a web service for sharing files via HTTP protocol.

h2. Service philosophy

dump.bitcheese.net is intended to be a simple web file sharing service, never deleting your files. I hate dead links. If there's one linking to this site, notify me and I'll do my best to fix it. All files are regularly backed up.

h2. Files storage terms

Current file size limits are displayed on front page. Files are stored forever. You cannot delete your files.

h2. Copyright

If someone asks me to remove some files and confirms that they own copyright to this information, I will remove the files in question. BTW, nobody did yet.

h2. Usage terms

Don't take more resources then you need. If I notice that service is being abused, I'll block related activity.

h2. FAQ

h3. Can I upload child porn here?

As I currently do not posess any software to determine if given image is child porn, and neither do I personally check all the files that get uploaded, guess you can. All illegal (Russian or British laws) files will be deleted on authority notice.

h3. Why can't I delete my own files?

Because I'd hate to let down somebody who clicked your link in hopes of seeing a file.

h2. Donate

Apparently service is growing, and I probably need to move it to better hosting. And fix the code. And there is no better incentive for the latter than money. You can donate everything you own via "bitcoin":http://bitcoin.org/:

17MziqwNxtaoBGf9PmMbiZAn7wMvmUZRpE

Or via PayPal:

nomarkup. <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHTwYJKoZIhvcNAQcEoIIHQDCCBzwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAP2XDnh1s7c56E7mVvRLvWzVEFbF2nhd93mrmfHUhmyVrzrqKyZHJF76FQaJYx7XQtneCv76jKgWPCCJUlOiJFpOtOiCVJhtK0BrASesKevSztoA1tw8nCJzCoIEZ/crG6bUeKFVQhWM9GMpPRW6mk93DDYFd5SqsdvNSxop1wUDELMAkGBSsOAwIaBQAwgcwGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIgzdq7vaOmqmAgah8sEWwYaYRSlQfbr7WhyE891FzEpjHc5C3LYRhr7JQLqyaPoGouOVvNLvUO0SZ7xQtPqYZ43ujLuZzYW6GnD3KNZ/O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AhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbYIBADAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAIFfOlaagFrl71+jq6OKidbWFSE+Q4FqROvdgIONth+8kSK//Y/4ihuE4Ymvzn5ceE3S/iBSQQMjyvb+s2TWbQYDwcp129OPIbD9epdr4tJOUNiSojw7BHwYRiPh58S1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMjAyMDMxNzEyMTNaMCMGCSqGSIb3DQEJBDEWBBTbfgbbkK3fXSZsIMI+5+v75bZV5TANBgkqhkiG9w0BAQEFAASBgLXUhuBHQi2z0vLEYYj/zrAMf71xIzeLHsviKQJdMf2xsvphBX6Dhvn7TU94tfqzsD0/jwoP+Ap7BypyGvGhxn+0PuIu92vg9AxBcMhLM6mbIwKy0/BwSjNHif87JvijMIWMW1irPBfEDtozEUsz1qhNU7EXvYhJbNGBqqnHRgww-----END PKCS7-----
">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG_global.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

diff --git a/dump/script b/dump/script
new file mode 100644
index 0000000..eb8dd53
-- /dev/null
++ b/dump/script
@@ -0,0 +1 @@
:https://gist.github.com/221804
\ No newline at end of file

By Alexander Markov on 2012-02-18 19:21:00 +0400 Powered by bitcheese wiki engine