A good way to post your configuration files so others can review them

So let's say something is messed up on your computer... you need help, but you want to keep the thread from getting polluted with ultra-long posts containing the contents of configuration files.

Just print out to the screen the configuration file, and append | curl -F 'file=@-' 0x0.st to the print command, then copy-n-paste the URL it outputs.

dmesg | curl -F 'file=@-' 0x0.st
... which outputs:

.... which is the output of dmesg for my machine!

You can do that for any command that prints:
cat /etc/default/grub | curl -F 'file=@-' 0x0.st
... outputs:

... and that's my grub.


This could actually be extremely useful for all members. Thanks for sharing this Mr_Magoo!

Added to the Forum Toolbox (available to regular members).

We can make it even easier for people...

Let's say you want to view the output of their dmesg command...

You'd tell them to enter the following:
alias report="curl -F 'file=@-' 0x0.st"
dmesg | report

... then have them post the URL that it returns. If you need further configuration files from them, they don't need to re-enter the | curl -F 'file=@-' 0x0.st bit, they'd just append | report to a command.

The devs might think about making that alias permanent by setting it in /home/$USER/.bashrc:

# Set up 'report' alias for sharing configuration files with Zorin help
# Use it like this:
# dmesg | report
# cat /etc/default/grub | report
alias report="curl -F 'file=@-' 0x0.st"

... then we'd just have to tell people to enter, for instance, dmesg | report.

If Zorin devs are worried about relying upon a third-party for such a function, they could clone the service and run it: