about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* documentation date and domain updateSilvino Silva2020-01-1975-244/+300
|
* fix core install version to 3.5Silvino Silva2020-01-141-1/+1
|
* fix core setup-iso to version 3.5Silvino Silva2020-01-141-7/+7
|
* iptables bridge and server updateSilvino Silva2020-01-083-14/+36
|
* pkgmk.conf revisionSilvino Silva2020-01-081-17/+17
|
* fix pkg-get configurationSilvino Silva2020-01-081-1/+1
|
* ports configuration updated to stable-3.5Silvino Silva2020-01-088-8/+8
|
* improved documentation on git,dnsmasqSilvino Silva2020-01-084-21812/+29137
|
* doc release 0.6.0Silvino Silva2020-01-0510-80/+122
|\
| * better c debugging and git tags docSilvino Silva2019-12-242-11/+24
| |
| * change core index from 3.4 to 3.5Silvino Silva2019-12-011-4/+4
| |
| * initial update to crux 3.5Silvino Silva2019-11-097-64/+93
| |
| * Merge branch 'master' into developSilvino2019-08-031-1/+1
| |\ | |/ |/|
* | doc release 0.5.8Silvino2019-08-035-106/+141
|\|
| * better apparmor utilities examplesSilvino2019-08-031-54/+62
| |
| * dev git index revisionSilvino2019-08-033-51/+78
| |
| * Merge branch 'master' into developSilvino2019-07-291-152/+0
| |\ | |/ |/|
* | fix dev c indexSilvino2019-07-291-152/+0
| |
* | doc release 0.5.7Silvino2019-07-2914-51/+129
|\|
| * apparmor indentationSilvino2019-07-291-2/+2
| |
| * sudoers updateSilvino2019-07-291-15/+21
| |
| * iptables bridge and server updateSilvino2019-07-292-9/+20
| |
| * fix dev c indexesSilvino2019-07-298-23/+62
| |
| * ipt-client and ipt-firewall updateSilvino2019-07-292-2/+24
| |
| * Merge branch 'master' into developSilvino2019-07-021-1/+1
| |\ | |/ |/|
* | doc release 0.5.6Silvino2019-07-021-1/+1
| |
| * Merge branch 'master' into developSilvino2019-07-020-0/+0
| |\ | |/ |/|
* | core revisonSilvino2019-07-024-14/+36
|\|
| * core revisionSilvino2019-07-024-14/+36
| |
| * Merge branch 'master' into developSilvino2019-06-301-1/+1
| |\ | |/ |/|
* | doc release 0.5.4Silvino2019-06-2842-350/+971
|\ \
| * | bumped new releaseSilvino2019-06-281-1/+1
| |/
| * dev git revisionSilvino2019-06-281-0/+6
| |\
| | * dev git added reset to work docSilvino2019-06-281-0/+6
| |/
| * lynx revisionSilvino2019-06-281-0/+14
| |\
| | * tools lynx revisionSilvino2019-06-281-0/+14
| |/
| * core iptables bridge revisionSilvino2019-06-282-17/+22
| |
| * tools x change ctrl alt f to just alt fSilvino2019-06-261-3/+24
| |
| * core and tools iptables fixSilvino2019-06-262-7/+13
| |
| * core iptables revisionSilvino2019-06-268-47/+311
| |
| * dev index re-organizationSilvino2019-06-2622-271/+542
| |
| * core re-index ports after rebootSilvino2019-06-192-20/+21
| |
| * fix core conf sysctl.confSilvino2019-06-191-0/+7
| |
| * added protection against sack in core sysctlSilvino2019-06-182-0/+6
| |
| * added caching to core apparmorSilvino2019-06-172-0/+20
| |
| * Merge branch 'master' into developSilvino2019-06-161-1/+1
| |\ | |/ |/|
* | doc release 0.5.3Silvino2019-06-1640-1476/+1413
|\|
| * apparmor and hardening revisionSilvino2019-06-165-80/+176
| |
| * core user added to input groupSilvino2019-06-161-1/+1
| |
| * added pkg-get conf and pkgmk.conf updatedSilvino2019-06-133-2/+17
| |
">do if prev then if geom.on_line(x,y, drawing, {p1=prev, p2=p}) then return true end end prev = p end return geom.on_line(x,y, drawing, {p1=shape.vertices[1], p2=shape.vertices[#shape.vertices]}) end -- are (x3,y3) and (x4,y4) on the same side of the line between (x1,y1) and (x2,y2) function geom.same_side(x1,y1, x2,y2, x3,y3, x4,y4) if x1 == x2 then return math.sign(x3-x1) == math.sign(x4-x1) end if y1 == y2 then return math.sign(y3-y1) == math.sign(y4-y1) end local m = (y2-y1)/(x2-x1) return math.sign(m*(x3-x1) + y1-y3) == math.sign(m*(x4-x1) + y1-y4) end function math.sign(x) if x > 0 then return 1 elseif x == 0 then return 0 elseif x < 0 then return -1 end end function geom.angle_with_hint(x1, y1, x2, y2, hint) local result = geom.angle(x1,y1, x2,y2) if hint then -- Smooth the discontinuity where angle goes from positive to negative. -- The hint is a memory of which way we drew it last time. while result > hint+math.pi/10 do result = result-math.pi*2 end while result < hint-math.pi/10 do result = result+math.pi*2 end end return result end -- result is from -π/2 to 3π/2, approximately adding math.atan2 from Lua 5.3 -- (LÖVE is Lua 5.1) function geom.angle(x1,y1, x2,y2) local result = math.atan((y2-y1)/(x2-x1)) if x2 < x1 then result = result+math.pi end return result end -- is the line between x,y and cx,cy at an angle between s and e? function geom.angle_between(ox,oy, x,y, s,e) local angle = geom.angle(ox,oy, x,y) if s > e then s,e = e,s end -- I'm not sure this is right or ideal.. angle = angle-math.pi*2 if s <= angle and angle <= e then return true end angle = angle+math.pi*2 if s <= angle and angle <= e then return true end angle = angle+math.pi*2 return s <= angle and angle <= e end function geom.dist(x1,y1, x2,y2) return ((x2-x1)^2+(y2-y1)^2)^0.5 end return geom