Last active
December 11, 2017 04:07
-
-
Save DanielTimLee/a14469e5198bb79f4c89f42ec5a540aa to your computer and use it in GitHub Desktop.
Misc
This file contains hidden or 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
| Misc |
This file contains hidden or 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
| #!/bin/bash | |
| item_list=(2852339 3812914) | |
| item_name=("레노버 듀얼모드 무선 터치마우스 N700 " | |
| "삼성전자 750 EVO (120GB) ") | |
| for (( i = 0 ; i < ${#item_list[@]} ; i++ )) ; do | |
| echo "${item_name[i]} :" | |
| curl -s -A "Chrome" "http://prod.danawa.com/info/?pcode=${item_list[i]}" 2>&1 | grep -Pzo "big_price([\S\s]*?)<" | grep -Pzo ">([\S\s]*?)<" | grep -Pzo "[0-9]" | |
| printf "\n" | |
| done | |
| curl -s -A "Chrome" "http://prod.danawa.com/info/?pcode=2852339" 2>&1 | grep -Pzo "big_price([\S\s]*?)<" | grep -Pzo ">([\S\s]*?)<" | grep -Pzo "[0-9]" |
This file contains hidden or 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
| 2017/11/06 03:55:06 [error] 3028#0: *6 lua entry thread aborted: runtime error: ./kong/tools/utils.lua:477: attempt to yield across C-call boundary | |
| stack traceback: | |
| coroutine 0: | |
| [C]: in function 'require' | |
| /usr/local/share/lua/5.1/lapis/init.lua:15: in function 'serve_admin_api' | |
| content_by_lua(nginx-kong.conf:148):2: in function <content_by_lua(nginx-kong.conf:148):1>, client: 10.0.2.2, server: kong_admin, request: "GET /shepherd/list HTTP/1.1", host: "192.168.0.32:8001", referrer: "http://192.168.0.32:8001/shepherd/list" | |
| 2017/11/06 03:55:07 [error] 3028#0: *8 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/lapis/init.lua:17: attempt to index local 'app_cls' (a userdata value) | |
| stack traceback: | |
| coroutine 0: | |
| /usr/local/share/lua/5.1/lapis/init.lua: in function 'serve_admin_api' |
This file contains hidden or 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
| new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment