Skip to content

Instantly share code, notes, and snippets.


inem/note.txt Secret

Last active Apr 13, 2020
What would you like to do?
# How to use DO⚡️POST?
### Setup
Create custom workflow in [Alfred app]( triggered by a shortcut. Like this:
Put the following code into your bash script:
pbpaste | cat - > /tmp/tmp-buffer && curl --location --request POST '' --header 'Content-Type: text/markdown' --data-binary @/tmp/tmp-buffer --silent | pbcopy
pbpaste | tr '\n' '\0' | xargs -0 -I{} open {}
It does two things:
1. Sends contents of your clipboard to DO⚡️POST
2. Opens received URL in your default browser
### Usage
Use your editor of choice and get some text in Markdown.
Copy it and trigger your shortcut → Get your post published!
### Source code of this post
<script src=""></script>
### Examples:
- [Blogging for busy programmers!](
- [Как с помощью curl отправить POST-запрос c кучей текста](
- [Как открыть ссылку в браузере полученную из буфера обмена](
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment