Skip to content

Instantly share code, notes, and snippets.

@jmansour
jmansour / demo.ipynb
Last active August 12, 2019 23:31
UW28 blog post demo2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmansour
jmansour / slcn_supg.ipynb
Last active August 16, 2019 10:40 — forked from julesghub/slcn_supg.ipynb
The rotating cone problem SLCN vs SUPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmansour
jmansour / get_tags.sh
Created October 23, 2019 10:45
Shell script to get all image digests from a DockerHub registry
#!/bin/bash
# based on https://stackoverflow.com/questions/41808763/how-to-determine-the-docker-image-id-for-a-tag-via-docker-hub-api/41830007#41830007
REPOSITORY="underworldcode/underworld2"
# TARGET_TAG=$2
# get authorization token
TOKEN=$(curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:$REPOSITORY:pull" | jq -r .token)
# find all tags
@jmansour
jmansour / Dockerfile
Last active November 20, 2019 02:18
ALA type basic setup
FROM underworldcode/underworld2:2.8.1b
COPY --chown=jovyan:users rt_ala.ipynb /home/jovyan
RUN chmod ugo+rwx /home/jovyan/rt_ala.ipynb
@jmansour
jmansour / Dockerfile
Created November 27, 2019 00:56
pras_demo
FROM underworldcode/underworld2:2.7.1b
COPY demo.ipynb $NB_WORK