Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
| // Load variables from `.env` as soon as possible | |
| require('dotenv').config({ | |
| path: `.env.${process.env.NODE_ENV || 'development'}` | |
| }) | |
| const clientConfig = require('./client-config') | |
| const isProd = process.env.NODE_ENV === 'production' | |
| // Portable Text Serialization | |
| const PortableText = require("@sanity/block-content-to-html") |
I hereby claim:
To claim this, I am signing this object:
| [ | |
| { | |
| "code": "AAA", | |
| "lat": "-17.3595", | |
| "lon": "-145.494", | |
| "name": "Anaa Airport", | |
| "city": "Anaa", | |
| "state": "Tuamotu-Gambier", | |
| "country": "French Polynesia", |
| const execa = require('execa') | |
| const Listr = require('listr') | |
| const PROD_APP_NAME = '<replace with: heroku name of prod app>' | |
| const STAGING_APP_NAME = '<replace with: heroku name of staging app>' | |
| const tasks = new Listr([ | |
| { | |
| title: 'setup git remote - staging', | |
| task: () => |
| var crypto = require('crypto'); | |
| // larger numbers mean better security, less | |
| var config = { | |
| // size of the generated hash | |
| hashBytes: 32, | |
| // larger salt means hashed passwords are more resistant to rainbow table, but | |
| // you get diminishing returns pretty fast | |
| saltBytes: 16, | |
| // more iterations means an attacker has to take longer to brute force an |
| const obj = {} | |
| function doSomething () { | |
| return new Promise((resolve, reject) => { | |
| obj.create({ | |
| name: 'Dylan', | |
| username: 'dylan', | |
| photo: 'avatarurl.com', | |
| email: '[email protected]' | |
| }, |
| 'use strict' | |
| const express = require('express') | |
| const app = express() | |
| const http = require('http') | |
| const server = http.createServer(app).listen(9000, () => { | |
| console.log('debug', 'express started process:', process.pid) | |
| app.get('/test-1', (req, res, next) => { |