Skip to content

Instantly share code, notes, and snippets.

@pasora
Created October 27, 2016 07:35
Show Gist options
  • Save pasora/866341f989e803304daabb7bcbdba3ab to your computer and use it in GitHub Desktop.
Save pasora/866341f989e803304daabb7bcbdba3ab to your computer and use it in GitHub Desktop.
Inform IP address to LINE Notify
#!/bin/sh
ip=`curl ipinfo.io/ip`
curl -X POST -H 'Authorization: Bearer [your_access_token]' -F "message=${ip}" https://notify-api.line.me/api/notify > /dev/null 2>&1
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment