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
| import click | |
| import hashlib | |
| import requests | |
| from pathlib import Path | |
| from tqdm import tqdm | |
| CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) |
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
| package com.autodesk.adn.viewanddata; | |
| import java.io.BufferedReader; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.util.Collection; | |
| import java.util.HashMap; | |
| import java.util.UUID; | |
| import javax.servlet.ServletException; |
| package demo; | |
| import java.io.Serializable; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Primary; | |
| import org.springframework.data.redis.connection.RedisConnectionFactory; | |
| import org.springframework.data.redis.core.RedisOperations; |
| from PyQt4 import QtCore, QtGui | |
| import sys, time | |
| class mythread(QtCore.QThread): | |
| total = QtCore.pyqtSignal(object) | |
| update = QtCore.pyqtSignal() | |
| def __init__(self, parent, n): | |
| super(mythread, self).__init__(parent) |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
| # | |
| # Wide-open CORS config for nginx | |
| # | |
| location / { | |
| if ($request_method = 'OPTIONS') { | |
| add_header 'Access-Control-Allow-Origin' '*'; | |
| # |