Originally posted by @ajdruff at docker-library/wordpress#46 (comment)
-
expose port 443 by adding the following to your compose file:
ports: - "443:443" -
restart your container (be sure your db and web files are on persistent storage!)
| create temp function ndcg(rels array<int64>, k int64) returns float64 as ( | |
| ( | |
| with gain as ( | |
| select | |
| (pow(2, rel) - 1) / log(i + 2) as g, | |
| (pow(2, rel_sorted) - 1) / log(i + 2) as g_ideal | |
| from | |
| unnest(rels) as rel with offset as i | |
| left join unnest(( | |
| select |
| pdftoppm -png -r 300 "whatever.pdf" "directory/filenameprefix" |
| pip3 list --outdated | awk '{print $1}' | tail -n +3 | xargs pip3 install -U |
| // Cognitive Service containers don't currently handle Cross-origin resource sharing (CORS) headers. This means that for user agents | |
| // that enforce CORS (browsers, typically), requests will fail. The following code is an example of how you might work around this, | |
| // temporarily, until the containers are fixed. This code is provided as-is, with no guarantees. | |
| // | |
| // The following is a modified version of code found here: https://github.com/ccoenraets/cors-proxy. | |
| var express = require('express'), | |
| request = require('request'), | |
| bodyParser = require('body-parser'), | |
| app = express(); |
| FROM openjdk:8u151-jre-alpine | |
| ENV SCALA_VERSION=2.12.4 \ | |
| SCALA_HOME=/usr/share/scala | |
| # NOTE: bash is used by scala/scalac scripts, and it cannot be easily replaced with ash. | |
| RUN apk add --no-cache --virtual=.build-dependencies wget ca-certificates && \ | |
| apk add --no-cache bash curl jq && \ | |
| cd "/tmp" && \ | |
| wget --no-verbose "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \ |
Originally posted by @ajdruff at docker-library/wordpress#46 (comment)
expose port 443 by adding the following to your compose file:
ports:
- "443:443"
restart your container (be sure your db and web files are on persistent storage!)
| // ==UserScript== | |
| // @name YouTube Speech Audio Filter | |
| // @namespace NONE | |
| // @version 1.0 | |
| // @description I wrote this because of background noise in Rachel Thomas's Computational Linear Algebra series, but it probably could be used elsewhere. | |
| // @author August Karlstedt | |
| // @match https://www.youtube.com/watch?v=* | |
| // @grant none | |
| // @run-at document-end | |
| // ==/UserScript== |