Skip to content

Instantly share code, notes, and snippets.

View knight-of-ni's full-sized avatar

Andrew Bauer knight-of-ni

View GitHub Profile
@knight-of-ni
knight-of-ni / zoneminder-nginx.spec
Last active November 5, 2018 14:47
ZoneMinder with nginx support for FedBErry
%global zmuid_final nginx
%global zmgid_final nginx
# Crud is configured as a git submodule
%global crud_version 3.1.0-zm
# CakePHP-Enum-Behavior is configured as a git submodule
%global ceb_version 1.0-zm
%if "%{zmuid_final}" == "nginx"
@knight-of-ni
knight-of-ni / new-buildodb.sh
Created October 17, 2018 00:44
New method rebuilds odb packages in debian testing
#!/bin/bash
set -e
if [ -z ${DEB_BUILD_OPTIONS} ] ; then
export DEB_BUILD_OPTIONS="parallel=2"
fi
mkdir -p /debian
cd /debian
@knight-of-ni
knight-of-ni / odroid_android7_boot.log
Created July 13, 2018 00:04
Odroid XU4 goes into boot loop after first boot
This file has been truncated, but you can view the full file.
U-Boot 2017.05-00002-gd0752a9-dirty (Sep 08 2017 - 11:33:04 +0900) for ODROID-XU4
CPU: Exynos5422 @ 800 MHz
Model: Odroid XU4 based on EXYNOS5422
Board: Odroid XU4 based on EXYNOS5422
Type: xu4
DRAM: 2 GiB
MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
MMC Device 0 ( SD ): 59.5 GiB
mmc_init: -5, time 3
@knight-of-ni
knight-of-ni / cake_error.log
Created March 6, 2018 14:49
zmninja probes for ZM_MIN_STREAMING_PORT on startup
2018-03-06 08:31:16 Error: [NotFoundException] Invalid config
Request URL: /zm/api/configs/viewByName/ZM_MIN_STREAMING_PORT.json
Stack Trace:
#0 [internal function]: ConfigsController->viewByName('ZM_MIN_STREAMIN...')
#1 /usr/share/zoneminder/www/api/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(ConfigsController), Array)
#2 /usr/share/zoneminder/www/api/app/Plugin/Crud/Lib/CrudControllerTrait.php(31): Controller->invokeAction(Object(CakeRequest))
#3 /usr/share/zoneminder/www/api/lib/Cake/Routing/Dispatcher.php(193): AppController->invokeAction(Object(CakeRequest))
#4 /usr/share/zoneminder/www/api/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(ConfigsController), Object(CakeRequest))
#5 /usr/share/zoneminder/www/api/app/webroot/index.php(108): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#6 {main}
@knight-of-ni
knight-of-ni / buildodb.sh
Last active February 11, 2018 23:29
build odb shell script
#!/bin/bash
install_deps () {
mk-build-deps -ir -t "apt-get -o Debug::pkgProblemResolver=yes \
--no-install-recommends --no-upgrade -y" \
./debian/control
}
set -e
@knight-of-ni
knight-of-ni / odb_gcc6_fix.patch
Created February 11, 2018 20:18
patch to allow odb compiler to work with a project that uses boost libraries
From ec777147024fde72e4411cc6b1e1e49f4a1d1804 Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <[email protected]>
Date: Fri, 23 Dec 2016 10:18:01 +0200
Subject: [PATCH] Fix bug in GCC 6 input_location translation
---
odb/cxx-lexer.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/odb/cxx-lexer.cxx b/odb/cxx-lexer.cxx
@knight-of-ni
knight-of-ni / ffmpeg35_buildfix.patch
Created January 20, 2018 14:36
This patch applies against zoneminder 1.30.4 branch. It fails against the master branch.
--- a/src/zm_mpeg.cpp
+++ b/src/zm_mpeg.cpp
@@ -29,6 +29,7 @@
{
#include <libavutil/mathematics.h>
#include <libavcodec/avcodec.h>
+#define AVFMT_RAWPICTURE 0x0020
}
bool VideoStream::initialised = false;
@knight-of-ni
knight-of-ni / Dockerfile
Created January 6, 2018 01:20
ZoneMinder Dockerfile Experimental
FROM ubuntu:xenial
MAINTAINER Markos Vakondios <[email protected]> Riley Schuit <[email protected]>
# Resynchronize the package index files
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
apache2 \
build-essential \
cmake \
dh-autoreconf \
@knight-of-ni
knight-of-ni / rpmlint.txt
Created July 14, 2017 14:15
Jul 14 zoneminder rpmlint output
$ rpmlint -v zoneminder
zoneminder.x86_64: I: checking
zoneminder.x86_64: E: explicit-lib-dependency libjpeg-turbo
zoneminder.x86_64: I: checking-url http://www.zoneminder.com/ (timeout 10 seconds)
zoneminder.x86_64: E: non-readable /etc/zm/zm.conf 640
zoneminder.x86_64: W: hidden-file-or-dir /usr/share/zoneminder/www/api/app/Plugin/Crud/.semver
zoneminder.x86_64: W: dangling-relative-symlink /usr/share/zoneminder/www/api/lib/Cake/Config/cacert.pem ../../../../../../../../etc/pki/tls/certs/ca-bundle.crt
zoneminder.x86_64: W: dangling-relative-symlink /usr/share/zoneminder/www/cambozola.jar ../../java/cambozola.jar
zoneminder.x86_64: E: dir-or-file-in-var-run /var/run/zoneminder
zoneminder.x86_64: W: no-manual-page-for-binary zma
@knight-of-ni
knight-of-ni / zonemidner.spec
Created July 14, 2017 14:07
Latest ZoneMinder specfile and new patch
%global zmuid_final apache
%global zmgid_final apache
# Crud is configured as a git submodule
%global crud_version 3.0.10
%if "%{zmuid_final}" == "nginx"
%global with_nginx 1
%global wwwconfdir %{_sysconfdir}/nginx/default.d
%else