-i - ignore errors
-c - continue
-t - use video title as file name
--extract-audio - extract audio track
This gist seems to be not working anymore
Possible alternative solution https://unix.stackexchange.com/a/508728 ( not tested )
$> deb http://ftp.debian.org/debian jessie-backports mainhttps://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
# Create new user with sudo
adduser develop
usermod -aG sudo develop
| scope :by_quarter, lambda { |quarter| | |
| date = Date.new(Date.today.year, quarter * 3) | |
| where created_at: date.beginning_of_quarter..date.end_of_quarter } |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |