Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View svperfecta's full-sized avatar
👾

Brian Corrigan svperfecta

👾
View GitHub Profile
{
schedules : [
{
name: 'logogarden',
content: [
{
type: 'imageList',
images: [
{
type: image
@svperfecta
svperfecta / gist:f01b7794e755e9a24e3a
Last active August 29, 2015 14:12
Terminal Stuff
# Automatically create or reattach to an iTerm session
tmux attach -t base || tmux new -s base
# SSH With no profile
ssh -T -i ~/.ssh/somekey user@server -t "bash --noprofile"
# Rsync using an identify file
rsync -avz --partial --progress --rsh="ssh -i $HOME/.ssh/somekey.pem" ~/somefile root@1.2.3.4:~/
@svperfecta
svperfecta / pclive
Created July 7, 2015 11:21
Poker Central Live Stream Playlist
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=314000,RESOLUTION=256x144,CODECS="avc1.77.30, mp4a.40.2"
http://ooyalahd2-f.akamaihd.net/i/crtv01_delivery@329705/index_282_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=564000,RESOLUTION=512x288,CODECS="avc1.77.30, mp4a.40.2"
http://ooyalahd2-f.akamaihd.net/i/crtv01_delivery@329705/index_564_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1163000,RESOLUTION=640x360,CODECS="avc1.77.30, mp4a.40.2"
http://ooyalahd2-f.akamaihd.net/i/crtv01_delivery@329705/index_1164_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2464000,RESOLUTION=1280x720,CODECS="avc1.77.30, mp4a.40.2"
http://ooyalahd2-f.akamaihd.net/i/crtv01_delivery@329705/index_2528_av-b.m3u8?sd=10&rebase=on
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=64000,CODECS="mp4a.40.2"
@svperfecta
svperfecta / pcvod
Created July 7, 2015 11:24
Poker Central VOD Playlist
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2464000,RESOLUTION=1280x720
http://player.ooyala.com/player/appletv/Fpbzl1dTo65q-IuenkPBkqSLXlbKFYAz_2400.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1163000,RESOLUTION=640x360
http://player.ooyala.com/player/appletv/Fpbzl1dTo65q-IuenkPBkqSLXlbKFYAz_1200.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=564000,RESOLUTION=1920x1080
http://player.ooyala.com/player/appletv/Fpbzl1dTo65q-IuenkPBkqSLXlbKFYAz_4400.m3u8
{
"data": {
"type": "view",
"attributes": {
"title": "Home Page",
"updatedAt": "2015-06-19T15:12:43.000Z",
"version": 1
},
"relationships": {
"featuredPromotion": {
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