Skip to content

Instantly share code, notes, and snippets.

View Guillawme's full-sized avatar
💭
I may be slow to respond (days).

Guillaume Gaullier Guillawme

💭
I may be slow to respond (days).
View GitHub Profile
@Guillawme
Guillawme / script-template.sh
Created December 16, 2020 10:12 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@Guillawme
Guillawme / get_all_chimerax-users.sh
Last active September 23, 2022 11:08 — forked from DustinMorado/get_all_3dem.sh
Download all chimerax-users mailing list archives
#!/usr/bin/env bash
if [[ ! -d chimerax-users ]]
then
mkdir chimerax-users
fi
cd chimerax-users
curl -s https://www.rbvi.ucsf.edu/pipermail/chimerax-users/ |\