Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
Install ffmpeg
brew install ffmpeg
Download file through url, like this:
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "http://url-file.domain.m3u8" -c copy video.mp4
$ brew info mysql
Expected output: mysql: stable 8.0.12 (bottled)
$ brew install mysql
| import UIKit | |
| final class ExampleViewController: UViewController { | |
| private var usersBrightness = UIScreen.main.brightness | |
| private var willEnterForegroundWasCalled = false | |
| private var viewWillDisappearWasCalled = false | |
| override func viewDidLoad() { |
| // | |
| // main.swift | |
| // mutablecomposition | |
| // | |
| // Created by Kevin Meaney on 24/08/2015. | |
| // Copyright (c) 2015 Kevin Meaney. All rights reserved. | |
| // | |
| import Foundation |
| // | |
| // FileUploader.swift | |
| // | |
| // Copyright (c) 2015 Narciso Cerezo Jiménez. All rights reserved. | |
| // Largely based on this stackoverflow question: http://stackoverflow.com/questions/26121827/uploading-file-with-parameters-using-alamofire/28467829// | |
| import Foundation | |
| import Alamofire | |
| private struct FileUploadInfo { |
| import Foundation | |
| /// Timeout wrapps a callback deferral that may be cancelled. | |
| /// | |
| /// Usage: | |
| /// Timeout(1.0) { println("1 second has passed.") } | |
| /// | |
| class Timeout: NSObject | |
| { | |
| private var timer: NSTimer? |
| server { | |
| listen 80; | |
| root /opt/graphite/webapp/content; | |
| location / { | |
| # checks for static file, if not found proxy to app | |
| try_files \$uri @app; | |
| } | |
| location @app { |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <!-- https://gist.github.com/isao/5f6fbe89a438086c36d8 | |
| BBEdit Language Module for TypeScript | |
| Put this file in | |
| ~/Library/Application Support/BBEdit/Language Modules | |
| or equivalent. | |
| Forked from |
| <html> | |
| <head> | |
| <title>test</title></head> | |
| <body> | |
| <center>hello world</center> | |
| </body> | |
| </html> |
| # First do a fresh install of CentOS 5.7 i386, server configuration (no GUI) | |
| # This should be performed as root since it's going to be installing a bunch of stuff | |
| # --- Update things to make sure we have the latest patches --- | |
| # Add EPEL so we can get reasonably recent packages | |
| rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
| # --- Install all the packages --- # | |
| yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached |