Skip to content

Instantly share code, notes, and snippets.

@oculushut
oculushut / gist:c481b8159330e0b34a48
Last active August 29, 2015 14:17
Check port on Janus Presence Server on Windows box using Powershell - example for Babylon Server
#Reference for System.Net.Sockets.TcpClient ==> https://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient(v=vs.110).aspx
# Paste parts 1 + 2 and see response from server. Then Paste part 3 to cleanup.
#===================
# 1. Get Connected
#===================
$tcpClient = New-Object System.Net.Sockets.TcpClient
$tcpClient.Connect("babylon.vrsites.com", 5566)
$tcpClient.Connected
#===========================
# 2. Write data and see response
@oculushut
oculushut / SELinux Status
Created March 25, 2015 00:35
Vagrantfile for v0.0.1 of CentOS 7 64 bit box (oculushut/vagrant-centOS64-oculushut)
[vagrant@localhost ~]$ sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
@oculushut
oculushut / Successful vagrant up
Created March 25, 2015 09:17
v0.0.2 of box works...
F:\dev\vagrant_base_boxes\from_atlas_0.0.2>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'oculushut/vagrant-centOS64-oculushut' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: 0.0.2
==> default: Loading metadata for box 'oculushut/vagrant-centOS64-oculushut'
default: URL: https://atlas.hashicorp.com/oculushut/vagrant-centOS64-oculushut
==> default: Adding box 'oculushut/vagrant-centOS64-oculushut' (v0.0.2) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/oculushut/boxes/vagrant-centOS64-oculushut/versions/0.0.2/providers/virtualbox.box
default: Progress: 100% (Rate: 1195k/s, Estimated time remaining: --:--:--)
@oculushut
oculushut / gist:250a332920adbdb999cc
Last active August 29, 2015 14:17
Vagrantfile: vagrant-centOS64-oculushut v0.0.2
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@oculushut
oculushut / gist:265a62fbf8ca5a43186d
Last active August 29, 2015 14:18
oculushut/vagrant-centOS64-oculushut v0.0.3 vagrantfile - vanilla build
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@oculushut
oculushut / gist:667a5a9a3343369c124d
Last active August 29, 2015 14:18
oculushut/vagrant-centOS64-oculushut v0.0.3 vagrantfile - node.js + git + public network + hostname (oculushut-node) + guest port 22 mapped to host 2225
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@oculushut
oculushut / gist:b1b2f30f03d1ed8247c5
Created April 2, 2015 09:29
oculushut/centos7_nodejs v0.0.1 Generic Node.js Server for Prototyping
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@oculushut
oculushut / gist:6804f6c6cc042de9cef3
Created April 4, 2015 00:19
Vagrantfile used to build janus_presence_server (v0.0.1) from centos7_nodejs(v0.0.1)
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@oculushut
oculushut / gist:f38d9e79fa560d714aae
Created April 4, 2015 10:06
oculushut/janus_presence_server (v0.0.1) Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@oculushut
oculushut / gist:319ad212c4fb2386c6fe
Last active August 29, 2015 14:18
Example JanusVR shortcut to connect to local Janus VR Presence Server

Janus VR Presence Server settings

Port: 5566 Hostname: oculushut-janus

F:\JanusVR_Win32_40.0\janusvr.exe -server oculushut-janus -port 5566