Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
WFH-ing, but for GitLab.

Katrin Leinweber katrinleinweber

🏠
WFH-ing, but for GitLab.
View GitHub Profile
@katrinleinweber
katrinleinweber / clone-rm-dx-from-doi.sh
Last active September 17, 2018 08:26
Semi-automatically update dx.doi.org links on GitHub to https://doi.org
View clone-rm-dx-from-doi.sh
#!/usr/bin/env bash
# Semi-automatically update dx.doi.org links on GitHub to https://doi.org.
#
# Usage:
# 1. Copy this gist into a local folder of yours (e.g. ~/forks/).
# 2. Make it executable with `chmod +x ~/path/to/clone-rm-dx.sh`
# 3. Install the gfork Node.js package and its dependencies.
# 4. Find target repos on https://github.com/search?o=desc&q=dx.doi&s=indexed&type=Code&utf8=%E2%9C%93
# 5. Insepct the code: can `dx.doi.org` be savely updated? Inspect tests,