Skip to content

Instantly share code, notes, and snippets.

View realeroberto's full-sized avatar
💭
Trust your journey.

Roberto Reale realeroberto

💭
Trust your journey.
View GitHub Profile
@realeroberto
realeroberto / pnrr2wordcloud
Created February 10, 2021 23:19
Generates a wordcloud from the most recent version of the Italian National recovery and resilience plan
#!/bin/sh
# pnrr2wordcloud
#
# Generates a wordcloud from the most recent version of the Italian National
# recovery and resilience plan (Piano Nazionale di Ripresa e Resilienza - PNRR)
#
# Author: Roberto Reale <[email protected]>
# Last updated: 2021-02-11
@realeroberto
realeroberto / guardian-by-keyword.sh
Created March 2, 2021 06:29
Download summaries of all Guardian articles for a given keyword
#!/bin/sh
# Download summaries of all Guardian articles for a given keyword
TAG=${1:-covid}
APIKEY=test
APIROOT=https://content.guardianapis.com
# LOOP 1: get all tags containing $TAG
@realeroberto
realeroberto / gist:69a484740ce66f494aa4ecf991df5ec3
Created May 6, 2021 19:23
Remove unnecessary executable bit from a Git repository
# the order of the two statements is crucial (of course)
find \( -path ./.git -prune -false -o -executable \) -a -type f -exec git update-index --chmod=-x {} \;
find \( -path ./.git -prune -false -o -executable \) -a -type f -exec chmod -x \{} \;