This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
START_TIME=$SECONDS | |
set -e | |
echo "-----START GENERATING HLS STREAM-----" | |
# Usage create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME] | |
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1 | |
# comment/add lines here to control which renditions would be created | |
renditions=( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="message"> | |
<div class="message-item user-name"> | |
MTD | |
</div> | |
<div class="message-item timestamp"> | |
| 11:21:32: | |
</div> | |
<div class="message-item text-message"> | |
Hello how are you |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM quay.io/sclorg/nginx-120-c8s as base | |
FROM base as builder | |
USER root | |
ARG JWT_MODULE_PATH=/usr/local/lib/ngx-http-auth-jwt-module | |
ARG LIBJWT_VERSION=1.13.1 | |
ARG NGINX_VERSION=1.20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
app: | |
image: php:7.2-fpm-alpine | |
restart: unless-stopped | |
volumes: | |
- ./:/var/www/html | |
- ./www.conf:/usr/local/etc/php-fpm.d/www.conf | |
webserver: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
START_TIME=$SECONDS | |
set -e | |
echo "-----START GENERATING HLS STREAM-----" | |
# Usage create-vod-hls-gpu.sh SOURCE_FILE [OUTPUT_NAME] | |
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1 | |
# comment/add lines here to control which renditions would be created | |
renditions=( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { withAuth } from "next-auth/middleware"; | |
export default withAuth( | |
{ | |
pages: { | |
signIn: "/auth/signin", | |
}, | |
callbacks: { | |
authorized: async ({ token }) => { | |
if (!(token as any)?.id_token) return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB_HOST=db | |
DB_PORT=27017 | |
DB_ROOT_USER=root | |
DB_ROOT_PASS=rootpass | |
DB_USER=user | |
DB_PASSWORD=userpass | |
DB_NAME=mydb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "demo-project", | |
"version": "0.0.3", | |
"husky": { | |
"hooks": { | |
"pre-commit": "npm --no-git-tag-version version patch && sh updateSonarProps.sh && git add ." | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
parent.postMessage(location.href, location.origin) | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
parent.postMessage(location.href, location.origin) | |
</script> | |
</body> | |
</html> |
NewerOlder