From 676165cdcc2f93a93adcdc595055c102e6c4cd6f Mon Sep 17 00:00:00 2001 From: Morgan Wattiez Date: Mon, 22 Jul 2019 14:11:00 +0200 Subject: [PATCH] Fix missing dates + top words scripts --- README.md | 6 +++--- top_extensions.sh | 0 top_words.sh | 23 +++++++++++++++-------- 3 files changed, 18 insertions(+), 11 deletions(-) mode change 100644 => 100755 top_extensions.sh diff --git a/README.md b/README.md index d979e3f..be27670 100644 --- a/README.md +++ b/README.md @@ -2409,7 +2409,7 @@ See also [Infrastructure](#infrastructure) * [Xerius](https://brutonetto.xerius.be) - :fr: [BE] Devenir indépendant : Simulez votre tarif journalier en tant qu'indépendant / Calculateur de Brut-Net * [Downdetector](https://downdetector.com) - offers a realtime overview of status information and outages for all kinds of services. | online monitoring of your favorite services * [Sven Taylor](https://www.techspot.com/news/80729-complete-list-alternatives-all-google-products.html) - (2019) The complete list of alternatives to all Google products | Parallel universe for the super security conscious -* [Maxime Blondel](https://www.maddyness.com/2018/04/04/100-outils-pour-lancer-sa-startup-sans-developpeur-ni-graphiste-et-presque-sans-argent/) - :fr: [FR] (2019) 100 outils pour lancer sa startup sans développeur ni graphiste (et presque sans argent) +* [Maxime Blondel](https://www.maddyness.com/2018/04/04/100-outils-pour-lancer-sa-startup-sans-developpeur-ni-graphiste-et-presque-sans-argent/) - (2018) :fr: [FR] (2018) 100 outils pour lancer sa startup sans développeur ni graphiste (et presque sans argent) * [Guesstimate](https://www.getguesstimate.com/models) - free models and tools for modeling things that aren't certain. You can forecast your earnings from a new venture, predict the amount of time completing a big project will take, or experiment with scientific theories. People have used it to optimize video games, understand lottery payoffs, and estimate the costs of childcare. # Gaming :video_game: @@ -3865,7 +3865,7 @@ See also [Terraform](#terraform) * [bacook17/acronym](https://github.com/bacook17/acronym) - ACRONYM (Acronym CReatiON for You and Me) | A python-based tool for creating English-ish Acronyms from your fancy project * [r/personalfinance/tools](https://www.reddit.com/r/personalfinance/wiki/tools) - Personal Finance Tools : Redditor-created Spreadsheets * [lusarz/jira-node-cli](https://github.com/lusarz/jira-node-cli) - JIRA command line interface written in NodeJS -* [Maxime Blondel](https://www.maddyness.com/2018/04/04/100-outils-pour-lancer-sa-startup-sans-developpeur-ni-graphiste-et-presque-sans-argent/) - :fr: [FR] (2019) 100 outils pour lancer sa startup sans développeur ni graphiste (et presque sans argent) +* [Maxime Blondel](https://www.maddyness.com/2018/04/04/100-outils-pour-lancer-sa-startup-sans-developpeur-ni-graphiste-et-presque-sans-argent/) - (2018) :fr: [FR] (2018) 100 outils pour lancer sa startup sans développeur ni graphiste (et presque sans argent) * [Guesstimate](https://www.getguesstimate.com/models) - free models and tools for modeling things that aren't certain. You can forecast your earnings from a new venture, predict the amount of time completing a big project will take, or experiment with scientific theories. People have used it to optimize video games, understand lottery payoffs, and estimate the costs of childcare. # Programming @@ -6320,7 +6320,7 @@ rpm --rebuilddb * [JAMstack](https://jamstack.org/) : noun `’jam-stak’` : Modern web development architecture based on client-side JavaScript, reusable APIs, and prebuilt Markup. | The JAMstack is not about specific technologies. It’s a new way of building websites and apps that delivers better performance, higher security, lower cost of scaling, and a better developer experience. > Tools -* [Maxime Blondel](https://www.maddyness.com/2018/04/04/100-outils-pour-lancer-sa-startup-sans-developpeur-ni-graphiste-et-presque-sans-argent/) - :fr: [FR] (2019) 100 outils pour lancer sa startup sans développeur ni graphiste (et presque sans argent) +* [Maxime Blondel](https://www.maddyness.com/2018/04/04/100-outils-pour-lancer-sa-startup-sans-developpeur-ni-graphiste-et-presque-sans-argent/) - (2018) :fr: [FR] (2018) 100 outils pour lancer sa startup sans développeur ni graphiste (et presque sans argent) # Windows * [NSSM](https://nssm.cc/commands) - the Non-Sucking Service Manager diff --git a/top_extensions.sh b/top_extensions.sh old mode 100644 new mode 100755 diff --git a/top_words.sh b/top_words.sh index 90a7e07..866a82c 100755 --- a/top_words.sh +++ b/top_words.sh @@ -6,25 +6,32 @@ set -o pipefail fetch_top_words() { local url local basedir - + url="${1:-}" basedir=$(dirname "$0") - + + if [[ $(uname -s) == "Darwin" ]]; then + gnubin_dir="/usr/local/opt/grep/libexec/gnubin" + if test -f "$gnubin_dir"; then + brew install grep + fi + export PATH="$gnubin_dir:$PATH" + fi if [[ "${url:-}" = "" ]]; then - grep --only-matching --extended-regexp '[a-zA-Z]{3,}' "$basedir/README.md" \ + \grep --only-matching --extended-regexp '[a-zA-Z]{3,}' "$basedir/README.md" \ | tr '[:upper:]' '[:lower:]' \ - | grep --invert-match --word-regexp --fixed-strings --file=stopwords.txt \ + | \grep --invert-match --word-regexp --fixed-strings --file=stopwords.txt \ | sort \ - | uniq --count \ + | uniq -c \ | sort -n else curl "$url" \ - | grep --only-matching --extended-regexp '[a-zA-Z]{3,}' \ + | \grep --only-matching --extended-regexp '[a-zA-Z]{3,}' \ | tr '[:upper:]' '[:lower:]' \ - | grep --invert-match --word-regexp --fixed-strings --file=stopwords.txt \ + | \grep --invert-match --word-regexp --fixed-strings --file=stopwords.txt \ | sort \ - | uniq --count \ + | uniq -c \ | sort -n fi }