Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sync railscasts episodes from http://railscasts.com/
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.markdown
railscasts_sync.rb

README.markdown

RailscastsSync

Ruby script to sync Railscasts episodes.

Usage

Download the script.

# Using git
$ git clone git@github.com:kulbirsaini/Railscasts-Sync.git

# Or directly via HTTPs
$ wget https://github.com/kulbirsaini/Railscasts-Sync/raw/master/railscasts_sync.rb

Create Railscasts directory

# Create Railscasts directory
$ mkdir Railscasts

Switch to Railscasts directory

# Switch to Railscasts directory
$ cd Railscasts

Export http_proxy shell variable if you are behing a proxy server

# If behind a proxy server
$ export http_proxy='http://proxy.example.com:8080/'

Run the script :)

# Run the sync script
$ ruby railscasts_sync.rb

Autosync

Setup a cron job (Daily at 1AM)

# Edit crontabs
$ crontab -e

# Add cron job for railscasts_sync
0 1 * * * cd /path/to/Railscasts/ && ruby /path/to/Railscasts/sync.rb >> /tmp/railscasts_sync.log

# Or if you are behind a proxy server
0 1 * * * cd /path/to/Railscasts/ && export http_proxy='http://proxy.example.com:8080/' && ruby /path/to/Railscasts/sync.rb >> /tmp/railscasts_sync.log

Copyright

Copyright (c) ROFLMAO LLC.

Something went wrong with that request. Please try again.