pip install youtube-dl
List the formats available:
youtube-dl -F <youtube url>
Download a specific format based on a number above
# 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 webmaster@example.org |
#!/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 |
# 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")) |
Here are the steps to compile and build the Git RPMs using the git.spec
provided by the project:
wget http://kernel.org/pub/software/scm/git/git-2.8.1.tar.gz -P ~/rpmbuild/SOURCES
tar xf ~/rpmbuild/SOURCES/git-2.8.1.tar.gz
cp git-2.8.1/git.spec ~/rpmbuild/SPECS
rm -fr git-2.8.1
# install all dependencies (e.g. yum install -y)
#!/usr/bin/sh | |
inotifywait -mr -e delete /some/dir |