Git Bisect Vào một buổi sáng đẹp trời ngày nọ, mình đến công ty vào lúc 7h30, nhai tạm cái bánh mì que mua ở trên đường đi làm, thảnh thơi pha thêm cốc cafe cho tỉnh hẳn ngủ. Tranh thủ mở Slack ra check chợt thấy khách hàng kêu gào từ
Download 320Kbps song from mp3.zing.vn #!/bin/sh songId=$1 parseJson () { python -c "import json,sys;sys.stdout.write(json.dumps(json.load(sys.stdin)$1))"; } fetch () { local output=`wget -q --method GET --progress=dot --output-document - http://api.mp3.zing.vn/api/mobile/song/getsonginfo?requestdata={\"id\":\"$songId\"}` local link=$(echo $output | parseJson "['source']['320']