Skip to content

Instantly share code, notes, and snippets.

View mastertheknife's full-sized avatar

Kfir Itzhak mastertheknife

View GitHub Profile
@mastertheknife
mastertheknife / gist:6291021
Created August 21, 2013 06:40
system information
Processor Information:
Vendor: GenuineIntel
Speed: 2667 Mhz
2 logical processors
2 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
@mastertheknife
mastertheknife / steaminfo.txt
Created August 27, 2013 07:15
Steam System Information
Processor Information:
Vendor: GenuineIntel
Speed: 2667 Mhz
2 logical processors
2 physical processors
HyperThreading: Unsupported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
@mastertheknife
mastertheknife / zm_centos64
Last active December 21, 2015 20:48
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
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 / CMakeLists.txt
Created October 9, 2013 12:06
Updated CMakeLists.txt for ZM to fix curfront's issues with CMAKE_PREFIX_PATH environment variable
# 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 / video.sql
Last active December 31, 2015 20:49
SQL commands for the video branch
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 / zm_mpeg.cpp
Created May 1, 2014 13:33
Experimental zms code
/*
* 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 / zmsample.sh
Created May 16, 2017 20:01
cmisip's script improved
#!/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[@]}"