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
{
"DeletedFiles": 0,
"DeletedFolders": 0,
"ModifiedFiles": 0,
"ExaminedFiles": 6,
"OpenedFiles": 1,
"AddedFiles": 1,
"SizeOfModifiedFiles": 0,
"SizeOfAddedFiles": 32505580,
"SizeOfExaminedFiles": 157691700,
Failed: One or more errors occurred. (The request was aborted: The request was canceled. (The request was aborted: The request was canceled.) (One or more errors occurred. (The request was aborted: The request was canceled.)))
Details: System.AggregateException: One or more errors occurred. (The request was aborted: The request was canceled. (The request was aborted: The request was canceled.) (One or more errors occurred. (The request was aborted: The request was canceled.))) ---> System.AggregateException: The request was aborted: The request was canceled. (The request was aborted: The request was canceled.) (One or more errors occurred. (The request was aborted: The request was canceled.)) ---> System.Net.WebException: The request was aborted: The request was canceled.
at System.Net.WebConnectionStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00070] in <a8a996a78a804d888710c9e2575d78c8>:0
at Amazon.Runtime.Internal.HttpRequest.WriteToRequestBody (System.IO.Stream request
@knight-of-ni
knight-of-ni / checkdbs.sh
Created November 12, 2021 13:21
Cron safe Mysql dB checker
#!/bin/bash
# Provide MySql user credentials i.e. root
MYSQLUSER="root"
MYSQLPWD="MySecretPassword"
# Make the script cron safe
ID="/usr/bin/id"
MYSQLCHECK="/bin/mysqlcheck"
SYSTEMCTL="/usr/bin/systemctl"
@knight-of-ni
knight-of-ni / gist:d9dc11f7b5d2536236f4d62401e9a53b
Created November 2, 2021 17:08
zoneminder 1.34.26 specfile
# Leaving this to allow one to build zoneminder-http subpackage using arbitrary user account
%global zmuid_final apache
%global zmgid_final apache
# Crud is configured as a git submodule
%global crud_version 3.2.0
# CakePHP-Enum-Behavior is configured as a git submodule
%global ceb_version 1.0-zm
@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 <boris@codesynthesis.com>
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