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
http://stackoverflow.com/questions/12168452/long-lasting-fb-access-token-for-server-to-pull-fb-page-info/21927690#21927690 | |
Having found that it is possible to generate a Facebook Page Access Token that does not expire (with help from @Igy), here is a clear, step-by-step quide for all those looking to the same: | |
1. Make sure you are the admin of the FB page you wish to pull info from | |
2. Create a FB App (should be with the same user account that is the page admin) | |
3. Head over to the Facebook Graph API Explorer | |
4. On the top right, select the FB App you created from the "Application" drop down list | |
5. Click "Get Access Token" | |
6. Make sure you add the manage_pages permission |
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
const EventEmitter = require("events"); | |
function net() { | |
this.emitEvent = this.emitEvent.bind(this); | |
this.onConnection = this.onConnection.bind(this); | |
} | |
net.prototype = EventEmitter.prototype; | |
net.prototype.createServer = function(cb) { |
``` | |
import Notification from "../../models/Notifications"; | |
const eventNames = require("./eventNames"); | |
const userManager = require("./userManager"); | |
const notificationEvent = async ( | |
io, | |
socket, | |
userId, | |
notification = { name: "test" } |
for (var i = 0; i < 1024 * 1024; i++) { | |
process.nextTick(function () { Math.sqrt(i) } ) | |
} |
import AWS from "aws-sdk"; | |
import { v2 as cloudinary } from "cloudinary"; | |
import crypto from "crypto"; | |
import fs from "fs"; | |
import Jimp from "jimp"; | |
import path from "path"; | |
import gifsicle from "gifsicle"; | |
import { execFile } from "child_process"; | |
import sizeOf from "image-size"; | |
import Settings from "../models/settings"; |
const resursaModel = require('../../models/resursa-red'); | |
const competenteS = require('../../models/competenta-specifica'); | |
module.exports = (params) => { | |
return resursaModel.find({_id: params.idres}).populate({ | |
path: 'competenteS' | |
}).exec().then( (resursa) => { | |
// console.log(resursa); | |
if (resursa[0].content) { | |
let articleHTML = ''; | |
resursa[0].content.blocks.map(obj => { |
@extends('admin.layouts.app') | |
@section('content') | |
<div class="container-fluid" id="menu-app" data-id="{{$row->id ?? ''}}" v-cloak> | |
<div class="d-flex justify-content-between mb20"> | |
<h1 class="title-bar"> | |
@if(!empty($row->id)) | |
{{__("Edit Menu:")}} @{{name}} | |
@else | |
{{__('Create new menu')}} |
@extends('admin.layouts.app') | |
@section('content') | |
<div class="container-fluid" id="menu-app" data-id="{{$row->id ?? ''}}" v-cloak> | |
<div class="d-flex justify-content-between mb20"> | |
<h1 class="title-bar"> | |
@if(!empty($row->id)) | |
{{__("Edit Menu:")}} @{{name}} | |
@else | |
{{__('Create new menu')}} |