πͺ
This file contains hidden or 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
| /** | |
| * | |
| * - TαΊ£i chunk ΔαΊ§u tiΓͺn, Δα»c header Content-Range tα»« server Δα» biαΊΏt tα»ng dung lượng | |
| * - Sau ΔΓ³ tαΊ£i tiαΊΏp cΓ‘c chunk cΓ²n lαΊ‘i (nαΊΏu cΓ³) | |
| * - Cuα»i cΓΉng nα»i lαΊ‘i thΓ nh 1 file video hoΓ n chα»nh | |
| * | |
| * YΓͺu cαΊ§u: Node.js >= 18 (vΓ¬ dΓΉng fetch) | |
| */ | |
| import fs from "fs"; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Smooth Video Progress Bar</title> | |
| <style> | |
| body { | |
| font-family: sans-serif; | |
| padding: 20px; | |
| background: #f8f8f8; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 KcAdminClient from "@keycloak/keycloak-admin-client"; | |
| const kcAdminClient = new KcAdminClient({ | |
| baseUrl: "http://localhost:8080", | |
| realmName: "myrealm", | |
| }); | |
| const credentials = { | |
| grantType: "password", | |
| username: "superuser", |
This file contains hidden or 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
| { | |
| "projects": { | |
| "ngx-introjs": { | |
| "architect": { | |
| "build": { | |
| "options": { | |
| "styles": [ | |
| "node_modules/intro.js/introjs.css" | |
| ], | |
| "scripts": [ |
This file contains hidden or 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 argparse | |
| from ws4py.client.threadedclient import WebSocketClient | |
| import time | |
| import threading | |
| import sys | |
| import urllib.parse | |
| import queue | |
| import json | |
| import time | |
| import os |
This file contains hidden or 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 ." | |
| } | |
| } | |
| } |
NewerOlder