These are public posts tagged with #0x0. You can interact with them if you have an account anywhere in the fediverse.
…wie oben schon hingewiesen, ist ein kürzen von URL's auf Mastodon nicht nötig. Abgesehen davon gibt es u.a. noch 0x0 als Tool was ich pers. mag, da damit die Privatsphäre der Menschen respektiert wird.
3/3
If you want to upload your file to a cloud to share with others, there is http://0x0.st website which needs only a terminal command be used. For uploading your file use `curl -F'file=@/path/to/file' http://0x0.st` command and get the #URL of the uploaded file. For more descriptions see its website: http://0x0.st/
#0x0
@helge For reference, in case it can help anyone else, putting a breakpoint in `init(0` and looking at the closest couple of stack frames, you'll see an entry like this:
#2 0x000000010063df94 in implicit closure #2 in implicit closure #1 in variable initialization expression of ReKeyApp._store ()
or
#2 0x0000000100631cdc in implicit closure #2 in implicit closure #1 in variable initialization expression of ContentView._store ()
It very helpfully tells you the class (or struct) causing the instantiation.
Would be nice if #Xcode actually selected the line in the source instead of a line in a block of assembly, but the comments in that are helpful too:
ReKey`implicit closure #2 in implicit closure #1 in variable initialization expression of ContentView._store:
0x100631cc0 <+0>: stp x20, x19, [sp, #-0x20]!
0x100631cc4 <+4>: stp x29, x30, [sp, #0x10]
0x100631cc8 <+8>: add x29, sp, #0x10
0x100631ccc <+12>: mov x0, #0x0
0x100631cd0 <+16>: bl 0x10062d700 ; type metadata accessor for ReKey.Store at <compiler-generated>
0x100631cd4 <+20>: mov x20, x0
0x100631cd8 <+24>: bl 0x100623770 ; ReKey.Store.__allocating_init() -> ReKey.Store at Store.swift:43
-> 0x100631cdc <+28>: ldp x29, x30, [sp, #0x10]
0x100631ce0 <+32>: ldp x20, x19, [sp], #0x20
0x100631ce4 <+36>: ret
Well this project has been though some shit, but I think this is where it's going to stay. https://0x45.st is now a full blown 0x0.st clone, but written in Crystal using the Athena framework and Crecto. Turns out you don't need all of the flashy BS and pretty styles to make a decent paste bin.
Like 0x0 it supports files under 256MiB and (for now) it has the same default expiration curve. It does not yet support NSFW detection and virus scanning, but that will be coming soon.
If you're feeling generous, leave a star couldn't hurt the job hunt to have another project with a decent number of stars. https://github.com/watzon/paste69
#project #developer #pastebin #crystal #crystallang #athenaframework #0x0 #curl #docker
Amazing how easy was to write an android app for sending files to #0x0 and then retrieving the link.
The answer is: you don't do it. You just use the excellent #httpshortcuts (from fdroid) with the URL (http://0x0.st), the method (POST) and the expected form data (parameter "file", the contents of the upload).
This creates a shortcut that you can select in the share menu of any app, and then you can share back the result URL to any other app.
Furthermore, you can use #javascript for customize further some parts of the process.