https://stackoverflow.com/questions/18215389/how-do-i-measure-request-and-response-times-at-once-using-curl
cat > ~/lib/curl/curl-format.detailed.txt
num_redirects: %{num_redirects}\n
num_connects: %{num_connects}\n
cat > ~/lib/curl/curl-format.detailed.txt
num_redirects: %{num_redirects}\n
num_connects: %{num_connects}\n
By following these steps you should have password less access to your remote hosts and networks via ssh and sshuttle.
Replace user with the your [user]. Put the relevant sections with configuration specific to your use case.
sshuttle --sudoers
After a lot of trial and error this is the basic working configuration I have found
hub:
config:
# https://zero-to-jupyterhub.readthedocs.io/en/latest/administrator/authentication.html#id1
# https://dex.somedomain.net/.well-known/openid-configuration
GenericOAuthenticator:
client_id: JupyterHub-auth
# I am only showing the relavant sections that worked for me | |
# Install additional packages and do any other bootstrap configuration in this script | |
# For production clusters it's recommended to build own image with this step done in CI | |
bootstrapScript: | | |
#!/bin/bash | |
rm -rf /var/lib/apt/lists/* && \ | |
pip install \ | |
psycopg2==2.8.5 \ | |
redis==3.2.1 \ |
#!/bin/bash | |
# read from stdin | |
while read line | |
do | |
echo "$line" | |
done < "${1:-/dev/stdin}" | |
# read from file | |
while read line |