Thoughts, stories and ideas.
HuyNQ's Corner
  • Home
  • About
  • Hot Girls
  • My Extensions
  • GitHub
Subscribe

shell

Chạy cronjob mỗi N ngày

Chạy cronjob mỗi N ngày

Vừa rồi mình có làm GitHubArchive [https://github.com/hnq90/GitHubArchive], đây là một project mã nguồn mở có chức năng gửi email thống kê các top các repository của GitHub trong ngày. Cụ thể là top 25 repository mới nổi được nhiều người đánh dấu (star) nhất và top
By Huy Nguyen Quang Feb 9, 2019

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']
By Huy Nguyen Quang Apr 7, 2017
ZSH Alias

ZSH Alias

By Huy Nguyen Quang Nov 20, 2014

Subscribe to HuyNQ's Corner

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
HuyNQ's Corner © 2023. Powered by Ghost