Skip to content

Instantly share code, notes, and snippets.

View svperfecta's full-sized avatar
👾

Brian Corrigan svperfecta

👾
View GitHub Profile
require "rubygems"
require "uri"
require "yajl/http_stream"
require "twitter"
# Campfire Setup
token = 'yourtoken'
room_id = 111111
url = URI.parse("http://#{token}:x@streaming.campfirenow.com//room/#{room_id}/live.json")
# Install nginx and ejabberd
foo@bar$ sudo apt-get install ejabberd nginx curl
# Download strophe.js
foo@bar$ curl - http://code.stanziq.com/strophe/strophejs/releases/strophejs-1.0.1.tar.gz
# Verify you have an entry in your /etc/hosts file for
# localhost, it should look something like this (yes,
# silly, but lately for some reason I keep running into
# people who modify this incorrectly)
# Export a query to CSV
mysql> create table user_video_for_brightcove engine=CSV SELECT user_id, title, description, time_created, file_name, is_private, status_mlg, parent_user_video_id FROM user_video where parent_user_video_id = 0 and status_mlg = 'active';
Query OK, 112176 rows affected (1.73 sec)
Records: 112176 Duplicates: 0 Warnings: 0
<script type="text/javascript" src="http://62.212.66.11/cmg/auditudeBanners.js"></script>
<script type="text/javascript" src="http://62.212.66.11/cmg/flowplayer-3.2.0.min.js"></script>
<a href="" style="display:block !important;width:720px !important;height:480px !important;" id="MLGPlayer"></a>
<script>$f("MLGPlayer", "http://62.212.66.11/cmg/player.swf", {
plugins: {
controls: { streams: "str,stb,halo,cod" },
invideous: { url: 'http://62.212.66.11/cmg/invideous.swf', width: "100%", height: "100%", top: 0, left: 0, pid:3771 },
TMPlugin: { url: "http://static.inplay.tubemogul.com/bootloader/TubeMogulFlowPlayer.swf", playerID: "P-W8J-51Q", trackerIDs: "TD-ASG-WXP", displayName:"Default feed" },
<object id="MLGPlayer" width="720" height="480" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="true" name="allowfullscreen"/>
<param value="always" name="allowscriptaccess"/>
<param value="high" name="quality"/>
<param value="true" name="cachebusting"/>
<param value="#000000" name="bgcolor"/>
<param name="movie" value="http://streamworksflowplayermodifcati.appspot.com/static/player/player.swf?0.23985370295122266" />
<param value="config=%7B%22clip%22%3A%7B%7D%2C%22plugins%22%3A%7B%22controls%22%3A%7B%22streams%22%3A%22str%2Cstb%2Chalo%2Ccod%22%7D%2C%22invideous%22%3A%7B%22height%22%3A%22100pct%22%2C%22url%22%3A%22invideous.swf%22%2C%22left%22%3A0%2C%22top%22%3A0%2C%22width%22%3A%22100pct%22%2C%22pid%22%3A3771%7D%2C%22banner%22%3A%7B%22url%22%3A%22banner.swf%22%7D%2C%22TMPlugin%22%3A%7B%22url%22%3A%22http%3A//static.inplay.tubemogul.com/bootloader/TubeMogulFlowPlayer.swf%22%2C%22trackerIDs%22%3A%22TD-ASG-WXP%22%2C%22playerID%22%3A%22P-W8J-51Q%22%2C%22displayName%22%3A%22Default%20f
@svperfecta
svperfecta / gist:1007717
Created June 4, 2011 08:21
Streamworks Player Embed
<script type="text/javascript" src="http://streamworksflowplayermodifcati.appspot.com/static/player/auditudeBanners.js"></script>
<script type="text/javascript" src="http://streamworksflowplayermodifcati.appspot.com/static/player/flowplayer-3.2.0.min.js"></script>
<a href="" style="display:block !important;width:720px !important;height:480px !important;" id="MLGPlayer"></a>
<script>$f("MLGPlayer", "http://streamworksflowplayermodifcati.appspot.com/static/player/player.swf", {
plugins: {
controls: { streams: "str,stb,halo,cod", akamai:true },
invideous: { url: 'http://streamworksflowplayermodifcati.appspot.com/static/player/invideous.swf', width: "100%", height: "100%", top: 0, left: 0, pid:3771 },
@svperfecta
svperfecta / gist:1007994
Created June 4, 2011 15:43
Streamworks Player Embed with No Autoplay
<script type="text/javascript" src="http://streamworksflowplayermodifcati.appspot.com/static/player/flowplayer-3.2.0.min.js"></script>
<a href="" style="display:block;width:512;height:384" id="MLGPlayer"></a>
<script>
$f("MLGPlayer", "http://streamworksflowplayermodifcati.appspot.com/static/player/player.swf", {
plugins: {
controls: { streams: "str,stb,halo,cod", autoplay:false },
invideous: { url: 'http://streamworksflowplayermodifcati.appspot.com/static/player/invideous.swf', width: "100%", height: "100%", top: 0, left: 0, pid:3771 },
TMPlugin: { url: "http://static.inplay.tubemogul.com/bootloader/TubeMogulFlowPlayer.swf", playerID: "P-W8J-51Q", trackerIDs: "TD-ASG-WXP", displayName:"Default feed" },
@svperfecta
svperfecta / gist:1300185
Created October 20, 2011 01:30
Up and running with Zappa, Mongoose and CoffeeScript
require('zappa') ->
# MongoDB Setup
mongoose = require 'mongoose'
db = mongoose.connect('mongodb://localhost/my_database')
# Declare schema for model
Schema = mongoose.Schema
User = new Schema
name: String
@svperfecta
svperfecta / init.el
Created February 5, 2012 02:24 — forked from mig/init.el
Simple Emacs 24 configuration for Rails development
;; This emacs configuration comes from:
;; http://www.viget.com/extend/emacs-24-rails-development-environment-from-scratch-to-productive-in-5-minu/
;; It's patched to work with el-get 3.1 as noted here:
;; https://github.com/dimitri/el-get
(push "/usr/local/bin" exec-path)
(add-to-list 'load-path "~/.emacs.d")
(setq make-backup-files nil)
(setq auto-save-default nil)
Title
{
TitleId 0x58410A65 ; Siren
UserData "prod"
}
Title
{
TitleId 0x57520FA3 ; Siren (GFWL)