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
| tell application "Spotify" to activate | |
| tell application "System Events" | |
| tell process "Spotify" | |
| click menu item "Private Session" of menu "Spotify" of menu bar 1 | |
| end tell | |
| end tell | 
| {"openapi":"3.0.2","info":{"title":"Saturn API","description":"API Documentation for Saturn","version":"0.1"},"paths":{"/api/v2/auth/verify":{"post":{"tags":["Auth"],"summary":"Verify an user from an OAuth2 token","operationId":"verify_token_v2_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupView"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Verify Token V2 Auth Verify Post","anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/SchoolViewPublic"}},{"$ref":"#/components/schemas/Token"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v2/waitlist/schools":{"get":{"tags":["Waitlist"],"summary":"Get all the schools on waitlist","operationId":"get_waitlist_schools_public_info_v2_waitlist_schools_get","parameters":[{"required":false,"schema":{"title":"Query"," | 
| import PromiseKit | |
| extension APIClient { | |
| func request<Response, T>(_ requestConvertible: T, | |
| additionalHeaders headers: [String: String]? = nil, | |
| additionalQuery queryParameters: [String: String]? = nil, | |
| baseUrl: URL? = nil) -> Promise<T.Result> | |
| where T: URLResponseCapable, T: URLRequestConvertible, T.Result == Response { | |
| return Promise { seal in | |
| self.request(requestConvertible, additionalHeaders: headers, additionalQuery: queryParameters, success: { response in | 
| <?php | |
| function json_response($message = null, $code = 200) | |
| { | |
| // clear the old headers | |
| header_remove(); | |
| // set the actual code | |
| http_response_code($code); | |
| // set the header to make sure cache is forced | |
| header("Cache-Control: no-transform,public,max-age=300,s-maxage=900"); | 
| module.exports = function(grunt) { | |
| // configure the tasks | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| // copy from the source directory to build | |
| copy: { | |
| build: { | |
| cwd: 'source', | |
| src: [ '**', '!**/*.pug', '!sass', '!sass/*', '!**/*.scss', '!partials', '!partials/*' ], | |
| dest: 'build', | 
| var mongoose = require('./index') | |
| , TempSchema = new mongoose.Schema({ | |
| salutation: {type: String, enum: ['Mr.', 'Mrs.', 'Ms.']} | |
| }); | |
| var Temp = mongoose.model('Temp', TempSchema); | |
| console.log(Temp.schema.path('salutation').enumValues); | |
| var temp = new Temp(); | |
| console.log(temp.schema.path('salutation').enumValues); | 
| import UIKit | |
| class ViewController: UIViewController { | |
| let keyboard = KeyboardControl() | |
| override func viewDidLoad() { | |
| super.viewDidLoad() | |