Skip to content

Instantly share code, notes, and snippets.

@jmansour
jmansour / Dockerfile
Created November 27, 2019 00:56
pras_demo
FROM underworldcode/underworld2:2.7.1b
COPY demo.ipynb $NB_WORK
@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 / 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 / slcn_supg.ipynb
Last active August 16, 2019 10:40 — forked from julesghub/slcn_supg.ipynb
The rotating cone problem SLCN vs SUPG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmansour
jmansour / demo.ipynb
Last active August 12, 2019 23:31
UW28 blog post demo2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmansour
jmansour / demo.ipynb
Created August 9, 2019 04:54
UW28 blog post demo1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmansour
jmansour / Dockerfile
Last active December 3, 2019 02:11
UW28 blog post dockerfile
FROM underworldcode/underworld2:2.8.1b
RUN git clone https://gist.github.com/jmansour/44de4b2e091f2235289e23785bcc3809 demo1
RUN git clone https://gist.github.com/jmansour/d2207371b0a0fc7ed26a7ca720ad8c6f demo2
RUN git clone https://gist.github.com/julesghub/cceef885ff00694edb8f217130dd211b demo3
FROM underworldcode/underworld2:2.7.1b
COPY dual_system.ipynb $NB_WORK
##~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~##
## ##
## This file forms part of the Underworld geophysics modelling application. ##
## ##
## For full license and copyright information, please refer to the LICENSE.md file ##
## located at the project root, or contact the authors. ##
## ##
##~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~##
import underworld as uw
import underworld._stgermain as _stgermain
@jmansour
jmansour / Jupyter kernel via containerised Python environment
Last active March 12, 2019 00:00
Jupyter kernel via containerised Python environment
Empty file just for gist title