Skip to content

Instantly share code, notes, and snippets.

View jordanwesthoff's full-sized avatar

Jordan Westhoff jordanwesthoff

View GitHub Profile
@jordanwesthoff
jordanwesthoff / harris_corner_detector.m
Created April 1, 2015 02:18
Implementation of the Harris Corner Detection Algorithm
function [ response, corners ] = harris_corner_detector( image, varargin )
% MATLAB FUNCTION DEFINITIONS
% function [ response, corners ] = harris_corner_detector( image, varargin )
% MATLAB CALLING SEQUENCE
% response = harris_corner_detector( image )
% response = harris_corner_detector( image, sigma )
% [ response, corners ] = harris_corner_detector( image )
% [ response, corners ] = harris_corner_detector( image, sigma)
# Written like it was in shell, not sure what the right python calls are, just an FYI
mkdir -p /dev/shm/pdf_convert
cp /current_scantron_directory/pdf_image /dev/shm/pdf_convert
convert_function /dev/shm/pdf_convert/filename /dev/shm/pdf_convert/converted_filenames
cp /dev/shm/pdf_convert/* /current_scantron_directory
#So here, the script copies the image to a custom made (you can pick the name) directory in shared memory, better known as the temp #directory. Then it runs whatever convert function you have there and puts out the images based on whatever syntax you run the conversion #with. Then it copies all of the temp directories contents back into your scantron directory. All of the paths are made up, but they should #be easy to understand because they are just placeholders for your current working directories. Temp will always be in /dev/shm though
@jordanwesthoff
jordanwesthoff / yum_install_test.sh
Created June 4, 2015 00:33
Yum installation test
pkg="wget"
if yum -qq install $pkg; then
echo "Successfully installed $pkg"
else
echo "Error installing $pkg"
fi
@jordanwesthoff
jordanwesthoff / gist:db93d33f8ea3e96d12df
Last active August 29, 2015 14:22
Log of installing Zabbix Server on remote CentOS 6.5 server
### Bringing up ZABBIX Server Install ###
# 1. Add user for zabbix
sudo adduser jordan
sudo adduser jordan
### enter password
# 2. Install Zabbix, and all important dependencies
sudo yum -y install mysql-server php-xml mysql
location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
@jordanwesthoff
jordanwesthoff / batch_MKV_convert.sh
Created October 26, 2015 15:47
{AVCONV} Batch convert Matroska to MP4 video
for f in *.mkv;
do avconv -i "$f" -codec copy "${f%.mkv}.mp4";
done