initial import

This commit is contained in:
Vasil Kolev 2015-04-10 11:34:30 +03:00
commit 6a315ddbad
40 changed files with 870306 additions and 0 deletions

BIN
2014/nivo_0.dwg Normal file

Binary file not shown.

449010
2014/nivo_0.dxf Normal file

File diff suppressed because it is too large Load Diff

BIN
2014/nivo_0.pdf Normal file

Binary file not shown.

BIN
2014/nivo_0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

42824
2014/zali_nivo_2.dxf Normal file

File diff suppressed because it is too large Load Diff

BIN
2014/zali_nivo_2.pdf Normal file

Binary file not shown.

BIN
2015/floorplans/floor0.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

BIN
2015/floorplans/floor1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

180
2015/logistics.txt Normal file
View File

@ -0,0 +1,180 @@
Логистика за OpenFest 2015
==========================
Ситуация
--------
Трябва да си пренесем нещата до Филхармонията (известна още като зала "България") и да ги setup-нем.
Най-вероятно в петък ще има събитие там преди нас, в интервала 17-21ч., което значи, че можем да setup-ваме и слагаме неща, но не можем да пречим на събитието, съответно можем да разположим финалните неща след 21:00 и тогава да направим финалните тестове.
От друга страна, можем да ползваме сряда, четвъртък или дори други дни от седмицата за подготовка и разполагане на неща, които да не пречат на нормалното опериране на Филхармонята.
Имаме да setup-нем следните неща:
* Мрежа
* Ток
* Зала България
* Сцена (транспаранти и т.н.)
* Екран(и)
* Камери и прилежаща техника
* Камерна зала
* Сцена (транспаранти и т.н.)
* Екран(и)
* Камери и прилежаща техника
* Студио "Музика" (втори етаж)
* Сцена (транспаранти и т.н.)
* Екран(и)
* Камери и прилежаща техника
* Рецепция
* Фоайе
* Мраморна зала (workshop-и)
* Маси
* Свързаност
Изисквания по зали
==================
Зала България
-------------
* Камери
* На сцената
* В едната ложа
* Отзад (общ план)
* Допълнително осветление
* Екран(и)
* На сцената
* Проектор(и)
* В едната ложа
* Пулт
* Свързване към озвучаването на залата
* Транспаранти
* Свързаност
Камерна зала
------------
* Камера
* Само една, отзад
* Допълнително осветление(?)
* Озвучаване
* Пулт
* Транспаранти
* Екран
* На сцената
* Проектор
* Свързаност
Студио "Музика"
---------------
* Камера
* Само една, отзад
* Пулт
* Озвучаване
* от залата
* Проектор, екран
* от залата
* Транспаранти
* Свързаност
Мраморна зала/галерия
---------------------
* Маси
* Свързаност/окабеляване
* Столове
Фоайета
-------
Рецепция
--------
Team room
---------
Неща - общ опис
===============
* Техника
* Мрежова
* Switch-ове
* AP-та
* кабели
* конвертори
* router
* Видео-запис
* Камери
* Конвертори
* Аудио запис и възпроизвеждане
* микрофони
* усилватели
* колони
* Проектори и екрани
* Голям проектор
* голям екран
* нормален проектор
* нормален екран
* Телевизори
* Радио-комуникационно оборудване
* Мебели
* Маси
* Рекламни материали
* Транспаранти
* magic whiteboard-и
* Тениски
* Машини за вода
* Друга "кухненска" техника
* Хранителни
* кафе
* чай
* чаши
* мед, захар
ПЛАН
====
Време преди сряда
-----------------
* Конфигуриране на цялото мрежово оборудване
* Router
* switch-ове
* AP-та
* Конфигуриране на restreamer
* Описване на неща, които имат да се носят и откъде
Ден -2 (сряда)
--------------
* Организиране на цялата техника в initlab
* Сортиране и надписване по зали
Ден -1 (четвъртък)
------------------
Ден 0 (петък)
-------------
Ден 1 (събота)
--------------
* 10:00 регистрация
* 10:30 откриване
Ден 2 (неделя)
--------------
* 18:00 закриване
* 18:30 край
Ден 3 (понеделник)
------------------

4
2015/notes Normal file
View File

@ -0,0 +1,4 @@
преграждане на team room
махане на част от закачалките от единия гардероб за да се направи рецепция
или ползване на другата рецепция
да няма изложба във фоайето

BIN
misc/of-oko-avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

324
misc/of.odg Normal file
View File

@ -0,0 +1,324 @@
<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2" office:mimetype="application/vnd.oasis.opendocument.graphics">
<office:meta><dc:date>2014-10-27T13:54:46.727025214</dc:date><dc:creator>Vasil Kolev</dc:creator><meta:editing-duration>PT18M24S</meta:editing-duration><meta:editing-cycles>1</meta:editing-cycles><meta:document-statistic meta:object-count="2"/><meta:generator>LibreOffice/4.3.2.2.0$Linux_X86_64 LibreOffice_project/430m0$Build-2</meta:generator></office:meta>
<office:settings>
<config:config-item-set config:name="ooo:view-settings">
<config:config-item config:name="VisibleAreaTop" config:type="int">-448</config:config-item>
<config:config-item config:name="VisibleAreaLeft" config:type="int">-11206</config:config-item>
<config:config-item config:name="VisibleAreaWidth" config:type="int">64745</config:config-item>
<config:config-item config:name="VisibleAreaHeight" config:type="int">30729</config:config-item>
<config:config-item-map-indexed config:name="Views">
<config:config-item-map-entry>
<config:config-item config:name="ViewId" config:type="string">view1</config:config-item>
<config:config-item config:name="GridIsVisible" config:type="boolean">false</config:config-item>
<config:config-item config:name="GridIsFront" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsSnapToGrid" config:type="boolean">true</config:config-item>
<config:config-item config:name="IsSnapToPageMargins" config:type="boolean">true</config:config-item>
<config:config-item config:name="IsSnapToSnapLines" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsSnapToObjectFrame" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsSnapToObjectPoints" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsPlusHandlesAlwaysVisible" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsFrameDragSingles" config:type="boolean">true</config:config-item>
<config:config-item config:name="EliminatePolyPointLimitAngle" config:type="int">1500</config:config-item>
<config:config-item config:name="IsEliminatePolyPoints" config:type="boolean">false</config:config-item>
<config:config-item config:name="VisibleLayers" config:type="base64Binary">//////////////////////////////////////////8=</config:config-item>
<config:config-item config:name="PrintableLayers" config:type="base64Binary">//////////////////////////////////////////8=</config:config-item>
<config:config-item config:name="LockedLayers" config:type="base64Binary"/>
<config:config-item config:name="NoAttribs" config:type="boolean">false</config:config-item>
<config:config-item config:name="NoColors" config:type="boolean">true</config:config-item>
<config:config-item config:name="RulerIsVisible" config:type="boolean">true</config:config-item>
<config:config-item config:name="PageKind" config:type="short">0</config:config-item>
<config:config-item config:name="SelectedPage" config:type="short">0</config:config-item>
<config:config-item config:name="IsLayerMode" config:type="boolean">true</config:config-item>
<config:config-item config:name="IsDoubleClickTextEdit" config:type="boolean">true</config:config-item>
<config:config-item config:name="IsClickChangeRotation" config:type="boolean">true</config:config-item>
<config:config-item config:name="SlidesPerRow" config:type="short">4</config:config-item>
<config:config-item config:name="EditModeStandard" config:type="int">0</config:config-item>
<config:config-item config:name="EditModeNotes" config:type="int">0</config:config-item>
<config:config-item config:name="EditModeHandout" config:type="int">1</config:config-item>
<config:config-item config:name="VisibleAreaTop" config:type="int">-448</config:config-item>
<config:config-item config:name="VisibleAreaLeft" config:type="int">-11206</config:config-item>
<config:config-item config:name="VisibleAreaWidth" config:type="int">64746</config:config-item>
<config:config-item config:name="VisibleAreaHeight" config:type="int">30730</config:config-item>
<config:config-item config:name="GridCoarseWidth" config:type="int">1000</config:config-item>
<config:config-item config:name="GridCoarseHeight" config:type="int">1000</config:config-item>
<config:config-item config:name="GridFineWidth" config:type="int">100</config:config-item>
<config:config-item config:name="GridFineHeight" config:type="int">100</config:config-item>
<config:config-item config:name="GridSnapWidthXNumerator" config:type="int">100</config:config-item>
<config:config-item config:name="GridSnapWidthXDenominator" config:type="int">1</config:config-item>
<config:config-item config:name="GridSnapWidthYNumerator" config:type="int">100</config:config-item>
<config:config-item config:name="GridSnapWidthYDenominator" config:type="int">1</config:config-item>
<config:config-item config:name="IsAngleSnapEnabled" config:type="boolean">false</config:config-item>
<config:config-item config:name="SnapAngle" config:type="int">1500</config:config-item>
<config:config-item config:name="ZoomOnPage" config:type="boolean">true</config:config-item>
</config:config-item-map-entry>
</config:config-item-map-indexed>
</config:config-item-set>
<config:config-item-set config:name="ooo:configuration-settings">
<config:config-item config:name="ApplyUserData" config:type="boolean">true</config:config-item>
<config:config-item config:name="BitmapTableURL" config:type="string">$(user)/config/standard.sob</config:config-item>
<config:config-item config:name="CharacterCompressionType" config:type="short">0</config:config-item>
<config:config-item config:name="ColorTableURL" config:type="string">$(user)/config/standard.soc</config:config-item>
<config:config-item config:name="DashTableURL" config:type="string">$(user)/config/standard.sod</config:config-item>
<config:config-item config:name="DefaultTabStop" config:type="int">1250</config:config-item>
<config:config-item config:name="EmbedFonts" config:type="boolean">false</config:config-item>
<config:config-item-map-indexed config:name="ForbiddenCharacters">
<config:config-item-map-entry>
<config:config-item config:name="Language" config:type="string">bg</config:config-item>
<config:config-item config:name="Country" config:type="string">BG</config:config-item>
<config:config-item config:name="Variant" config:type="string"/>
<config:config-item config:name="BeginLine" config:type="string"/>
<config:config-item config:name="EndLine" config:type="string"/>
</config:config-item-map-entry>
</config:config-item-map-indexed>
<config:config-item config:name="GradientTableURL" config:type="string">$(user)/config/standard.sog</config:config-item>
<config:config-item config:name="HatchTableURL" config:type="string">$(user)/config/standard.soh</config:config-item>
<config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsPrintBooklet" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsPrintBookletBack" config:type="boolean">true</config:config-item>
<config:config-item config:name="IsPrintBookletFront" config:type="boolean">true</config:config-item>
<config:config-item config:name="IsPrintDate" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsPrintFitPage" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsPrintHiddenPages" config:type="boolean">true</config:config-item>
<config:config-item config:name="IsPrintPageName" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsPrintTilePage" config:type="boolean">false</config:config-item>
<config:config-item config:name="IsPrintTime" config:type="boolean">false</config:config-item>
<config:config-item config:name="LineEndTableURL" config:type="string">$(user)/config/standard.soe</config:config-item>
<config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item>
<config:config-item config:name="MeasureUnit" config:type="short">3</config:config-item>
<config:config-item config:name="PageNumberFormat" config:type="int">4</config:config-item>
<config:config-item config:name="ParagraphSummation" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrintQuality" config:type="int">0</config:config-item>
<config:config-item config:name="PrinterIndependentLayout" config:type="string">low-resolution</config:config-item>
<config:config-item config:name="PrinterName" config:type="string">Lexmark-C540</config:config-item>
<config:config-item config:name="PrinterSetup" config:type="base64Binary">fgH+/0xleG1hcmstQzU0MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpMZXhtYXJrLUM1NDAAAAAAAAAAAAAAAAAAAAAWAAMApAAAAAAAAAAIAFZUAAAkbQAASm9iRGF0YSAxCnByaW50ZXI9TGV4bWFyay1DNTQwCm9yaWVudGF0aW9uPVBvcnRyYWl0CmNvcGllcz0xCmNvbGxhdGU9ZmFsc2UKbWFyZ2luZGFqdXN0bWVudD0wLDAsMCwwCmNvbG9yZGVwdGg9MjQKcHNsZXZlbD0wCnBkZmRldmljZT0xCmNvbG9yZGV2aWNlPTAKUFBEQ29udGV4RGF0YQoSAENPTVBBVF9EVVBMRVhfTU9ERQoARFVQTEVYX09GRg==</config:config-item>
<config:config-item config:name="SaveVersionOnClose" config:type="boolean">false</config:config-item>
<config:config-item config:name="ScaleDenominator" config:type="int">1</config:config-item>
<config:config-item config:name="ScaleNumerator" config:type="int">1</config:config-item>
<config:config-item config:name="UpdateFromTemplate" config:type="boolean">true</config:config-item>
</config:config-item-set>
</office:settings>
<office:scripts>
<office:script script:language="ooo:Basic">
<ooo:libraries xmlns:ooo="http://openoffice.org/2004/office" xmlns:xlink="http://www.w3.org/1999/xlink">
<ooo:library-embedded ooo:name="Standard"/>
</ooo:libraries>
</office:script>
</office:scripts>
<office:font-face-decls>
<style:font-face style:name="Liberation Mono" svg:font-family="&apos;Liberation Mono&apos;" style:font-family-generic="modern" style:font-pitch="fixed"/>
<style:font-face style:name="Liberation Sans" svg:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Serif" svg:font-family="&apos;Liberation Serif&apos;" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="FreeSans" svg:font-family="FreeSans" style:font-family-generic="swiss" style:font-pitch="variable"/>
<style:font-face style:name="AR PL SungtiL GB" svg:font-family="&apos;AR PL SungtiL GB&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="DejaVu Sans" svg:font-family="&apos;DejaVu Sans&apos;" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="FreeSans1" svg:font-family="FreeSans" style:font-family-generic="system" style:font-pitch="variable"/>
</office:font-face-decls>
<office:styles>
<draw:marker draw:name="Arrow" svg:viewBox="0 0 20 30" svg:d="M10 0l-10 30h20z"/>
<style:default-style style:family="graphic">
<style:graphic-properties svg:stroke-color="#3465a4" draw:fill-color="#729fcf" fo:wrap-option="no-wrap"/>
<style:paragraph-properties style:text-autospace="ideograph-alpha" style:punctuation-wrap="simple" style:line-break="strict" style:writing-mode="lr-tb" style:font-independent-line-spacing="false">
<style:tab-stops/>
</style:paragraph-properties>
<style:text-properties style:use-window-font-color="true" style:font-name="Liberation Serif" fo:font-size="24pt" fo:language="bg" fo:country="BG" style:font-name-asian="DejaVu Sans" style:font-size-asian="24pt" style:language-asian="zh" style:country-asian="CN" style:font-name-complex="DejaVu Sans" style:font-size-complex="24pt" style:language-complex="hi" style:country-complex="IN"/>
</style:default-style>
<style:style style:name="standard" style:family="graphic">
<style:graphic-properties draw:stroke="solid" svg:stroke-width="0cm" svg:stroke-color="#3465a4" draw:marker-start-width="0.2cm" draw:marker-start-center="false" draw:marker-end-width="0.2cm" draw:marker-end-center="false" draw:fill="solid" draw:fill-color="#729fcf" draw:textarea-horizontal-align="justify" fo:padding-top="0.125cm" fo:padding-bottom="0.125cm" fo:padding-left="0.25cm" fo:padding-right="0.25cm" draw:shadow="hidden" draw:shadow-offset-x="0.2cm" draw:shadow-offset-y="0.2cm" draw:shadow-color="#808080">
<text:list-style style:name="standard">
<text:list-level-style-bullet text:level="1" text:bullet-char="●">
<style:list-level-properties text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="2" text:bullet-char="●">
<style:list-level-properties text:space-before="0.6cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="3" text:bullet-char="●">
<style:list-level-properties text:space-before="1.2cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="4" text:bullet-char="●">
<style:list-level-properties text:space-before="1.8cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="5" text:bullet-char="●">
<style:list-level-properties text:space-before="2.4cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="6" text:bullet-char="●">
<style:list-level-properties text:space-before="3cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="7" text:bullet-char="●">
<style:list-level-properties text:space-before="3.6cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="8" text:bullet-char="●">
<style:list-level-properties text:space-before="4.2cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="9" text:bullet-char="●">
<style:list-level-properties text:space-before="4.8cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="10" text:bullet-char="●">
<style:list-level-properties text:space-before="5.4cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
</text:list-style>
</style:graphic-properties>
<style:paragraph-properties fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-top="0cm" fo:margin-bottom="0cm" fo:line-height="100%" fo:text-indent="0cm"/>
<style:text-properties fo:font-variant="normal" fo:text-transform="none" style:use-window-font-color="true" style:text-outline="false" style:text-line-through-style="none" style:text-line-through-type="none" style:font-name="Liberation Sans" fo:font-family="&apos;Liberation Sans&apos;" style:font-family-generic="roman" style:font-pitch="variable" fo:font-size="18pt" fo:font-style="normal" fo:text-shadow="none" style:text-underline-style="none" fo:font-weight="normal" style:letter-kerning="true" style:font-name-asian="AR PL SungtiL GB" style:font-family-asian="&apos;AR PL SungtiL GB&apos;" style:font-family-generic-asian="system" style:font-pitch-asian="variable" style:font-size-asian="18pt" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-name-complex="FreeSans1" style:font-family-complex="FreeSans" style:font-family-generic-complex="system" style:font-pitch-complex="variable" style:font-size-complex="18pt" style:font-style-complex="normal" style:font-weight-complex="normal" style:text-emphasize="none" style:font-relief="none" style:text-overline-style="none" style:text-overline-color="font-color"/>
</style:style>
<style:style style:name="objectwitharrow" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="solid" svg:stroke-width="0.15cm" svg:stroke-color="#000000" draw:marker-start="Arrow" draw:marker-start-width="0.7cm" draw:marker-start-center="true" draw:marker-end-width="0.3cm"/>
</style:style>
<style:style style:name="objectwithshadow" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:shadow="visible" draw:shadow-offset-x="0.2cm" draw:shadow-offset-y="0.2cm" draw:shadow-color="#808080"/>
</style:style>
<style:style style:name="objectwithoutfill" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties svg:stroke-color="#000000" draw:fill="none"/>
</style:style>
<style:style style:name="Object_20_with_20_no_20_fill_20_and_20_no_20_line" style:display-name="Object with no fill and no line" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
</style:style>
<style:style style:name="text" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
</style:style>
<style:style style:name="textbody" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
<style:text-properties fo:font-size="16pt"/>
</style:style>
<style:style style:name="textbodyjustfied" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
<style:paragraph-properties fo:text-align="justify"/>
</style:style>
<style:style style:name="textbodyindent" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
<style:paragraph-properties fo:margin-left="0cm" fo:margin-right="0cm" fo:text-indent="0.6cm"/>
</style:style>
<style:style style:name="title" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
<style:text-properties fo:font-size="44pt"/>
</style:style>
<style:style style:name="title1" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="solid" draw:fill-color="#008080" draw:shadow="visible" draw:shadow-offset-x="0.2cm" draw:shadow-offset-y="0.2cm" draw:shadow-color="#808080"/>
<style:paragraph-properties fo:text-align="center"/>
<style:text-properties fo:font-size="24pt"/>
</style:style>
<style:style style:name="title2" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties svg:stroke-width="0.05cm" draw:fill-color="#ffcc99" draw:shadow="visible" draw:shadow-offset-x="0.2cm" draw:shadow-offset-y="0.2cm" draw:shadow-color="#808080"/>
<style:paragraph-properties fo:margin-left="0cm" fo:margin-right="0.2cm" fo:margin-top="0.1cm" fo:margin-bottom="0.1cm" fo:text-align="center" fo:text-indent="0cm"/>
<style:text-properties fo:font-size="36pt"/>
</style:style>
<style:style style:name="headline" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
<style:paragraph-properties fo:margin-top="0.42cm" fo:margin-bottom="0.21cm"/>
<style:text-properties fo:font-size="24pt"/>
</style:style>
<style:style style:name="headline1" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
<style:paragraph-properties fo:margin-top="0.42cm" fo:margin-bottom="0.21cm"/>
<style:text-properties fo:font-size="18pt" fo:font-weight="bold"/>
</style:style>
<style:style style:name="headline2" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="none"/>
<style:paragraph-properties fo:margin-top="0.42cm" fo:margin-bottom="0.21cm"/>
<style:text-properties fo:font-size="14pt" fo:font-style="italic" fo:font-weight="bold"/>
</style:style>
<style:style style:name="measure" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="solid" svg:stroke-color="#000000" draw:marker-start="Arrow" draw:marker-start-width="0.2cm" draw:marker-end="Arrow" draw:marker-end-width="0.2cm" draw:fill="none" draw:show-unit="true"/>
<style:text-properties fo:font-size="12pt"/>
</style:style>
</office:styles>
<office:automatic-styles>
<style:page-layout style:name="PM0">
<style:page-layout-properties fo:margin-top="0cm" fo:margin-bottom="0cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:page-width="42cm" fo:page-height="29.7cm" style:print-orientation="portrait"/>
</style:page-layout>
<style:style style:name="dp1" style:family="drawing-page">
<style:drawing-page-properties draw:background-size="border" draw:fill="none"/>
</style:style>
<style:style style:name="dp2" style:family="drawing-page"/>
<style:style style:name="gr1" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" draw:fill="solid" draw:fill-color="#004394" draw:shadow="hidden"/>
</style:style>
<style:style style:name="gr2" style:family="graphic" style:parent-style-name="standard">
<style:graphic-properties draw:stroke="none" svg:stroke-color="#000000" draw:fill="none" draw:fill-color="#ffffff" draw:textarea-horizontal-align="left" draw:auto-grow-height="true" draw:auto-grow-width="true" fo:min-height="0cm" fo:min-width="0cm"/>
</style:style>
<style:style style:name="P1" style:family="paragraph">
<style:text-properties style:font-name="FreeSans" fo:font-size="112pt" style:font-size-asian="112pt" style:font-size-complex="112pt"/>
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties style:font-name="FreeSans" fo:font-size="112pt" style:font-size-asian="112pt" style:font-size-complex="112pt"/>
</style:style>
<text:list-style style:name="L1">
<text:list-level-style-bullet text:level="1" text:bullet-char="●">
<style:list-level-properties text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="2" text:bullet-char="●">
<style:list-level-properties text:space-before="0.6cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="3" text:bullet-char="●">
<style:list-level-properties text:space-before="1.2cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="4" text:bullet-char="●">
<style:list-level-properties text:space-before="1.8cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="5" text:bullet-char="●">
<style:list-level-properties text:space-before="2.4cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="6" text:bullet-char="●">
<style:list-level-properties text:space-before="3cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="7" text:bullet-char="●">
<style:list-level-properties text:space-before="3.6cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="8" text:bullet-char="●">
<style:list-level-properties text:space-before="4.2cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="9" text:bullet-char="●">
<style:list-level-properties text:space-before="4.8cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
<text:list-level-style-bullet text:level="10" text:bullet-char="●">
<style:list-level-properties text:space-before="5.4cm" text:min-label-width="0.6cm"/>
<style:text-properties fo:font-family="StarSymbol" style:use-window-font-color="true" fo:font-size="45%"/>
</text:list-level-style-bullet>
</text:list-style>
</office:automatic-styles>
<office:master-styles>
<draw:layer-set>
<draw:layer draw:name="layout"/>
<draw:layer draw:name="background"/>
<draw:layer draw:name="backgroundobjects"/>
<draw:layer draw:name="controls"/>
<draw:layer draw:name="measurelines"/>
</draw:layer-set>
<style:master-page style:name="Default" style:page-layout-name="PM0" draw:style-name="dp1"/>
<style:master-page style:name="Default_20_1" style:display-name="Default 1" style:page-layout-name="PM0" draw:style-name="dp1"/>
</office:master-styles>
<office:body>
<office:drawing>
<draw:page draw:name="page1" draw:style-name="dp2" draw:master-page-name="Default">
<draw:path draw:style-name="gr1" draw:layer="layout" svg:width="34.899cm" svg:height="21.632cm" svg:x="3.699cm" svg:y="1.276cm" svg:viewBox="0 0 34900 21633" svg:d="M0 10246l2215-2512 5696 5567c430-350 924-718 1465-1087l-3633-4878 2105-1459 3289 5251c996-547 2106-1054 3317-1447l-2766-8672 4187-1009 1733 8973c665-76 1330-115 2000-110l1546-7299 3039 704-2168 6820c2298 421 4213 1402 5749 2633l5892-7213 1234 1168-6092 6955c1220 1196 2135 2531 2752 3800l-3776 2182c0 0-1532-3594-4414-5762 330 765 512 1608 512 2488 0 3465-2828 6294-6288 6294-3643 0-6528-3125-6275-6734l3212 388c-431 1598 780 3249 2493 3249 1412 0 2580-1158 2580-2584 0-3790-4308-4719-7390-3412-1914 813-3455 2010-5567 3637-2154-2020-4398-3958-6647-5931z">
<text:p/>
</draw:path>
<draw:frame draw:style-name="gr2" draw:text-style-name="P1" draw:layer="layout" svg:width="27.329cm" svg:height="4.599cm" svg:x="8cm" svg:y="24.201cm">
<draw:text-box>
<text:p text:style-name="P1"><text:span text:style-name="T1">OpenFest 2014</text:span></text:p>
</draw:text-box>
</draw:frame>
</draw:page>
</office:drawing>
</office:body>
</office:document>

BIN
misc/of2013.odt Normal file

Binary file not shown.

BIN
misc/of2013.pdf Normal file

Binary file not shown.

BIN
misc/of2013.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

163
misc/of2013.ppm Normal file

File diff suppressed because one or more lines are too long

BIN
misc/pile.cdr Normal file

Binary file not shown.

2
misc/pile.odg Normal file

File diff suppressed because one or more lines are too long

BIN
misc/pile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 MiB

6
misc/restream/g1.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.3.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/g1|[f=flv]rtmp://grendel.ludost.net/openfest/g1" -c:v libx264 -s 854x480 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 500k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://grendel.ludost.net/openfest/g1-low|[f=flv]rtmp://localhost/openfest/g1-low"
#ffmpeg -re -i 'udp://@10.4.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/kur|[f=flv]rtmp://localhost/openfest/g1"

View File

@ -0,0 +1,6 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.4.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/test|[f=flv]rtmp://grendel.ludost.net/openfest/test" -c:v libx264 -s 960x540 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 500k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://grendel.ludost.net/openfest/lowtest|[f=flv]rtmp://localhost/openfest/lowtest"
#ffmpeg -re -i 'udp://@10.4.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/kur|[f=flv]rtmp://localhost/openfest/test"

View File

@ -0,0 +1,6 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.4.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/test|[f=flv]rtmp://grendel.ludost.net/openfest/test" -c:v libx264 -s 960x540 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 500k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://grendel.ludost.net/openfest/lowtest|[f=flv]rtmp://localhost/openfest/lowtest"
#ffmpeg -re -i 'udp://@10.4.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/kur|[f=flv]rtmp://localhost/openfest/test"

View File

@ -0,0 +1,3 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.90.0.1:2500?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -strict -2 -threads 2 -f flv "rtmp://bsdcon.getclouder.com/strm/pirin"

3
misc/restream/pirin.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.90.0.1:2500?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v baseline -level 3.1 -preset ultrafast -filter:v yadif -g 60 -b:v 1000k -acodec aac -ar 44100 -ac 2 -strict -2 -threads 2 -f flv "rtmp://bsdcon.getclouder.com/strm/pirin"

3
misc/restream/rodopi.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.90.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v baseline -level 3.1 -preset ultrafast -filter:v yadif -g 60 -b:v 1000k -acodec aac -ar 44100 -ac 2 -strict -2 -threads 2 -f flv "rtmp://bsdcon.getclouder.com/strm/rodopi"

7
misc/restream/sofia.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
while /bin/true; do
ffmpeg -i rtmp://127.0.0.1/openfest/sofia-raw -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/sofia|[f=flv]rtmp://grendel.ludost.net/openfest/sofia" -c:v libx264 -s 854x480 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 500k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://grendel.ludost.net/openfest/sofia-low|[f=flv]rtmp://localhost/openfest/sofia-low"
done
#ffmpeg -re -i 'udp://@10.4.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/kur|[f=flv]rtmp://localhost/openfest/sofia"

6
misc/restream/varna.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.3.0.1:2700?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/varna|[f=flv]rtmp://grendel.ludost.net/openfest/varna" -c:v libx264 -s 854x480 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 500k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://grendel.ludost.net/openfest/varna-low|[f=flv]rtmp://localhost/openfest/varna-low"
#ffmpeg -re -i 'udp://@10.4.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -bsf:a aac_adtstoasc -flags +global_header -strict -2 -threads 2 -f tee -map 0:v -map 0:a "[f=flv]rtmp://localhost/openfest/kur|[f=flv]rtmp://localhost/openfest/varna"

View File

@ -0,0 +1,3 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.90.0.1:2500?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v high -level 4.2 -preset ultrafast -filter:v yadif -g 60 -b:v 2000k -acodec aac -ar 44100 -ac 2 -strict -2 -threads 2 -f flv "rtmp://bsdcon.getclouder.com/strm/pirin"

3
misc/restream/vitosha.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
ffmpeg -re -i 'udp://@10.90.0.1:2600?overrun_nonfatal=1&buffer_size=81921024&fifo_size=178481' -c:v libx264 -s 1280x720 -profile:v baseline -level 3.1 -preset ultrafast -filter:v yadif -g 60 -b:v 1000k -acodec aac -ar 44100 -ac 2 -strict -2 -threads 2 -f flv "rtmp://bsdcon.getclouder.com/strm/vitosha"

5
misc/restream/wifis.sh Normal file
View File

@ -0,0 +1,5 @@
wifis="10.0.1.10 10.0.1.11 10.0.1.12 10.0.1.13 10.0.1.16 10.0.1.19 10.0.1.20"
for wifi in $wifis; do
ssh $wifi 'wifi up';
# ssh $wifi 'uname -a; iwinfo wlan0 a | grep '..\:..\:' | wc -l; iwinfo wlan1 a | grep '..\:..\:' | wc -l';
done

3
misc/scripts/clean-state.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
perl /usr/local/bin/leasecheck.pl | xargs -n 1 conntrack -D -s 2>/dev/null

164
misc/scripts/leasecheck.pl Normal file
View File

@ -0,0 +1,164 @@
#!/usr/bin/perl
#
# Update the path to your lease file below
use strict;
use File::Copy;
#use DateTime;
#always parse a copy not the live file
#my $leasefile = '/var/lib/dhcpd/dhcpd.leases';
my $leasefile = '/var/lib/dhcp/dhcpd.leases';
my $tempfile = '/tmp/dhcpd.leases';
copy($leasefile,$tempfile) or die "Copy failed: $!";
#my $LocalTZ = DateTime::TimeZone->new( name => 'local' );
my $LocalTZ = '';
open LEASES, "< $tempfile" or die $!;
my @lines = <LEASES>;
close LEASES;
#Get the state of each server
my $readit;
my $line;
#valid failover states
#unknown-state, partner-down, normal, communications-interrupted, resolution-interrupted, potential-conflict, recover, recover-done, shutdown, paused, and startup
# seems like I want the last failover statement
my $my_state="cant determine";
my $my_state_time="cant determine";
my $peer_state="cant determine";
my $peer_state_time="cant determine";
my $failover = 0;
my $key;
my $value;
foreach $line (@lines){
if ($line=~/failover peer .*? state {/){
$readit = 1;
$failover = 1;
}
if ($readit){
if ($line=~/my\sstate\s(.*?)\sat\s\d\s(.*?)\;/){
$my_state = $1;
$my_state_time = $2;
}
if ($line=~/partner\sstate\s(.*?)\sat\s\d\s(.*?)\;/){
$peer_state = $1;
$peer_state_time = $2;
}
}
if ($readit && $line=~/^}/){
$readit = 0;
}
}
if ($failover){
$my_state_time = localize($my_state_time);
my ($mdate, $mtime) = split (/T/,$my_state_time);
$peer_state_time = localize($peer_state_time);
my ($pdate, $ptime) = split (/T/,$peer_state_time);
# print "My state is $my_state at $mtime on $mdate\nPartner state is $peer_state at $ptime on $pdate\n";
}else{
# print "This appears to be a stand alone server\n"
}
#Get the leases and their states
my @lease_states;
my $active = 0;
my $lease = 0;
my $ip;
my $mac=' ';
my $end_date_time;
my $start_date_time;
my $start_time;
my $start_date;
my $name;
my $state;
my %ips;
foreach $line (@lines){
if ($line=~/lease\s(\d+\.\d+\.\d+\.\d+)/){
$ip=$1;
$readit = 1;
$lease++;
$name="";
}
if ($readit && $line=~/starts\s\d\s(\d+\/\d+\/\d+\s\d+:\d+:\d+)\;/){
$start_date_time =$1;
}
if ($readit && $line=~/ends\s\d\s(\d+\/\d+\/\d+\s\d+:\d+:\d+)\;/){
$end_date_time =$1;
#print $start_date_time;
# $start_date_time = localize($start_date_time);
# ($start_date, $start_time) = split (/T/,$start_date_time);
}
if ($readit && $line =~/hardware\sethernet\s(.*?)\;/){
$mac=$1;
}
if ($readit && $line =~/client-hostname\s"(.*?)"\;/){
$name=$1;
}
if ($readit){
if ($line=~/^\s+binding\sstate\s(.*?)\;/){
$state = $1;
if ($state eq 'active'){
$active++;
}
}
}
if ($readit && $line=~/^}/){
if (! exists($ips{$ip})) {
$ips{$ip} = 0;
}
if (!( $state =~ /free/ )) {
$ips{$ip}++;
}
push (@lease_states,"$ip\t$start_date_time\t$end_date_time\t$mac\t$state\t\t$name\n");
$readit = 0;
}
}
while (($key, $value) = each(%ips)){
if ($value==0){
print $key."\n";
}
}
exit;
@lease_states=sort (@lease_states);
my $header=("IP\t\tSTART TIME\t\tEND TIME\t\tMAC\t\t\tSTATE\t\tHOSTNAME\n");
print $header;
print @lease_states;
print "Total leases: $lease\n";
print "Total active leases: $active\n";
sub localize{
# in format 2010/06/01 22:10:01
my $datetime=shift;
my ($date, $time) = split (/ /,$datetime);
my ($hr, $min, $sec) = split (/:/,$time);
my ($yr, $mo, $day)= split (/\//,$date);
#my $dt = DateTime->new(
# year => $yr,
# month => $mo,
# day => $day,
# hour => $hr,
# minute => $min,
# second => $sec,
# time_zone =>'UTC' );
# $dt->set_time_zone($LocalTZ);
# return $dt->datetime;
return $datetime;
# use this to split the out
# ($date, $time) = split (/T/,$dt->datetime);
}