This file contains 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
#!/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 |
This file contains 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
#!/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, |