This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
- Hulu / HuluPlus
- CBS
- ABC
- MTV
- theWB
- CW TV
- Crackle
- NBC
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
| set :deploy_to, "/usr/share/my-app" | |
| namespace :play do | |
| task :setup do | |
| run "mkdir -p #{deploy_to}" | |
| upload "my-app/start.sh", "#{deploy_to}/start.sh", :mode => '755', :via => :scp | |
| upload "my-app/stop.sh", "#{deploy_to}/stop.sh", :mode => '755', :via => :scp | |
| end | |
| task :deploy do |
This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
| require './interface' | |
| puts to_strings(->(limit) { | |
| ->(lst) { | |
| ->(f) { | |
| ->(f) { | |
| ->(g) { | |
| ->(n) { | |
| f.(g.(g)).(n) | |
| } | |
| }.(->(g) { |
| #!/bin/sh | |
| NGINX_VERSION=1.3.8 | |
| TMP_PATH=/tmp | |
| # Fetch and extract Nginx | |
| cd $TMP_PATH | |
| wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz | |
| tar xvfz nginx-$NGINX_VERSION.tar.gz | |
| cd nginx-$NGINX_VERSION |
| LIBRARY = Library.new | |
| def add_game(name, &block) | |
| game = Game.new(name) | |
| game.instance_eval(&block) | |
| LIBRARY.add_game(game) | |
| end | |
| def with_game(name, &block) | |
| game = LIBRARY.find_by_name(name) |
| Copyright (c) 2012–2013 Daniel Foreman-Mackey | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all |
| # this don't work (bundler don't support nested platform/grouping https://github.com/carlhuda/bundler/issues/1298) | |
| group :development, :test do | |
| gem 'pg', :platforms => :ruby | |
| gem 'activerecord-jdbcpostgresql-adapter', :platforms => :jruby | |
| end | |
| # you should do something like this | |
| group :development, :test do | |
| gem 'pg' if RUBY_PLATFORM != 'java' | |
| gem 'activerecord-jdbcpostgresql-adapter' if RUBY_PLATFORM == 'java' |
| require "timeout" | |
| module WaitSteps | |
| extend RSpec::Matchers::DSL | |
| matcher :become_true do | |
| match do |block| | |
| begin | |
| Timeout.timeout(Capybara.default_wait_time) do | |
| sleep(0.1) until value = block.call |