Created
September 1, 2019 21:24
-
-
Save geotheory/7074c5066c8134619b6b11f9f8ad6c48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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