Skip to content

Instantly share code, notes, and snippets.

@JagCesar
Created May 16, 2017 07:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JagCesar/94e4a2f91d876d8ae2119f70e12ce1ad to your computer and use it in GitHub Desktop.
Save JagCesar/94e4a2f91d876d8ae2119f70e12ce1ad to your computer and use it in GitHub Desktop.
Push Me bash script
#!/bin/sh
message="$1"
curl -so \
- --data "title=$message&token=[token-here]" \
https://pushmeapi.jagcesar.se
@Nocube
Copy link

Nocube commented Jan 23, 2020

Just in case anyone needs to run this on Windows here is a command shell example:

C:\Windows\System32\curl.exe -o NUL -s -d "title=Text Message&token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -X POST https://pushmeapi.jagcesar.se

@JagCesar
Copy link
Author

@Nocube I don't speak python 🐍, but thanks for sharing that snippet with the community! I took the liberty to modify your comment and make it render as code. Feel free to edit it accordingly. Have a nice day!

@Nocube
Copy link

Nocube commented Jan 28, 2020

@Nocube I don't speak python 🐍, but thanks for sharing that snippet with the community! I took the liberty to modify your comment and make it render as code. Feel free to edit it accordingly. Have a nice day!

Thanks Jag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment