https://www.ksoftware.net/code-signing-certificates/ $84 one year, OV certificate big price difference? can this be trusted? why so much cheaper?
https://www.digicert.com/order/order-1.php $499 valid for one year
| FROM ubuntu:focal | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update -y && apt-get upgrade -y | |
| RUN apt-get -y install python3 python3-pip default-jre-headless | |
| RUN pip3 install transcrypt==3.9.0 htmltree==0.7.6 | |
| RUN mkdir /out | |
| WORKDIR /out |
| FROM node:10 as build | |
| WORKDIR /usr/src | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . ./ | |
| RUN npm run build | |
| FROM python:3.7.9-alpine | |
| COPY requirements.txt requirements.txt | |
| RUN pip install -r requirements.txt |
| FROM prom/prometheus | |
| ADD prometheus.yml /etc/prometheus/ |
| from visidata import Column, TableSheet | |
| def open_dmp(p): | |
| return TextBaseSheet(p.name, source=p) | |
| class TextBaseSheet(TableSheet): | |
| rowtype = "records" # rowdef: a list, of collections.OrderedDict objects |
https://www.ksoftware.net/code-signing-certificates/ $84 one year, OV certificate big price difference? can this be trusted? why so much cheaper?
https://www.digicert.com/order/order-1.php $499 valid for one year
| # Make sure you have the rdflib and rdflib-jsonld libraries installed | |
| # This gist is the Pythn equivalent of Mark's repo from here: https://github.com/mightymax/ndjson2ttl | |
| # As referenced in this tweet: https://twitter.com/markuitheiloo/status/1355252255327449090 | |
| import sys | |
| from rdflib import Graph | |
| for line in open(sys.argv[1]): | |
| g = Graph().parse(data=line, format="json-ld") | |
| print(g.serialize(format="n3").decode("utf8")) |
| import json | |
| import gzip | |
| import os | |
| from progress.bar import Bar | |
| # Scan the Crossref data dump as mentioned in : https://twitter.com/CrossrefOrg/status/1250146935861886976 | |
| # And parse out the publishers names, so you know where in the giant dump your own data can be found | |
| # Note this script uses the progress library, so before running do a "pip install progress" | |
| filenames = [filename for filename in os.listdir('.') if filename.endswith('.json.gz')] |
Now that we have moved to a mostly Docker-based infrastructure, one of the tricky things is to try and debug things when there is something pear-shaped. It used to be possible to just SSH into the machine with a local port-forward, and then for example access the Elasticsearch server via a handy browser extension to do debugging.
But what to do if your container is running in a Docker Swarm and has no ports forwarded by default? (which is the right thing to do, keep it simple and closed...) Thanks to stirling help from https://github.com/eelkevdbos here is the solution, and I am writing it up here so I can remember it in future, cause I sure am gonna forget the details...
First thing, create a new docker overlay network that you can use for getting to the container in question:
docker network create foobar
| import os | |
| import sys | |
| if __name__ == '__main__': | |
| dzifile = sys.argv[1] | |
| for dirpath, dirnames, filenames in os.walk('.'): | |
| for filename in filenames: | |
| print(os.path.join(dirpath, filename)) |
| #!/usr/bin/env python | |
| u = """Link all files from a directory and its descendants into a specified destination directory. | |
| This 'flattens' the source dir into the destination dir | |
| Usage: %s source_dir destination_dir | |
| """ | |
| import os | |
| import sys | |
| from progress.bar import Bar |