forked from maxroll-media-group/hetzner-auction-hunter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.sh.example
33 lines (27 loc) · 2.24 KB
/
search.sh.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
###########################################################################################
#################################### DO NOT REMOVE ########################################
###########################################################################################
if [ ${0##*/} == ${BASH_SOURCE[0]##*/} ]; then
echo "WARNING"
echo "This script is not meant to be executed directly!"
echo "Use this script only by sourcing it."
echo -e "\n"
exit 1
fi
###########################################################################################
###########################################################################################
###########################################################################################
########################### YOU CAN EDIT **BELOW** THIS LINE ##############################
# Examples
#perform_search "search-abcde" "80" "128" "960" "1230v3,1275v5"
#perform_search "search-abcde" --price "80" --exclude-tax --ram "128" --ecc --disk-general-each-size 960 --disk-general-count 2 --disk-quick --match-cpu "1230,1275" --exclude-cpu "1275v5"
#perform_search "search-abcde" --price "80" --ram "64" --ecc --disk-general-each-size 960 --disk-general-count 2 --disk-quick --match-cpu "1230,1275" --exclude-cpu "1275v5"
#perform_search "search-abcde" --price "80" --exclude-tax --ram "64" --ecc --disk-general-each-size 960 --disk-general-count 2 --disk-quick --match-cpu "1230,1275" --exclude-cpu "1275v5"
#perform_search "search-abcde" --test-mode --id 2361035 --price "80" --exclude-tax --ram "64" --ecc --disk-quick --disk-quick-each-size 960 --disk-quick-count 2 --match-cpu "1230,1275" --exclude-cpu "1275v5"
#perform_search "search-abcde" --test-mode --id "2361035,2330569" --price "800" --exclude-tax --ram "64" --ecc --disk-quick --disk-quick-each-size 960 --disk-quick-count 2 --match-cpu "1230,1275" --exclude-cpu "1275v5"
#perform_search "search-abcde" --test-mode --id "2361035" --price "800" --exclude-tax --ram "64" --ecc --disk-quick --disk-quick-each-size 960 --disk-quick-count 2
# Debugging Using JQ
#selectedid="2361035"
#cat ./data/search/live_data_sb.json | jq -r ".server[] | select(.id == ${selectedid})"
#cat ./data/search/live_data_sb.json | jq -r ".server[] | select(.id == 2361035)"