Skip to content

Instantly share code, notes, and snippets.

View secondnetwork's full-sized avatar

Andreas Farah secondnetwork

View GitHub Profile
<?php
// Function `parse_yturl()` from <http://stackoverflow.com/a/10524505/624466>
/**
* Check if the input string is a valid YouTube URL
* and try to extract the YouTube Video ID from it.
*
* @author Stephan Schmitz <eyecatchup@gmail.com>
* @param $url string The string that shall be checked.

Convert MP4 to WMV on MacOS

Install ffmpeg

  1. Open Spotlight:

    Open Spotlight

  2. Search Terminal and press enter: