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
# Usage: redis-cli publish message.achannel hello | |
require 'sinatra' | |
require 'redis' | |
conns = Hash.new {|h, k| h[k] = [] } | |
Thread.abort_on_exception = true | |
get '/' 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:
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
## | |
# Make Rack look like node. | |
# | |
# http://youtu.be/Zp91yUH-zAw | |
# | |
# Run like this: | |
# | |
# $ unicorn -I. app.ru | |
require 'node_adapter' |
#!/bin/bash | |
ramfs_size_mb=1024 | |
mount_point=~/volatile | |
ramfs_size_sectors=$((${ramfs_size_mb}*1024*1024/512)) | |
ramdisk_dev=`hdid -nomount ram://${ramfs_size_sectors}` | |
newfs_hfs -v 'Volatile' ${ramdisk_dev} | |
mkdir -p ${mount_point} | |
mount -o noatime -t hfs ${ramdisk_dev} ${mount_point} | |
echo "remove with:" |
/* | |
Copyright 2012-2021 Viktor Klang | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
# config/environments/production.rb | |
# Enable serving of images, stylesheets, and JavaScripts from an asset server | |
config.action_controller.asset_host = "//#{ENV.fetch("FOG_DIRECTORY")}.s3.amazonaws.com" | |
# app/views/layouts/application.erb | |
<%= javascript_include_tag :application %> | |
# Resulting HTML (in heroku, with RAILS_ENV=production): |
gem "actionpack" | |
gem "thin" |
source "http://rubygems.org" | |
gem "webmachine" | |
gem "actionpack" | |
gem "thin" | |
gem "datamapper" | |
gem "dm-migrations" | |
gem "dm-sqlite-adapter" | |
gem "debugger" |
#include <mruby.h> | |
#include <mruby/proc.h> | |
#include <mruby/data.h> | |
#include <compile.h> | |
#include <variable.h> | |
#include <uv.h> | |
typedef struct { | |
mrb_state* mrb; | |
mrb_value proc; /* callback */ |