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
Usage: configure [options] | |
Options: [defaults in brackets after descriptions] | |
Standard options: | |
--help print this message | |
--logfile=FILE log tests and output to FILE [config.log] | |
--disable-logging do not log configure debug information | |
--prefix=PREFIX install in PREFIX [] | |
--bindir=DIR install binaries in DIR [PREFIX/bin] | |
--datadir=DIR install data files in DIR [PREFIX/share/ffmpeg] |
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
### Run this script via a cronjob every (every minute or so) on a server that has access to your dropbox. | |
### You must install youtube-dl (http://rg3.github.com/youtube-dl/) for this to work. | |
#!/bin/bash | |
QUEUE_DIR=~/Desktop/Dropbox/IFTTT/youtube-dl/*.txt | |
VIDEO_DIR=~/Desktop/Dropbox/youtube/ | |
shopt -s nullglob | |
for queue_file in $QUEUE_DIR | |
do | |
video_url=`cat "$queue_file"`; |
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
/** | |
* A {@link HttpRequest.ConnectionFactory connection factory} which uses OkHttp. | |
* <p/> | |
* Call {@link HttpRequest#setConnectionFactory(HttpRequest.ConnectionFactory)} with an instance of | |
* this class to enable. | |
*/ | |
public class OkConnectionFactory implements HttpRequest.ConnectionFactory { | |
private final OkHttpClient client; | |
public OkConnectionFactory() { |