Last active
February 12, 2022 21:02
-
-
Save mariushoch/b44bf04146d507e3f8e2881872e01e9a to your computer and use it in GitHub Desktop.
Check the Wikidata Lexeme JSON dumps each Thursday
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
cd "$HOME/wikibase-validate-dump" | |
export https_proxy=http://webproxy:8080 | |
git fetch | |
if [[ ! "$(git log HEAD..origin/master)" == "" ]]; then | |
echo "New commits, please rebase:" | |
git log --format=oneline HEAD..origin/master | |
fi | |
echo | |
echo | |
dumpDate="$(date --date 'last Wednesday' +"%Y%m%d")" | |
php validateJsonDump.php compress.zlib:///mnt/data/xmldatadumps/public/other/wikibase/wikidatawiki/"$dumpDate"/wikidata-"$dumpDate"-lexemes.json.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[email protected] | |
30 10 * * 4 nice -n19 bash $HOME/bin/check-lexeme-json-dumps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment