Skip to content

Instantly share code, notes, and snippets.

# Initialize helm
helm init --client-only
# Generate unique token:
openssl rand -hex 32
# Get host name at https://nsupdate.fedcloud.eu/
@enolfc
enolfc / notebooks-aai.yaml
Last active May 6, 2019 10:31
Notebooks + AAI
proxy:
secretToken: "<the secret>"
service:
type: NodePort
ingress:
enabled: true
annotations:
kubernetes.io/tls-acme: "true"
hosts: [<your host>.fedcloud-tf.fedcloud.eu]
@enolfc
enolfc / notebooks.yaml
Created May 6, 2019 10:15
Basic configuration
proxy:
secretToken: "<some secret>"
service:
type: NodePort
ingress:
enabled: true
annotations:
kubernetes.io/tls-acme: "true"
hosts: [<your host>.fedcloud-tf.fedcloud.eu]
@enolfc
enolfc / DemoNotebook.ipynb
Last active May 3, 2019 06:32
demonotebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@enolfc
enolfc / wps.py
Last active June 21, 2018 11:45
Sample call to DataMiner using WPS
import os
import logging
# initialize logging, otherwise you'll not see debug output.
logging.basicConfig()
logging.getLogger().setLevel(logging.INFO)
from owslib.wps import WebProcessingService, ComplexDataInput, monitorExecution
dataminer_url = 'http://dataminer.garr.d4science.org/wps/WebProcessingService'
@enolfc
enolfc / voms-setup.sh
Last active April 18, 2017 12:58
ELIXIR VO setup on macOS (system wide)
#!/bin/bash
# Global setup of voms for ELIXIR VO
brew install fetch-crl voms
# Trust anchors
sudo mkdir -p /etc/grid-security/certificates
# CAs to download: Classic and IOTA (RCAuth)
@enolfc
enolfc / voms-setup.sh
Created April 18, 2017 12:53
ELIXIR VO setup on macOS
#!/bin/bash
# Configure vo.elixir-europe.org on macos into your $HOME directory
# use voms-proxy-init with --vomsdir $HOME/.voms/vomsdir and --certdir $HOME/.voms/certificates
brew install fetch-crl voms
BASE_DIR=$HOME/.voms
# Trust anchors
@enolfc
enolfc / voms_verify.py
Created December 30, 2015 23:20
voms + pyopenssl
import os
from OpenSSL import crypto
os.environ["OPENSSL_ALLOW_PROXY_CERTS"] = "1"
cert = crypto.load_certificate(crypto.FILETYPE_PEM, cert)
store = crypto.X509Store()
chain = crypto.load_certificate(crypto.FILETYPE_PEM, chain)
@enolfc
enolfc / disk.py
Created October 30, 2015 11:12
Get OVF disk
from six.moves.urllib import parse
from lxml import etree
SPECS = {
'http://www.vmware.com/interfaces/specifications/vmdk.html': 'vmdk',
'https://people.gnome.org/~markmc/qcow-image-format.html': 'qcow',
}