Skip to content

Instantly share code, notes, and snippets.

View justincc's full-sized avatar

Justin Clark-Casey justincc

View GitHub Profile
#!/usr/bin/perl -w
#use Getopt::Long;
#my %opts = {};
if (@ARGV < 1)
{
print "Usage: $0 <release-name>\n";
print "For example, $0 opensim-0.7.3-rc2\n";
#!/usr/bin/perl -w
#use Getopt::Long;
#my %opts = {};
if (@ARGV < 1)
{
print "Usage: $0 <release-name>\n";
print "For example, $0 opensim-0.7.3-rc2\n";
#!/usr/bin/perl -w
#use Getopt::Long;
#my %opts = {};
if (@ARGV < 1)
{
print "Usage: $0 <release-name>\n";
print "For example, $0 opensim-0.7.3-rc2\n";
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index 4169152..eb56d8d 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -747,6 +747,15 @@ namespace OpenSim.Framework
AgentCapacity = config.GetInt("MaxAgents", 100);
allKeys.Remove("MaxAgents");
+ if (config.Contains("AgentLimit"))
+ {
@justincc
justincc / opensimulator-cors.patch
Created December 12, 2014 00:58
Temporary patch to get CORS working on OpenSimulator for viewfinite
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 093855c..11d8380 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -714,6 +714,8 @@ namespace OpenSim.Framework.Servers.HttpServer
response.OutputStream.Write(buffer, 0, buffer.Length);
}
+ response.AddHeader("Access-Control-Allow-Origin", "*");
+
@justincc
justincc / gist:c431165a6d7194169328
Last active August 29, 2015 14:08
Example program to bind two sockets to same UDP port
using System;
using System.Net;
using System.Net.Sockets;
public class UdpSamePort
{
public static void Main(string[] args)
{
IPEndPoint ipep = new IPEndPoint(IPAddress.Any, 9000);
From 53d170e17ad6fd46f2d551e2df25277db6e4d4cf Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey <justincc@justincc.org>
Date: Tue, 16 Sep 2014 18:03:42 +0100
Subject: [PATCH] This is a modified patch from
https://bugzilla.novell.com/show_bug.cgi?id=540524 updated to build against
mono 3.2.8
This uses Thread.Priority to change RT thread priority if mono is run via "$ sudo chrt --rr 10 <exec>" or similar
For many reasons this is not a good approach - this patch is primarily for test purposes.
---