Here are the steps to install a specific OpenJDK version in a local directory.
First find the Java version that you need by going here: https://jdk.java.net/archive
This snippet will download version 17
cd $HOMEHere are the steps to install a specific OpenJDK version in a local directory.
First find the Java version that you need by going here: https://jdk.java.net/archive
This snippet will download version 17
cd $HOME| # purpose: using the find utility to find files after a given modification time. | |
| # This list could then be used to construct and rysync `--inclue-files-from` list. | |
| find -mindepth 5 -type d -newermt 2023-09-14 -exec echo "{}" \; > ~/data_list_09142023_07242024.txt | |
| # e.g. | |
| # | |
| # rsync -apuv --progress --include-from=rsync_include.txt user@host:/data_path/ data_path/ | |
| # note --include-from vs --files-from functionality |
| pip install jupyterlab-quarto | |
| sudo -E mamba install quarto | |
| sudo -E mamba install r-quarto | |
| # quarto executable has issues finding several dendencies. | |
| # We need to either add these to the environment or edit the quarto script and add these at the top | |
| #!/bin/bash | |
| export QUARTO_SHARE_PATH=/opt/tljh/user/share/quarto |
| # There are resources | |
| # https://www.arin.net/resources/registry/whois/rdap/ | |
| # + | |
| # There are several ways to getting the CIDR that one IP belongs to. | |
| # A quick way is by using whois for a given a IP. # The CIRD will be on the record: | |
| # For example for IP Address 8.8.8.1: | |
| # whois 8.8.8.1 | |
| # ... LINES OMITTED ... |
| #!/usr/bin/env bash | |
| # simple command to run the speedtest-cli using docker | |
| # it will sleep for 3 secs before starting the test | |
| docker run --rm -it ubuntu /bin/bash -c "apt update && apt install -y speedtest-cli && sleep 3 && speedtest-cli" |
| import requests | |
| import sys | |
| script_name = sys.argv[0] | |
| USAGE = f'''Lists package dependencies for a pip package without downloading it. | |
| Usage: | |
| {script_name} package_name (or package_name==version) | |
| e.g. | |
| To print all versions and depenencies of a given package. | |
| {script_name} pandas |