Skip to content

Instantly share code, notes, and snippets.

@geotheory
Created September 1, 2019 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geotheory/7074c5066c8134619b6b11f9f8ad6c48 to your computer and use it in GitHub Desktop.
Save geotheory/7074c5066c8134619b6b11f9f8ad6c48 to your computer and use it in GitHub Desktop.
## ebay snipe service based on
# https://github.com/ruippeixotog/ebay-snipe-server
# crontab entry for service
@reboot /home/pi/ebay-sniper/bin/ebay-snipe-server > /home/pi/ebay-sniper/snipe.log 2>&1 &
# auction info
snipe-auct(){ curl http://localhost:3647/auction/$1; }
# snipe info
snipe-info(){ curl http://localhost:3647/auction/$1/snipe; }
# create new snipe
snipe-new(){ curl -d '{"bid": "GBP '$2'"}' -H "Content-Type: application/json" -X POST http://localhost:3647/auction/$1/snipe; }
# delete snipe
snipe-delete(){ curl -H "Content-Type: application/json" -X DELETE http://localhost:3647/auction/$1/snipe; }
# list active snipes
alias snipe-ls='curl http://localhost:3647/snipes'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment