Skip to content

Instantly share code, notes, and snippets.

View benphelps's full-sized avatar
🇺🇦
Slava Ukrayini!

Ben Phelps benphelps

🇺🇦
Slava Ukrayini!
View GitHub Profile
# Ubuntu 14.04 LTS kickstart for XenServer
# branch: develop
##########################################
# Install, not upgrade
install
# Install from a friendly mirror and add updates
url --url http://us.archive.ubuntu.com/ubuntu/
#include <serLCD.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11);
serLCD lcd(11);
int tmp;
void setup()
{

Livestreaming via PS4 to a local RTMP server

Live stream from your PS4 to a local computer running an RTMP server by intercepting the twitch.tv stream.

Requirements

  • DD-WRT enabled Router (or router with iptables compatibility)
  • nix Envirment
  • nginx with the nginx-rtmp-module
class LiveChat
constructor: (@stream) ->
@element = $("##{@id}")
@stream_id = gon.stream_id
@templates =
message: $('#message_tpl').html();
# Connect to the socket
subscribe: ->
Danthes.subscribe "/stream/#{@stream_id}", (data, channel) ->
-- Backburn's Survival Hunter Rotation
-- Updated on July 17th, 2014.
-- PLAYER CONTROLLED: Rabid MUST be on Auto-Cast for Stampede pets to use them :)
-- SUGGESTED TALENTS:
-- CONTROLS: Pause - Left Control, Explosive/Ice/Snake Traps - Left Alt, Freezing Trap - Right Alt, Scatter Shot - Right Control
-- Import
local Actions, Receivers, Modifiers = Device.actions, Device.recivers, Device.modifiers
#!/usr/bin/php
<?php
$block = "server {
listen 80;
root /usr/share/nginx/html/{$argv[1]};
index index.php index.html index.htm;
server_name {$argv[1]};
Filesystem Size Used Avail Capacity Mounted on
/dev/disk0s2 111Gi 87Gi 24Gi 79% /
/dev/disk1s1 112Gi 74Gi 38Gi 67% /Volumes/Untitled
/dev/disk2s1 699Gi 135Gi 564Gi 20% /Volumes/Storage
/dev/disk3s1 932Gi 756Gi 175Gi 82% /Volumes/OS X Storage
/AFP/Data 1.8Ti 1.4Ti 465Gi 76% /Volumes/Data
Process: Chocolat [499]
Path: /Applications/Chocolat.app/Contents/MacOS/Chocolat
Identifier: com.chocolatapp.Chocolat
Version: 3.0a9 (3.0a9)
Code Type: X86-64 (Native)
Parent Process: launchd [184]
Responsible: Chocolat [499]
User ID: 501
Date/Time: 2014-06-15 07:09:12.781 -0500
@benphelps
benphelps / CodeSchoolBlog.tmTheme
Last active August 29, 2015 13:58
A Textmate theme based on the colors from the CodeSchool blog.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Ben Phelps</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>comment</key>
<string>Based on the colors from the blog.</string>
local timer = lib:timer()
timer:setInterval(5)
timer:onAction(function()
return "event data"
end)
--[[
timer:onAction do