Skip to content

Commit

Permalink
Release 1.2.1: Change online service back to http://0x0.st
Browse files Browse the repository at this point in the history
Since https://oshi.at seems to have gone...
  • Loading branch information
Humdinger committed Jan 16, 2021
1 parent 3eb6538 commit 22cd787
Show file tree
Hide file tree
Showing 23 changed files with 60 additions and 47 deletions.
26 changes: 20 additions & 6 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
# UploadIt
# ![UploadIt icon](./icon.png) UploadIt

UploadIt is a Tracker Add-On that uploads a single file to the online service https://oshi.at. The URL for the uploaded file is put into the clipboard after the upload has finished, ready to be pasted into an email, a chat window or forum post.
UploadIt is a Tracker Add-On that uploads a single file to the online service [The Null Pointer](http://0x0.st/). The URL for the uploaded file is put into the clipboard after the upload has finished, ready to be pasted into an email, a chat window or forum post.

Depending on the size of the file, uploaded files are retained for 30 days to one year. The maximum file size is 512 MiB. 0x0.st is NOT a platform for:

* piracy
* pornography
* extremist material of any kind
* malware / botnet C&C
* anything related to crypto currencies
* backups
* CI build artifacts
* doxxing, database dumps containing personal information
* anything illegal under German law

Uploads found to be in violation of these rules will be removed, and the originating IP address blocked from further uploads.

More details at [The Null Pointer](http://0x0.st/).

Uploaded files can be up to 1000 MiB in size and are stored for 14 days.

### Tips

Expand All @@ -11,15 +26,14 @@ Uploaded files can be up to 1000 MiB in size and are stored for 14 days.
* UploadIt uses a curl command line that does all the work. You can put the line into your ```~/config/settings/profile``` and use "upload" from Terminal:
<pre>
function upload() {
curl https://oshi.at -F f=@$1 -F expire=20160 | grep "DL:" | awk '{ print $2; }' | clipboard -i
curl -F 'file=@'"$1" http://0x0.st | clipboard -i
clipboard -p
}
</pre>

The expiration time is set in minutes, 20160 being 14 days

### Manual build/install

* Build with a simple "make".
* Build with a simple "make". To add the minimal localization, do "make bindcatalogs" after that.
* Copy UploadIt to ```~/config/non-packaged/add-ons/Tracker/```.
* For it to actually work, you need to have the curl package installed (```pkgman install cmd:curl```)
2 changes: 1 addition & 1 deletion UploadIt.rdef
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resource app_flags B_SINGLE_LAUNCH;
resource app_version {
major = 1,
middle = 2,
minor = 0,
minor = 1,

/* 0 = development 1 = alpha 2 = beta
3 = gamma 4 = golden master 5 = final */
Expand Down
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions locales/ca.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Catalan application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On L'UploadIt només es pot usar com a complement del rastreig.\n
Online upload service not available Add-On Servei de càrrega en línia no disponible.
Uploading '%FILE%'… Add-On Es carrega %FILE%…
UploadIt can only be used as a Tracker add-on.\n Add-On L'UploadIt només es pot usar com a complement del rastreig.\n
UploadIt only works on a single file, no folders Add-On L'UploadIt només funciona en un sol fitxer i sense carpetes.
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
4 changes: 2 additions & 2 deletions locales/de.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 German application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt can nur als Tracker Add-on benutzt werden.\n
Online upload service not available Add-On Online Upload-Dienst nicht verfügbar
UploadIt only works on a single file, no folders Add-On UploadIt verarbeitet nur eine einzelne Datei, keine Ordner
Uploading '%FILE%'… Add-On '%FILE%' wird hochgeladen…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt can nur als Tracker Add-on benutzt werden.\n
UploadIt only works on a single file, no folders Add-On UploadIt verarbeitet nur eine einzelne Datei, keine Ordner
4 changes: 2 additions & 2 deletions locales/en_GB.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 English (British) application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt can only be used as a Tracker add-on.\n
Online upload service not available Add-On Online upload service not available
UploadIt only works on a single file, no folders Add-On UploadIt only works on a single file, no folders
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt can only be used as a Tracker add-on.\n
UploadIt only works on a single file, no folders Add-On UploadIt only works on a single file, no folders
4 changes: 2 additions & 2 deletions locales/es.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Spanish application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt sólo puede ser usado como Tracker add-on.\n
Online upload service not available Add-On No está disponible el servicio de subida en línea
UploadIt only works on a single file, no folders Add-On UploadIt sólo funciona sobre archivos individuales, no sobre carpetas
Uploading '%FILE%'… Add-On Subiendo '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt sólo puede ser usado como Tracker add-on.\n
UploadIt only works on a single file, no folders Add-On UploadIt sólo funciona sobre archivos individuales, no sobre carpetas
4 changes: 2 additions & 2 deletions locales/fr.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 French application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt ne peut être utilisé que comme extension du Tracker.\n
Online upload service not available Add-On Service de mise en ligne non disponible
Uploading '%FILE%'… Add-On Téléchargement de '%FILE%…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt ne peut être utilisé que comme extension du Tracker.\n
UploadIt only works on a single file, no folders Add-On UploadIt fonctionne uniquement avec un fichier seul, pas de dossiers
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
4 changes: 2 additions & 2 deletions locales/fur.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Friulian application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt al pues jessi doprât dome come component adizionâl di Tracker.\n
Online upload service not available Add-On Servizi di cjariament online no disponibil
Uploading '%FILE%'… Add-On Daûr a cjariâ in rêt '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt al pues jessi doprât dome come component adizionâl di Tracker.\n
UploadIt only works on a single file, no folders Add-On UploadIt al lavore dome cui file singui, no cun cartelis
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
4 changes: 2 additions & 2 deletions locales/hi.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Hindi application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt का उपयोग केवल Tracker add-on के रूप में किया जा सकता है\n
Online upload service not available Add-On ऑनलाइन अपलोड़ सेवा उपलब्ध नहीं है
UploadIt only works on a single file, no folders Add-On UploadIt केवल बिना फो़ल्डर के एक फा़इल ही अपलोड कर सकता है
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt का उपयोग केवल Tracker add-on के रूप में किया जा सकता है\n
UploadIt only works on a single file, no folders Add-On UploadIt केवल बिना फो़ल्डर के एक फा़इल ही अपलोड कर सकता है
4 changes: 2 additions & 2 deletions locales/hr.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Croatian application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt se može koristiti kao Tracker dodatak.\n
Online upload service not available Add-On Mrežni servis slanja nije dostupan
UploadIt only works on a single file, no folders Add-On UploadIt radi jedino sa pojedinačnom datotekom, ne i sa mapama
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt se može koristiti kao Tracker dodatak.\n
UploadIt only works on a single file, no folders Add-On UploadIt radi jedino sa pojedinačnom datotekom, ne i sa mapama
4 changes: 2 additions & 2 deletions locales/hu.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Hungarian application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt csak Tracker bővítményként használható.\n
Online upload service not available Add-On A feltöltő szolgáltatás nem érhető el
UploadIt only works on a single file, no folders Add-On UploadIt csak fájlokat képes feltölteni, könyvtárakat nem
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt csak Tracker bővítményként használható.\n
UploadIt only works on a single file, no folders Add-On UploadIt csak fájlokat képes feltölteni, könyvtárakat nem
4 changes: 2 additions & 2 deletions locales/id.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Indonesian application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt hanya dapat digunakan sebagai pengaya Tracker.\n
Online upload service not available Add-On Layanan unggahan online tidak tersedia
UploadIt only works on a single file, no folders Add-On UploadIt hanya berfungsi pada satu file, tidak ada folder
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt hanya dapat digunakan sebagai pengaya Tracker.\n
UploadIt only works on a single file, no folders Add-On UploadIt hanya berfungsi pada satu file, tidak ada folder
4 changes: 2 additions & 2 deletions locales/it.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Italian application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt può essere utilizzato solo come add-on del Tracker.\n
Online upload service not available Add-On Servizio di upload nonline non disponibile
UploadIt only works on a single file, no folders Add-On UploadI funziona unicamente con singoli file, non cartelle
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt può essere utilizzato solo come add-on del Tracker.\n
UploadIt only works on a single file, no folders Add-On UploadI funziona unicamente con singoli file, non cartelle
4 changes: 2 additions & 2 deletions locales/nl.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Dutch application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt kan alleen gebruikt worden als een Tracker-add-on.\n
Online upload service not available Add-On Online upload-dienst niet beschikbaar
UploadIt only works on a single file, no folders Add-On UploadIt werkt alleen met individuele bestanden, en niet met mappen
Uploading '%FILE%'… Add-On Uploaden '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt kan alleen gebruikt worden als een Tracker-add-on.\n
UploadIt only works on a single file, no folders Add-On UploadIt werkt alleen met individuele bestanden, en niet met mappen
4 changes: 2 additions & 2 deletions locales/pl.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Polish application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt może być używany tylko jako dodatek Trackera.\n
Online upload service not available Add-On Sieciowa usługa wysyłania jest niedostępna
UploadIt only works on a single file, no folders Add-On UploadIt działa tylko na pojedynczych plikach, nie katalogach
Uploading '%FILE%'… Add-On Wysyłanie '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt może być używany tylko jako dodatek Trackera.\n
UploadIt only works on a single file, no folders Add-On UploadIt działa tylko na pojedynczych plikach, nie katalogach
4 changes: 2 additions & 2 deletions locales/pt.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Portuguese application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On O UploadIt apenas pode ser utilizado como um 'add-on' do Tracker.\n
Online upload service not available Add-On Serviço de carregamento online não disponível
UploadIt only works on a single file, no folders Add-On O UploadIt funciona apenas com um ficheiro único, não com pastas
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On O UploadIt apenas pode ser utilizado como um 'add-on' do Tracker.\n
UploadIt only works on a single file, no folders Add-On O UploadIt funciona apenas com um ficheiro único, não com pastas
4 changes: 2 additions & 2 deletions locales/ro.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Romanian application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt poate fi utilizat doar ca supliment de Tracker.\n
Online upload service not available Add-On Serviciul de încărcare online nu este disponibil
Uploading '%FILE%'… Add-On Se încarcă „%FILE%”…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt poate fi utilizat doar ca supliment de Tracker.\n
UploadIt only works on a single file, no folders Add-On UploadIt funcționează doar cu un singur fișier, fără dosare
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
4 changes: 2 additions & 2 deletions locales/ru.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Russian application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt может использоваться только как дополнение Tracker.\n
Online upload service not available Add-On Сервис онлайн-загрузок недоступен
Uploading '%FILE%'… Add-On Загружается '%FILE%…'
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt может использоваться только как дополнение Tracker.\n
UploadIt only works on a single file, no folders Add-On UploadIt работает только с отдельными файлами, а не с папками
Uploading '%FILE%'… Add-On Выгружается '%FILE%…'
4 changes: 2 additions & 2 deletions locales/sv.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Swedish application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt kan bara användas som ett tillägg till Tracker.\n
Online upload service not available Add-On Uppladdningsservice online är inte tillgängligt
Uploading '%FILE%'… Add-On Laddarupp '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt kan bara användas som ett tillägg till Tracker.\n
UploadIt only works on a single file, no folders Add-On UploadIt funkar bara med enskilda filer, inte med mappar
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
4 changes: 2 additions & 2 deletions locales/tr.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Turkish application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt yalnızca bir İzleyici eklentisi olarak kullanılabilir.\n
Online upload service not available Add-On Çevrimiçi yükleme servisi kullanılamıyor
UploadIt only works on a single file, no folders Add-On UploadIt yalnızca tek bir dosya ile çalışır, klasörlerle kullanılamaz.
Uploading '%FILE%'… Add-On '%FILE%' yükleniyor…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt yalnızca bir İzleyici eklentisi olarak kullanılabilir.\n
UploadIt only works on a single file, no folders Add-On UploadIt yalnızca tek bir dosya ile çalışır, klasörlerle kullanılamaz.
4 changes: 2 additions & 2 deletions locales/uk.catkeys
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 Ukrainian application/x-vnd.humdinger-UploadIt 1303152328
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt можна використовувати лише як додаток Tracker’а.\n
Online upload service not available Add-On Служба відвантаження в Інтернет недоступна
UploadIt only works on a single file, no folders Add-On UploadIt працює лише з окремими файлами, а не з каталогами
Uploading '%FILE%'… Add-On Uploading '%FILE%'…
UploadIt can only be used as a Tracker add-on.\n Add-On UploadIt можна використовувати лише як додаток Tracker’а.\n
UploadIt only works on a single file, no folders Add-On UploadIt працює лише з окремими файлами, а не з каталогами
3 changes: 1 addition & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ process_refs(entry_ref directoryRef, BMessage* msg, void*)
CopyToClipboard(text);

BString command(
"curl https://oshi.at -F f=@\"%FILEPATH%\" -F expire=20160 "
"| grep \"DL:\" | awk '{ print $2; }' | clipboard -i ; "
"curl -F 'file=@'\"%FILEPATH%\" http://0x0.st | clipboard -i ; "
"exit");
command.ReplaceFirst("%FILEPATH%", path.Path());
system(command.String());
Expand Down

0 comments on commit 22cd787

Please sign in to comment.