Check the copyright laws and the term of service before using it. You might be breaking the law!
- Open the Network tab of the Chrome Inspector
| #!/bin/bash | |
| # $1 = # of seconds | |
| # $@ = What to print after "Waiting n seconds" | |
| countdown() { | |
| secs=$1 | |
| shift | |
| msg=$@ | |
| while [ $secs -gt 0 ] | |
| do | |
| printf "\r\033[KWaiting %.d seconds $msg" $((secs--)) |
| REPO=ansvif; GITUSER=oxagast; curl -s https://api.github.com/repos/$GITUSER/$REPO/releases | grep download_count | sed -e 's/.*: //' -e 's/,/ + /' | tr -d '\n' | sed -e 's/+ $/\n/' | bc | tr -d '\n' ; echo " All time clones of $REPO." |
| # The command finds the most recent tag that is reachable from a commit. | |
| # If the tag points to the commit, then only the tag is shown. | |
| # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
| # and the abbreviated object name of the most recent commit. | |
| git describe | |
| # With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
| git describe --abbrev=0 | |
| # other examples |
| brew list -1 | while read line; do brew unlink $line; brew link $line; done |