Creating the NFS Volume:
$ docker volume create --driver local \
--opt type=nfs \
--opt o=addr=192.168.1.115,uid=1000,gid=1000,rw \
--opt device=:/mnt/volumes/mysql-test \
mysql-test-1
# To extract the sound from a video and save it as MP3: | |
ffmpeg -i <video.mp4> -vn <sound>.mp3 | |
# To convert frames from a video or GIF into individual numbered images: | |
ffmpeg -i <video.mpg|video.gif> <frame_%d.png> | |
# To combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF: | |
ffmpeg -i <frame_%d.jpg> -f image2 <video.mpg|video.gif> | |
# To quickly extract a single frame from a video at time mm:ss and save it as a 128x128 resolution image: |
frontend api_gateway | |
bind :443 ssl crt /etc/hapee-1.8/certs/cert.pem | |
acl PATH_cart path_beg -i /cart | |
acl PATH_catalog path_beg -i /catalog | |
use_backend be_cart if PATH_cart | |
use_backend be_catalog if PATH_catalog | |
backend be_cart | |
server s1 10.0.0.3:80 |
import spacy | |
################### Train Spacy NER.########### | |
def train_spacy(): | |
TRAIN_DATA = convert_dataturks_to_spacy("dataturks_downloaded.json"); | |
nlp = spacy.blank('en') # create blank Language class | |
# create the built-in pipeline components and add them to the pipeline | |
# nlp.create_pipe works for built-ins that are registered with spaCy | |
if 'ner' not in nlp.pipe_names: | |
ner = nlp.create_pipe('ner') | |
nlp.add_pipe(ner, last=True) |
package demo.plain; | |
import org.keycloak.OAuth2Constants; | |
import org.keycloak.admin.client.CreatedResponseUtil; | |
import org.keycloak.admin.client.Keycloak; | |
import org.keycloak.admin.client.KeycloakBuilder; | |
import org.keycloak.admin.client.resource.RealmResource; | |
import org.keycloak.admin.client.resource.UserResource; | |
import org.keycloak.admin.client.resource.UsersResource; | |
import org.keycloak.representations.idm.ClientRepresentation; |
import tkinter | |
import winsound | |
import time | |
import math | |
def countdown(count): | |
seconds=math.floor(count%60) |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>io.github.rodrik</groupId> | |
<artifactId>spring-boot-was</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<properties> | |
<java.version>1.6</java.version> | |
</properties> |
var gulp = require('gulp'); | |
var clean = require('gulp-clean'); | |
var rename = require("gulp-rename"); | |
var spawn = require('child_process').spawn; | |
gulp.task('clean-dist', function () { | |
return gulp.src('dist/', { read: false }) | |
.pipe(clean()); | |
}); |
FROM debian:jessie | |
ENV USER=boatswain USER_ID=1000 USER_GID=1000 | |
# now creating user | |
RUN groupadd --gid "${USER_GID}" "${USER}" && \ | |
useradd \ | |
--uid ${USER_ID} \ | |
--gid ${USER_GID} \ | |
--create-home \ |