Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View katrinleinweber's full-sized avatar
🏠
WFH-ing, but for GitLab.

Katrin Leinweber katrinleinweber

🏠
WFH-ing, but for GitLab.
View GitHub Profile
#!/usr/bin/env bash
# Forked from https://gist.github.com/patrickt010/1a5ce16a7fe33e97a0ab
if [ $# -ne 4 -a $# -ne 5 ]
then
echo "Usage: generatefiles <depth> <num of folders per depth> <num of files per folder> <min size of file> [<max size of file>]"
exit -1
fi
@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
#!/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,