pip install youtube-dl
List the formats available:
youtube-dl -F <youtube url>
Download a specific format based on a number above
| # Before running this script, install requests, beautifulsoup4 | |
| import requests as req | |
| from bs4 import BeautifulSoup | |
| url = "http://www.melskitchencafe.com/vanilla-buttermilk-cupcakes-and-fantastic-easy-buttercream-frosting/" | |
| html = req.get(url) | |
| soup = BeautifulSoup(html.text) | |
| print "This is a recipe for: " | 
| # http://www.rackspace.com/knowledge_center/article/how-to-serve-multiple-domains-using-virtual-hosts | |
| # Uncomment this line from /etc/httpd/conf/httpd.conf | |
| NameVirtualHost *:80 | |
| # Create multiple files for each vhost or put them all in one | |
| # They just need to be named with *.conf to be picked up | |
| <VirtualHost *:80> | |
| ServerName example.org | |
| ServerAlias *.example.org | |
| ServerAdmin [email protected] | 
| #!/usr/bin/env bash | |
| # Must run as sudo and assumes the following: | |
| # 1. your drive has been formatted with the name of "Untitled" | |
| # 2. you've downloaded Yosemite from Apple store | |
| /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia \ | |
| --volume /Volumes/Untitled \ | |
| --applicationpath /Applications/Install\ OS\ X\ Yosemite.app | |
| --nointeraction | 
| # Get credentials for the box | |
| $credentials = (Get-Credential) | |
| # If above doesn't work do | |
| $password = ConvertTo-SecureString "password" -AsPlainText -Force | |
| $credentials = New-Object System.Management.Automation.PSCredential ("username", $password) | |
| Enter-PSSession -ComputerName <computername> -Credential $credentials | |
| # Remove an item | 
| # You can add the options command to ~/.Rprofile | |
| # By setting the pkgType to mac.binary, it'll use the packages | |
| # in http://cran.r-project.org/bin/macosx/contrib/3.x | |
| options(pkgType="mac.binary", repos="http://cran.company.com") | |
| install.packages(c("acepack", "Rcpp")) |