Skip to content

Instantly share code, notes, and snippets.

Avatar

Kfir Itzhak mastertheknife

View GitHub Profile
@mastertheknife
mastertheknife / zmsample.sh
Created May 16, 2017
cmisip's script improved
View zmsample.sh
#!/bin/bash
interval=5
numreports=12 #1 minute
tail_n=$((${numreports} +1))
zmc_array=(`ps ax | grep -w z[m]c | awk '{print $1}'`)
zma_array=(`ps ax | grep -w z[m]a | awk '{print $1}'`)
(for i in "${zmc_array[@]}"
@mastertheknife
mastertheknife / zm_mpeg.cpp
Created May 1, 2014
Experimental zms code
View zm_mpeg.cpp
/*
* ZoneMinder MPEG class implementation, $Date$, $Revision$
* Copyright (C) 2001-2008 Philip Coombes
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@mastertheknife
mastertheknife / video.sql
Last active Dec 31, 2015
SQL commands for the video branch
View video.sql
ALTER TABLE `Monitors` ADD `SaveJPEGs` TINYINT NOT NULL DEFAULT '3' AFTER `Deinterlacing` ,
ADD `VideoWriter` TINYINT NOT NULL DEFAULT '0' AFTER `SaveJPEGs` ,
ADD `EncoderParameters` TEXT NOT NULL AFTER `VideoWriter` ;
ALTER TABLE `Events` ADD `DefaultVideo` VARCHAR( 64 ) NOT NULL AFTER `AlarmFrames` ;
@mastertheknife
mastertheknife / CMakeLists.txt
Created Oct 9, 2013
Updated CMakeLists.txt for ZM to fix curfront's issues with CMAKE_PREFIX_PATH environment variable
View CMakeLists.txt
# Main CMake file for the ZoneMinder project.
# Created by mastertheknife (Kfir Itzhak)
# The goal is to ease up the installation of zoneminder.
# Our current installation method (using autotools) is outdated, slow and breaks now and then.
# The CMake installation method will require no parameters at all, default should sufficient and reliable.
# It will be still possible to install ZoneMinder using autotools, they don't conflict with each other. The cmake way is a complete re-write (different syntax) and aims to be identical to the autotools way,
# by having options using the same name and leaving ZM totally unmodified, while providing exactly the same things that ZM expects (config.h, configuration in *.in files, etc).
#
# For more information and installation, see the INSTALL file
#
@mastertheknife
mastertheknife / zm_centos64
Last active Dec 21, 2015
Steps to install ZoneMinder on CentOS 6.4. For more information, refer to this thread: http://www.zoneminder.com/forums/viewtopic.php?f=9&t=19119
View zm_centos64
Testing the RPM on a virgin CentOS 6.4 x86-64 installation (Minimal installation) with just nfs server, samba, httpd, ntpd installed so far.
Documenting the steps as i go.
Installing wget:
[root@atom ~]# yum install wget
Loaded plugins: fastestmirror
@mastertheknife
mastertheknife / steaminfo.txt
Created Aug 27, 2013
Steam System Information
View steaminfo.txt
Processor Information:
Vendor: GenuineIntel
Speed: 2667 Mhz
2 logical processors
2 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
View gist:6291021
Processor Information:
Vendor: GenuineIntel
Speed: 2667 Mhz
2 logical processors
2 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported