Skip to content

Instantly share code, notes, and snippets.

@braunsonm
braunsonm / enable hostname broadcasting freebsd jail.txt
Last active November 8, 2024 23:22
Enable mdns on a FreeNAS/BSD jail.
freenas2# jls
JID IP Address Hostname Path
...
5 - etherpad /mnt/basin/jails/etherpad
...
freenas2# ./mdns.sh 5
Updating FreeBSD repository catalogue...
[etherpad] Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
[etherpad] Fetching packagesite.txz: 100% 6 MiB 5.9MB/s 00:01
@braunsonm
braunsonm / client.lua
Created December 8, 2014 21:09
Prismata Connection Screen in MTA
function dxDrawCircle( posX, posY, radius, width, angleAmount, startAngle, stopAngle, color, postGUI )
if ( type( posX ) ~= "number" ) or ( type( posY ) ~= "number" ) then
return false
end
local function clamp( val, lower, upper )
if ( lower > upper ) then lower, upper = upper, lower end
return math.max( lower, math.min( upper, val ) )
end