running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
# KEYCLOAK BASE URL | |
KEYCLOAK_BASE_URL= | |
# KEYCLOAK CLIENT SECRET | |
KEYCLOAK_CLIENT_SECRET= | |
# KEYCLOAK CLIENT ID | |
KEYCLOAK_CLIENT_ID= | |
# BASE URL FOR NEXT AUTH |
#import <React/RCTViewManager.h> | |
@interface RCT_EXTERN_MODULE(CounterManager, RCTViewManager) | |
RCT_EXPORT_VIEW_PROPERTY(value, NSNumber) | |
RCT_EXPORT_VIEW_PROPERTY(leftButtonText, NSString) | |
RCT_EXPORT_VIEW_PROPERTY(rightButtonText, NSString) | |
RCT_EXPORT_VIEW_PROPERTY(onPressLeftButton, RCTDirectEventBlock) | |
RCT_EXPORT_VIEW_PROPERTY(onPressRightButton, RCTDirectEventBlock) |
name: keycloak | |
version: 0.1.0 | |
patches: | |
common-env-features: | | |
"ENABLE_THIRD_PARTY_AUTH": true | |
openedx-lms-common-settings: | | |
SOCIAL_AUTH_KEYCLOAK_KEY = 'educasual' | |
SOCIAL_AUTH_KEYCLOAK_SECRET = '7c81d36a-bec9-4833-931c-64baab674283' | |
SOCIAL_AUTH_KEYCLOAK_PUBLIC_KEY = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjyq0SjRVvMaoHDeB4AcyBmWNNLe36ibopb/8cgXwPIPtphX50MepMK5Xmne1euS6I8ZWPGJl3DNtK215AMUKoy87BSJX5o26RQx8d0M+WTvnw6EVLaskeJSiXu4WkYka2Ou+cc6mkyMMtDnkFybbjFFFdMOkDPSyCMEfakHH2b/es+6KBkIC+yqmigDy/S26rsVX5A7kFUP7QUGBPJqwOVQjyd9JaebQlxwN300NlWme2wZrypXOxWraPmpMsWlZVEtniqO+gtOT+ko41VQospwrsJSfSX05ch25WNIsDhOPNhfYOpdFDviHEiXMjtMm+XTLr0qfzVDdYEyJnmG7XwIDAQAB' | |
SOCIAL_AUTH_KEYCLOAK_AUTHORIZATION_URL = 'http://keycloak.nubidus.com/auth/realms/openedx/protocol/openid-connect/auth' |
FROM node:12 | |
WORKDIR /app | |
COPY ./package*.json ./ | |
RUN npm install | |
ENV PORT=4000 | |
COPY . . | |
CMD ["npm","run","start"] |
import Vue from 'vue' | |
import axios from 'axios' | |
import store from '../store' | |
import { TokenService } from '../services/storage.service' | |
// Full config: https://github.com/axios/axios#request-config | |
let config = { | |
baseURL: | |
process.env.baseURL || |
1. Take a backup of docker.service file. | |
$ cp /lib/systemd/system/docker.service /lib/systemd/system/docker.service.orig | |
2. Modify /lib/systemd/system/docker.service to tell docker to use our own directory | |
instead of default /var/lib/docker. In this example, I am using /p/var/lib/docker | |
Apply below patch. | |
$ diff -uP -N /lib/systemd/system/docker.service.orig /lib/systemd/system/docker.service | |
--- /lib/systemd/system/docker.service.orig 2018-12-05 21:24:20.544852391 -0800 |
#!/usr/bin/env bash | |
#title : updateSonarProps.sh | |
#description : | |
# This script parses the project's name and version from its package.json and automagically | |
# updates the version and package name in the SonarQube configuration properties file. | |
# It can be used as a pre step before running the sonar-scanner command | |
# It also creates a backup of the props file with suffix *.bak | |
#prerequisites : NodeJS based project with package.json, sonar*.properties file in the cwd | |
#author : Christian-André Giehl <[email protected]> | |
#date : 20180220 |
upload(files) { | |
const config = { | |
onUploadProgress: function(progressEvent) { | |
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
console.log(percentCompleted) | |
} | |
} | |
let data = new FormData() | |
data.append('file', files[0]) |
# Author: Zameer Ansari | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls | |
# http://wiki.nginx.org/QuickStart | |
# http://wiki.nginx.org/Configuration | |
# | |
# Generally, you will want to move this file somewhere, and start with a clean | |
# file but keep this around for reference. Or just disable in sites-enabled. | |
# |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8