diff --git a/BIOL3515/template/before.sh.erb~ b/BIOL3515/template/before.sh.erb~ deleted file mode 100755 index fd8bf0b..0000000 --- a/BIOL3515/template/before.sh.erb~ +++ /dev/null @@ -1,39 +0,0 @@ -# Export the module function if it exists -[[ $(type -t module) == "function" ]] && export -f module - -# Find available port to run server on -port=$(find_port ${host}) - -# Generate SHA1 encrypted password (requires OpenSSL installed) -SALT="$(create_passwd 16)" -password="$(create_passwd 16)" -PASSWORD_SHA1="$(echo -n "${password}${SALT}" | openssl dgst -sha1 | awk '{print $NF}')" - -# Notebook root directory -export NOTEBOOK_ROOT="${NOTEBOOK_ROOT:-${HOME}}" - -# The `$CONFIG_FILE` environment variable is exported as it is used in the main -# `script.sh.erb` file when launching the Jupyter Notebook server. -export CONFIG_FILE="${PWD}/config.py" - -# Generate Jupyter configuration file with secure file permissions -( -umask 077 -cat > "${CONFIG_FILE}" << EOL -c.JupyterApp.config_file_name = 'ondemand_config' -#c.NotebookApp.ip = '*' -c.NotebookApp.ip = 'localhost' -c.NotebookApp.port = ${port} -c.NotebookApp.port_retries = 0 -c.NotebookApp.password = u'sha1:${SALT}:${PASSWORD_SHA1}' -c.NotebookApp.base_url = '/node/${host}/${port}/' -c.NotebookApp.open_browser = False -c.NotebookApp.allow_origin = '*' -c.NotebookApp.notebook_dir = '${HOME}' -c.NotebookApp.disable_check_xsrf = True -#c.NotebookApp.nbserver_extensions = {"jupyterlmod": True} -EOL -) -#c.NotebookApp.notebook_dir = '${NOTEBOOK_ROOT}' -# this causes python not to appear as a choice in the notebook -#c.KernelSpecManager.ensure_native_kernel = False