- On the 240 day of Hacktoberfest my expressive spoon gave to me, ... 240 pencils
- On the 129 day of Hacktoberfest my persnickety pumpkin gave to me, ... 129 yugioh card shapesnatch
- On the 128 day of October my expensive general gave to me, ... 128 dumplings
- On the 40 day of October my purple sundae gave to me, ... 40 macdonald peasant burguer
- On the 28 day of Halloween my conspicuous taco gave to me, ... 28 white bread
- On the 26 day of October my scruptious toaster gave to me, ... 26 jet puffed marshmallows
- On the 24 day of Hacktoberfest my reclusive frito gave to me, ... 24 nike socks
- On the 23 day of Hall
import hashlib | |
filename = '/home/vanessa/.singularity/shub/vanessa-marshmallow-latest@8dc77d81e1775986b89f042112c5ee81.sif' | |
for algorithm in hashlib.algorithms_guaranteed: | |
hasher = getattr(hashlib, algorithm)() | |
with open(filename, "rb") as f: | |
for chunk in iter(lambda: f.read(4096), b""): | |
hasher.update(chunk) | |
try: | |
print("%s: %s" %(algorithm, hasher.hexdigest())) | |
except: |
#!/bin/bash | |
# Before you run this script, pull your container somewhere, and then provide | |
# the full path as an argument to this script | |
# If your $HOME is small, export to where you have more space like scratch | |
# export SINGULARITY_CACHEDIR=$SCRATCH/.singularity | |
# singularity pull --name antismash-standalone-4.2.0.sif docker://antismash/standalone:4.2.0 | |
# Then provide the full container path as the last argument. | |
set -o errexit |
# Define the registry base, the container URI, and the tag | |
REGISTRY=https://singularityhub.github.io/registry-org | |
CONTAINER=singularityhub/centos | |
TAG=latest | |
# Use curl and jq to parse the manifest and obtain the download link | |
STORAGE=$(curl "${REGISTRY}/${CONTAINER}/manifests/${TAG}/" | jq --raw-output '.layers [] .urls []') | |
DIGEST=$(curl "${REGISTRY}/${CONTAINER}/manifests/${TAG}/" | jq --raw-output '.layers [] .digest') | |
# Use Singularity to pull (here I'm using the Dockerized version, note it's pulling to $PWD) |
## The following shows some debugging output when Google nameservers are added to /etc/resolv.conf (8.8.8.8 and 8.8.4.4) | |
################################################################# | |
$ whois singularity-hub.org | |
Domain Name: SINGULARITY-HUB.ORG | |
Registry Domain ID: D402200000000429751-LROR | |
Registrar WHOIS Server: whois.google.com | |
Registrar URL: http://domains.google.com | |
Updated Date: 2019-01-14T16:27:45Z |
import sys | |
import tarfile | |
input_tar = sys.argv[1] | |
# If input tar is not found, do not proceed | |
if not os.path.exists(input_tar): | |
print('Cannot find %s!' % input_tar) | |
sys.exit(1) |
import sys | |
import tarfile | |
input_tar = sys.argv[1] | |
tar = tarfile.open(input_tar, 'r') | |
for member in tar: | |
print("Extracting %s" % member.name) | |
subtar = tarfile.open(mode='r|gz', fileobj=tar.extractfile(member)) | |
for submember in subtar: |
import tarfile | |
import tempfile | |
import stat | |
import os | |
tar_file = "input.tar.gz" | |
tar = tarfile.open(tar_file, "r:gz") | |
members = tar.getmembers() | |
file_permission = stat.S_IRUSR | stat.S_IWUSR |
It's hard to not notice that training in computer science has been streamlined to primarily fill industry-level engineering jobs. In this respect, a degree from a top university in computer science is a lucrative choice for a young person to make. The path, and resulting enterprise tools that result from this pipeline are impressive - advances in machine learning, GPUs, and mobile technologies that are changing the world. However, in this overwhelming positivity, it's easy to look over the empty space, or specifically, to ask where those same graduates aren't going.
As a research software engineer, I came out of traditional academia, and first hand
The user issue was asking how to work with notebooks that are on the host. This is the response, associated with this release
Let's just make sure we are working from the same thing. Make sure your forward repository is up to date with the latest on Github, and that you have run setup.sh so that there is a CONTAINERSHARE
and RESOURCE
variable in your params.sh
USERNAME="vsochat"
PORT="43453"
PARTITION="russpold"